lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 21 Apr 2022 14:42:24 +0800
From:   kernel test robot <lkp@...el.com>
To:     Randy Dunlap <rdunlap@...radead.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Geert Uytterhoeven <geert+renesas@...der.be>,
        Rich Felker <dalias@...c.org>, Sasha Levin <sashal@...nel.org>
Subject: [linux-stable-rc:linux-5.15.y 1067/5978]
 arch/sh/include/asm/sfp-machine.h:17: warning: "__BYTE_ORDER" redefined

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.15.y
head:   81d8d30c35edf29c5c70186ccb14dac4a5ca38a8
commit: 3d937f901cea25765a3dea5f54c4a04322790f6e [1067/5978] sh: define __BIG_ENDIAN for math-emu
config: sh-buildonly-randconfig-r005-20220420 (https://download.01.org/0day-ci/archive/20220421/202204210320.mV4dGGk4-lkp@intel.com/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/stable/linux-stable-rc.git/commit/?id=3d937f901cea25765a3dea5f54c4a04322790f6e
        git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
        git fetch --no-tags linux-stable-rc linux-5.15.y
        git checkout 3d937f901cea25765a3dea5f54c4a04322790f6e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash arch/sh/math-emu/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.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)*)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)*)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
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ