* [linux-next:master 11209/13751] arch/sh/include/asm/sfp-machine.h:17: warning: "__BYTE_ORDER" redefined
@ 2021-11-12 10:29 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-12 10:29 UTC (permalink / raw)
To: Randy Dunlap
Cc: kbuild-all, Linux Memory Management List, Rich Felker,
Geert Uytterhoeven
[-- Attachment #1: Type: text/plain, Size: 7483 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: f2e19fd15bd7cba347ce50be71955f5cd28a6019
commit: b929926f01f2d14635345d22eafcf60feed1085e [11209/13751] sh: define __BIG_ENDIAN for math-emu
config: sh-buildonly-randconfig-r005-20211028 (attached as .config)
compiler: sh4-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b929926f01f2d14635345d22eafcf60feed1085e
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout b929926f01f2d14635345d22eafcf60feed1085e
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from include/math-emu/soft-fp.h:27,
from arch/sh/math-emu/math.c:22:
>> arch/sh/include/asm/sfp-machine.h:17: warning: "__BYTE_ORDER" redefined
17 | #define __BYTE_ORDER __BIG_ENDIAN
|
In file included from arch/sh/math-emu/math.c:21:
arch/sh/math-emu/sfp-util.h:71: note: this is the location of the previous definition
71 | #define __BYTE_ORDER __LITTLE_ENDIAN
|
arch/sh/math-emu/math.c:54: warning: "WRITE" redefined
54 | #define WRITE(d,a) ({if(put_user(d, (typeof (d) __user *)a)) return -EFAULT;})
|
In file included from arch/sh/math-emu/math.c:10:
include/linux/kernel.h:38: note: this is the location of the previous definition
38 | #define WRITE 1
|
arch/sh/math-emu/math.c:55: warning: "READ" redefined
55 | #define READ(d,a) ({if(get_user(d, (typeof (d) __user *)a)) return -EFAULT;})
|
In file included from arch/sh/math-emu/math.c:10:
include/linux/kernel.h:37: note: this is the location of the previous definition
37 | #define READ 0
|
In file included from include/math-emu/soft-fp.h:187,
from arch/sh/math-emu/math.c:22:
arch/sh/math-emu/math.c: In function 'fcmp_gt':
arch/sh/math-emu/math.c:69:40: warning: variable 'Fn_c' set but not used [-Wunused-but-set-variable]
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~
include/math-emu/op-common.h:28:14: note: in definition of macro '_FP_DECL'
28 | _FP_I_TYPE X##_c=0, X##_s=0, X##_e=0; \
| ^
arch/sh/math-emu/math.c:69:27: note: in expansion of macro 'FP_DECL_D'
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~~~~~~~
arch/sh/math-emu/math.c:66:34: note: in expansion of macro 'CMP_X'
66 | FP_DECL_EX; if(FPSCR_PR) op(D,x,DRm,DRn); else op(S,x,FRm,FRn);
| ^~
arch/sh/math-emu/math.c:76:27: note: in expansion of macro 'BOTH_PRmn'
76 | #define CMP(OP) ({ int r; BOTH_PRmn(OP##_X,r); r; })
| ^~~~~~~~~
arch/sh/math-emu/math.c:81:13: note: in expansion of macro 'CMP'
81 | if (CMP(CMP) > 0)
| ^~~
arch/sh/math-emu/math.c:69:22: warning: variable 'Fm_c' set but not used [-Wunused-but-set-variable]
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~
include/math-emu/op-common.h:28:14: note: in definition of macro '_FP_DECL'
28 | _FP_I_TYPE X##_c=0, X##_s=0, X##_e=0; \
| ^
arch/sh/math-emu/math.c:69:9: note: in expansion of macro 'FP_DECL_D'
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~~~~~~~
arch/sh/math-emu/math.c:66:34: note: in expansion of macro 'CMP_X'
66 | FP_DECL_EX; if(FPSCR_PR) op(D,x,DRm,DRn); else op(S,x,FRm,FRn);
| ^~
arch/sh/math-emu/math.c:76:27: note: in expansion of macro 'BOTH_PRmn'
76 | #define CMP(OP) ({ int r; BOTH_PRmn(OP##_X,r); r; })
| ^~~~~~~~~
arch/sh/math-emu/math.c:81:13: note: in expansion of macro 'CMP'
81 | if (CMP(CMP) > 0)
| ^~~
arch/sh/math-emu/math.c:69:40: warning: variable 'Fn_c' set but not used [-Wunused-but-set-variable]
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~
include/math-emu/op-common.h:28:14: note: in definition of macro '_FP_DECL'
28 | _FP_I_TYPE X##_c=0, X##_s=0, X##_e=0; \
| ^
arch/sh/math-emu/math.c:69:27: note: in expansion of macro 'FP_DECL_S'
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~~~~~~~
arch/sh/math-emu/math.c:66:56: note: in expansion of macro 'CMP_X'
66 | FP_DECL_EX; if(FPSCR_PR) op(D,x,DRm,DRn); else op(S,x,FRm,FRn);
| ^~
arch/sh/math-emu/math.c:76:27: note: in expansion of macro 'BOTH_PRmn'
76 | #define CMP(OP) ({ int r; BOTH_PRmn(OP##_X,r); r; })
| ^~~~~~~~~
arch/sh/math-emu/math.c:81:13: note: in expansion of macro 'CMP'
81 | if (CMP(CMP) > 0)
| ^~~
arch/sh/math-emu/math.c:69:22: warning: variable 'Fm_c' set but not used [-Wunused-but-set-variable]
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~
include/math-emu/op-common.h:28:14: note: in definition of macro '_FP_DECL'
28 | _FP_I_TYPE X##_c=0, X##_s=0, X##_e=0; \
| ^
arch/sh/math-emu/math.c:69:9: note: in expansion of macro 'FP_DECL_S'
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~~~~~~~
arch/sh/math-emu/math.c:66:56: note: in expansion of macro 'CMP_X'
66 | FP_DECL_EX; if(FPSCR_PR) op(D,x,DRm,DRn); else op(S,x,FRm,FRn);
| ^~
arch/sh/math-emu/math.c:76:27: note: in expansion of macro 'BOTH_PRmn'
76 | #define CMP(OP) ({ int r; BOTH_PRmn(OP##_X,r); r; })
| ^~~~~~~~~
arch/sh/math-emu/math.c:81:13: note: in expansion of macro 'CMP'
81 | if (CMP(CMP) > 0)
| ^~~
arch/sh/math-emu/math.c: In function 'fcmp_eq':
arch/sh/math-emu/math.c:69:40: warning: variable 'Fn_c' set but not used [-Wunused-but-set-variable]
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~
include/math-emu/op-common.h:28:14: note: in definition of macro '_FP_DECL'
vim +/__BYTE_ORDER +17 arch/sh/include/asm/sfp-machine.h
15
16 #ifdef __BIG_ENDIAN__
> 17 #define __BYTE_ORDER __BIG_ENDIAN
18 #define __LITTLE_ENDIAN 0
19 #else
20 #define __BYTE_ORDER __LITTLE_ENDIAN
21 #define __BIG_ENDIAN 0
22 #endif
23
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 24184 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-12 10:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12 10:29 [linux-next:master 11209/13751] arch/sh/include/asm/sfp-machine.h:17: warning: "__BYTE_ORDER" redefined kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox