]> git.neil.brown.name Git - history.git/commit
[PATCH] Fix ppc64 build problem
authorAnton Blanchard <anton@samba.org>
Fri, 13 Feb 2004 23:29:48 +0000 (15:29 -0800)
committerAnton Blanchard <anton@samba.org>
Fri, 13 Feb 2004 23:29:48 +0000 (15:29 -0800)
commitbe63a940115222f9bc4ba62ec9a33a366a78a321
tree655446834b421d36e8926e4d253a4182bbc10b48
parentd1c0dfc84a8d1a97db4bf3fc5f67c0fa6e6cd5ec
[PATCH] Fix ppc64 build problem

From: Paul Mackerras <paulus@samba.org>

Recent changes in include/linux/*.h meant that likely()
isn't defined here (since we don't set __KERNEL__), and thus
we don't get some prototypes and we can't use do_div.  This
fixes the resulting compile errors and warnings.

Remove %L handling from sprintf - we don't need it, and it
meant we needed do_div from asm/div64.h, which gives problems
when __KERNEL__ isn't defined.  Also add a prototype for
strlen to kill a warning.
arch/ppc64/boot/prom.c
arch/ppc64/boot/zlib.c