aboutsummaryrefslogtreecommitdiff
path: root/include/asm-generic/word-at-a-time.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/word-at-a-time.h')
-rw-r--r--include/asm-generic/word-at-a-time.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-generic/word-at-a-time.h b/include/asm-generic/word-at-a-time.h
index 3f21f1b72e45..94f9ea8abcae 100644
--- a/include/asm-generic/word-at-a-time.h
+++ b/include/asm-generic/word-at-a-time.h
@@ -49,4 +49,8 @@ static inline bool has_zero(unsigned long val, unsigned long *data, const struct
return (val + c->high_bits) & ~rhs;
}
+#ifndef zero_bytemask
+#define zero_bytemask(mask) (~1ul << __fls(mask))
+#endif
+
#endif /* _ASM_WORD_AT_A_TIME_H */