diff options
author | Jagan Teki <jteki@openedev.com> | 2015-10-21 16:46:51 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-10-21 09:14:07 -0400 |
commit | 89b5c81b75658b7ff66dea6c38a51dfecc9dd508 (patch) | |
tree | abf5fd64f8f6ed5abd1029a5f6c02b382d003d83 /include/asm-generic | |
parent | 673452876fe988048764e3c9fc1c42b9f51d3255 (diff) | |
download | u-boot-imx-89b5c81b75658b7ff66dea6c38a51dfecc9dd508.zip u-boot-imx-89b5c81b75658b7ff66dea6c38a51dfecc9dd508.tar.gz u-boot-imx-89b5c81b75658b7ff66dea6c38a51dfecc9dd508.tar.bz2 |
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 <trini@konsulko.com>
Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/bitsperlong.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-generic/bitsperlong.h b/include/asm-generic/bitsperlong.h new file mode 100644 index 0000000..75ee21e --- /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 */ |