tree: git://git.cmpxchg.org/linux-mmotm.git master head: bf384e483e31f8e2fc27d5fdb5236b2e9d3fdc84 commit: 15105f5f068efaadc15936bc92da3f9d0a260ce2 [121/198] Kbuild: always define endianess in kconfig.h config: h8300-h8300h-sim_defconfig (attached as .config) compiler: h8300-linux-gcc (GCC) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 15105f5f068efaadc15936bc92da3f9d0a260ce2 # save the attached .config to linux build tree make.cross ARCH=h8300 All warnings (new ones prefixed by >>): In file included from include/asm-generic/bitops/le.h:6:0, from arch/h8300/include/asm/bitops.h:177, from include/linux/bitops.h:38, from include/linux/log2.h:16, from include/asm-generic/getorder.h:8, from include/asm-generic/page.h:99, from arch/h8300/include/asm/page.h:5, from arch/h8300/include/asm/string.h:8, from include/linux/string.h:20, from include/linux/uuid.h:20, from include/linux/mod_devicetable.h:13, from scripts/mod/devicetable-offsets.c:3: >> arch/h8300/include/asm/byteorder.h:5:0: warning: "__BIG_ENDIAN" redefined #define __BIG_ENDIAN __ORDER_BIG_ENDIAN__ In file included from <command-line>:0:0: include/linux/kconfig.h:8:0: note: this is the location of the previous definition #define __BIG_ENDIAN 4321 -- In file included from include/asm-generic/bitops/le.h:6:0, from arch/h8300/include/asm/bitops.h:177, from include/linux/bitops.h:38, from include/linux/kernel.h:11, from include/linux/list.h:9, from include/linux/wait.h:7, from include/linux/wait_bit.h:8, from include/linux/fs.h:6, from include/linux/dax.h:5, from mm/filemap.c:14: >> arch/h8300/include/asm/byteorder.h:5:0: warning: "__BIG_ENDIAN" redefined #define __BIG_ENDIAN __ORDER_BIG_ENDIAN__ In file included from <command-line>:0:0: include/linux/kconfig.h:8:0: note: this is the location of the previous definition #define __BIG_ENDIAN 4321 mm/filemap.c: In function 'clear_bit_unlock_is_negative_byte': mm/filemap.c:1180:30: warning: passing argument 2 of 'test_bit' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers] return test_bit(PG_waiters, mem); ^~~ In file included from include/linux/bitops.h:38:0, from include/linux/kernel.h:11, from include/linux/list.h:9, from include/linux/wait.h:7, from include/linux/wait_bit.h:8, from include/linux/fs.h:6, from include/linux/dax.h:5, from mm/filemap.c:14: arch/h8300/include/asm/bitops.h:69:19: note: expected 'const long unsigned int *' but argument is of type 'volatile void *' static inline int test_bit(int nr, const unsigned long *addr) ^~~~~~~~ -- In file included from include/asm-generic/bitops/le.h:6:0, from arch/h8300/include/asm/bitops.h:177, from include/linux/bitops.h:38, from include/linux/kernel.h:11, from include/asm-generic/bug.h:18, from arch/h8300/include/asm/bug.h:8, from include/linux/bug.h:5, from include/linux/page-flags.h:10, from kernel/bounds.c:10: >> arch/h8300/include/asm/byteorder.h:5:0: warning: "__BIG_ENDIAN" redefined #define __BIG_ENDIAN __ORDER_BIG_ENDIAN__ In file included from <command-line>:0:0: include/linux/kconfig.h:8:0: note: this is the location of the previous definition #define __BIG_ENDIAN 4321 In file included from include/asm-generic/bitops/le.h:6:0, from arch/h8300/include/asm/bitops.h:177, from include/linux/bitops.h:38, from include/linux/kernel.h:11, from include/asm-generic/bug.h:18, from arch/h8300/include/asm/bug.h:8, from include/linux/bug.h:5, from include/linux/thread_info.h:12, from include/asm-generic/current.h:5, from ./arch/h8300/include/generated/asm/current.h:1, from include/linux/sched.h:12, from arch/h8300/kernel/asm-offsets.c:13: >> arch/h8300/include/asm/byteorder.h:5:0: warning: "__BIG_ENDIAN" redefined #define __BIG_ENDIAN __ORDER_BIG_ENDIAN__ In file included from <command-line>:0:0: include/linux/kconfig.h:8:0: note: this is the location of the previous definition #define __BIG_ENDIAN 4321 vim +/__BIG_ENDIAN +5 arch/h8300/include/asm/byteorder.h d2a5f499 Yoshinori Sato 2015-05-11 4 d2a5f499 Yoshinori Sato 2015-05-11 @5 #define __BIG_ENDIAN __ORDER_BIG_ENDIAN__ d2a5f499 Yoshinori Sato 2015-05-11 6 #include <linux/byteorder/big_endian.h> d2a5f499 Yoshinori Sato 2015-05-11 7 :::::: The code at line 5 was first introduced by commit :::::: d2a5f4999f6c211adf30d9788349e13988d6f2a7 h8300: Assembly headers :::::: TO: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx> :::::: CC: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip