[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.
Showing
Please register or sign in to comment