aboutsummaryrefslogtreecommitdiff
path: root/linux-headers/include/asm
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2016-12-06 15:45:35 -0800
committerAndrew Waterman <andrew@sifive.com>2016-12-06 15:45:50 -0800
commit805ee1d3bf5e10e0f4bb91841bf6bf56e7009997 (patch)
treed26c8dd1f425962957bd1527b0692441ad5072c9 /linux-headers/include/asm
parentac0778a4759ca71749e7a03db5a13d003bbf5da2 (diff)
downloadriscv-gnu-toolchain-805ee1d3bf5e10e0f4bb91841bf6bf56e7009997.zip
riscv-gnu-toolchain-805ee1d3bf5e10e0f4bb91841bf6bf56e7009997.tar.gz
riscv-gnu-toolchain-805ee1d3bf5e10e0f4bb91841bf6bf56e7009997.tar.bz2
avoid non-standard predefined macros
Diffstat (limited to 'linux-headers/include/asm')
-rw-r--r--linux-headers/include/asm/bitsperlong.h2
-rw-r--r--linux-headers/include/asm/byteorder.h6
2 files changed, 1 insertions, 7 deletions
diff --git a/linux-headers/include/asm/bitsperlong.h b/linux-headers/include/asm/bitsperlong.h
index e7f8569..33d3ae0 100644
--- a/linux-headers/include/asm/bitsperlong.h
+++ b/linux-headers/include/asm/bitsperlong.h
@@ -1,7 +1,7 @@
#ifndef _ASM_RISCV_BITSPERLONG_H
#define _ASM_RISCV_BITSPERLONG_H
-#define __BITS_PER_LONG _RISCV_SZLONG
+#define __BITS_PER_LONG (__SIZEOF_POINTER__ * 8)
#include <asm-generic/bitsperlong.h>
diff --git a/linux-headers/include/asm/byteorder.h b/linux-headers/include/asm/byteorder.h
index 994a61a..0be8269 100644
--- a/linux-headers/include/asm/byteorder.h
+++ b/linux-headers/include/asm/byteorder.h
@@ -1,12 +1,6 @@
#ifndef _ASM_RISCV_BYTEORDER_H
#define _ASM_RISCV_BYTEORDER_H
-#if defined(__RISCVEL__)
#include <linux/byteorder/little_endian.h>
-#elif defined(__RISCVEB__)
-#include <linux/byteorder/big_endian.h>
-#else
-#error "Unknown endianness"
-#endif
#endif /* _ASM_RISCV_BYTEORDER_H */