linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Rich Felker <dalias@libc.org>, Sasha Levin <sashal@kernel.org>
Subject: [linux-stable-rc:linux-5.15.y 1067/5978] arch/sh/include/asm/sfp-machine.h:17: warning: "__BYTE_ORDER" redefined
Date: Thu, 21 Apr 2022 14:42:24 +0800	[thread overview]
Message-ID: <202204210320.mV4dGGk4-lkp@intel.com> (raw)

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@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)*)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

                 reply	other threads:[~2022-04-21  6:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202204210320.mV4dGGk4-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dalias@libc.org \
    --cc=geert+renesas@glider.be \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=sashal@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).