bitops.h ifdef __KERNEL__ cleanup.
Not all architectures put clear_bit et al in asm/bitops.h in a form which is usable from userspace. Yet because it happens to work on a PeeCee, people do it anyway.
There's a simple way to fix that :)
Index: include/asm-i386/bitops.h
===================================================================
RCS file: /inst/cvs/linux/include/asm-i386/bitops.h,v retrieving revision 1.2.2.7
asm-i386/bitops.h +2 -2
@@ -7,6 +7,8 @@#include <linux/config.h> +#ifdef __KERNEL__ +/* * These have to be done with inline assembly: that way the bit-setting * is guaranteed to be atomic. All bit operations return 0 if the bit
@@ -329,8 +331,6 @@ :"r" (~word));return word; } - -#ifdef __KERNEL__/** * ffs - find first bit set
--
dwmw2