patch-2.1.110 linux/include/asm-ppc/bitops.h

Next file: linux/include/asm-sparc/bitops.h
Previous file: linux/include/asm-mips/bitops.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.109/linux/include/asm-ppc/bitops.h linux/include/asm-ppc/bitops.h
@@ -96,6 +96,8 @@
 	return 31 - n;
 }
 
+#ifdef __KERNEL__
+
 /*
  * ffs: find first bit set. This is defined the same way as
  * the libc and compiler builtin ffs routines, therefore
@@ -123,6 +125,8 @@
 #define hweight32(x) generic_hweight32(x)
 #define hweight16(x) generic_hweight16(x)
 #define hweight8(x) generic_hweight8(x)
+
+#endif /* __KERNEL__ */
 
 /*
  * This implementation of find_{first,next}_zero_bit was stolen from

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov