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

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

diff -u --recursive --new-file v2.1.109/linux/include/asm-sparc/bitops.h linux/include/asm-sparc/bitops.h
@@ -182,6 +182,8 @@
 	return result;
 }
 
+#ifdef __KERNEL__
+
 /*
  * ffs: find first bit set. This is defined the same way as
  * the libc and compiler builtin ffs routines, therefore
@@ -199,6 +201,7 @@
 #define hweight16(x) generic_hweight16(x)
 #define hweight8(x) generic_hweight8(x)
 
+#endif /* __KERNEL__ */
 
 /* find_next_zero_bit() finds the first zero bit in a bit string of length
  * 'size' bits, starting the search at bit 'offset'. This is largely based

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