diff options
| -rw-r--r-- | arch/powerpc/include/asm/word-at-a-time.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/word-at-a-time.h b/arch/powerpc/include/asm/word-at-a-time.h index 5b3a903adae6..e4396a7d0f7c 100644 --- a/arch/powerpc/include/asm/word-at-a-time.h +++ b/arch/powerpc/include/asm/word-at-a-time.h | |||
| @@ -40,6 +40,11 @@ static inline bool has_zero(unsigned long val, unsigned long *data, const struct | |||
| 40 | return (val + c->high_bits) & ~rhs; | 40 | return (val + c->high_bits) & ~rhs; |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | static inline unsigned long zero_bytemask(unsigned long mask) | ||
| 44 | { | ||
| 45 | return ~1ul << __fls(mask); | ||
| 46 | } | ||
| 47 | |||
| 43 | #else | 48 | #else |
| 44 | 49 | ||
| 45 | #ifdef CONFIG_64BIT | 50 | #ifdef CONFIG_64BIT |
