diff options
| author | Ethan Chen <intervigil@gmail.com> | 2018-09-03 19:11:39 -0700 |
|---|---|---|
| committer | Harry Youd <harry@harryyoud.co.uk> | 2018-09-06 11:47:40 +0100 |
| commit | e1e0d80bd9c1b6339c9e848dc1d9385ea2bb932c (patch) | |
| tree | 96404c141f813af4ca75b6998932c377107666fc | |
| parent | 8dd9c83c8386619fae70af85b13dda51d535e1bc (diff) | |
uapi: Define __BITS_PER_LONG based on compiler targetp9.0-los
* We may compile 32-bit ARM code against these kernel headers in many
situations, so provide a compiler-defined method of obtaining the width
of long.
Change-Id: Iac5e48200d70f1258ab3caca1a8f1eb6e8f7f2d3
| -rw-r--r-- | arch/arm64/include/uapi/asm/bitsperlong.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/include/uapi/asm/bitsperlong.h b/arch/arm64/include/uapi/asm/bitsperlong.h index fce9c2924fa..71f93d50bb2 100644 --- a/arch/arm64/include/uapi/asm/bitsperlong.h +++ b/arch/arm64/include/uapi/asm/bitsperlong.h @@ -16,7 +16,11 @@ #ifndef __ASM_BITSPERLONG_H #define __ASM_BITSPERLONG_H +#ifdef __aarch64__ #define __BITS_PER_LONG 64 +#else +#define __BITS_PER_LONG 32 +#endif #include <asm-generic/bitsperlong.h> |
