linux-mm.kvack.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 Memory Management List <linux-mm@kvack.org>,
	Rich Felker <dalias@libc.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>
Subject: [linux-next:master 11209/13751] arch/sh/include/asm/sfp-machine.h:17: warning: "__BYTE_ORDER" redefined
Date: Fri, 12 Nov 2021 18:29:30 +0800	[thread overview]
Message-ID: <202111121827.6v6SXtVv-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-11-12 10:30 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=202111121827.6v6SXtVv-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dalias@libc.org \
    --cc=geert+renesas@glider.be \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=rdunlap@infradead.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