summaryrefslogtreecommitdiffstats
path: root/arch/openrisc/include/asm/bitops.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/openrisc/include/asm/bitops.h')
-rw-r--r--arch/openrisc/include/asm/bitops.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/openrisc/include/asm/bitops.h b/arch/openrisc/include/asm/bitops.h
index c001a5d1f6..c76a40901f 100644
--- a/arch/openrisc/include/asm/bitops.h
+++ b/arch/openrisc/include/asm/bitops.h
@@ -25,4 +25,8 @@
#define PLATFORM_FFS
#include <asm/bitops/ffs.h>
+#define hweight32(x) generic_hweight32(x)
+#define hweight16(x) generic_hweight16(x)
+#define hweight8(x) generic_hweight8(x)
+
#endif /* __ASM_GENERIC_BITOPS_H */
OpenPOWER on IntegriCloud