From 89b5c81b75658b7ff66dea6c38a51dfecc9dd508 Mon Sep 17 00:00:00 2001 From: Jagan Teki Date: Wed, 21 Oct 2015 16:46:51 +0530 Subject: linux/bitops.h: GENMASK copy from linux GENMASK is used to create a contiguous bitmask([hi:lo]). This patch is a copy from Linux, with below commit details "bitops: Fix shift overflow in GENMASK macros" (sha1: 00b4d9a14125f1e51874def2b9de6092e007412d) Cc: Tom Rini Cc: Masahiro Yamada Signed-off-by: Jagan Teki --- include/asm-generic/bitsperlong.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 include/asm-generic/bitsperlong.h (limited to 'include/asm-generic') diff --git a/include/asm-generic/bitsperlong.h b/include/asm-generic/bitsperlong.h new file mode 100644 index 00000000000..75ee21e86ac --- /dev/null +++ b/include/asm-generic/bitsperlong.h @@ -0,0 +1,8 @@ +#ifndef __ASM_GENERIC_BITS_PER_LONG +#define __ASM_GENERIC_BITS_PER_LONG + +#ifndef BITS_PER_LONG_LONG +#define BITS_PER_LONG_LONG 64 +#endif + +#endif /* __ASM_GENERIC_BITS_PER_LONG */ -- cgit v1.2.3