Commit ce13c19f4cb4bfd24c3c213d3eb9ad86b2c4b91b

Authored by Vignesh R
Committed by Jagan Teki
1 parent 6430eea639

sh: bitops: add hweight*() macros

Add hweight*() macros required for moving to new SF layer

Signed-off-by: Vignesh R <vigneshr@ti.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

arch/sh/include/asm/bitops.h
... ... @@ -153,6 +153,10 @@
153 153 }
154 154 #define PLATFORM_FFS
155 155  
  156 +#define hweight32(x) generic_hweight32(x)
  157 +#define hweight16(x) generic_hweight16(x)
  158 +#define hweight8(x) generic_hweight8(x)
  159 +
156 160 #endif /* __KERNEL__ */
157 161  
158 162 #endif /* __ASM_SH_BITOPS_H */