diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-08-08 01:30:46 +0900 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-08-12 08:59:51 +0200 |
commit | 4bbc3bb207354d819c940298133a950d7f02ea46 (patch) | |
tree | e09a92be65a480cc41ee6f8379b042fd1ca78bf2 /arch/mips/include | |
parent | 384ff14253cc9c6be35deb18bca750d35101258e (diff) | |
download | barebox-4bbc3bb207354d819c940298133a950d7f02ea46.tar.gz barebox-4bbc3bb207354d819c940298133a950d7f02ea46.tar.xz |
mips: use generic bitsperlong.h
Linux highly depends on the fact that the 'long' and the pointer
have the same width, and so does barebox.
So, we can always use include/asm-generic/bitsperlong.h, which
determines BITS_PER_LONG depending on CONFIG_64BIT.
This is what Linux does (at least in the kernel-space), and barebox
can follow it.
It is true that MIPS Linux references _MIPS_SZLONG
(arch/mips/include/uaspi/asm/bitsperlong.h), but this is bacause
the user-space cannot reference CONFIG options. For the kernel-space,
it uses the generic definition from include/asm-generic/bitsperlong.h.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/bitsperlong.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/mips/include/asm/bitsperlong.h b/arch/mips/include/asm/bitsperlong.h index 41712161bc..6dc0bb0c13 100644 --- a/arch/mips/include/asm/bitsperlong.h +++ b/arch/mips/include/asm/bitsperlong.h @@ -1,6 +1 @@ -#ifndef __ASM_MIPS_BITSPERLONG_H -#define __ASM_MIPS_BITSPERLONG_H - -#define BITS_PER_LONG _MIPS_SZLONG - -#endif /* __ASM_MIPS_BITSPERLONG_H */ +#include <asm-generic/bitsperlong.h> |