All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [arnd-playground:warnings-5.10 63/69] include/linux/compiler-gcc.h:171:20: warning: unknown option after '#pragma GCC diagnostic' kind
@ 2020-10-23 22:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-23 22:17 UTC (permalink / raw
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 9700 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git warnings-5.10
head:   615aebf38433a96a4b449c9ff1965aa345f3a7e6
commit: 041b31a93209209c28038f7eefe7ede375a929df [63/69] ARM: perf: hide initializer override warnings
config: arm-shmobile_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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/arnd/playground.git/commit/?id=041b31a93209209c28038f7eefe7ede375a929df
        git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
        git fetch --no-tags arnd-playground warnings-5.10
        git checkout 041b31a93209209c28038f7eefe7ede375a929df
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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/linux/compiler_types.h:74,
                    from <command-line>:
>> include/linux/compiler-gcc.h:171:20: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas]
     171 | #define __diag(s)  _Pragma(__diag_str(GCC diagnostic s))
         |                    ^~~~~~~
   include/linux/compiler-gcc.h:198:26: note: in expansion of macro '__diag'
     198 | #define __diag_GCC_8(s)  __diag(s)
         |                          ^~~~~~
   include/linux/compiler-gcc.h:162:2: note: in expansion of macro '__diag_GCC_8'
     162 |  __diag_GCC_ ## version(__diag_GCC_ ## severity s)
         |  ^~~~~~~~~~~
   include/linux/compiler_types.h:342:2: note: in expansion of macro '__diag_GCC'
     342 |  __diag_ ## compiler(version, ignore, option)
         |  ^~~~~~~
   arch/arm/kernel/perf_event_v7.c:152:1: note: in expansion of macro '__diag_ignore'
     152 | __diag_ignore(GCC, 8, "-Woverride-inits", "for PERF_MAP_ALL_UNSUPPORTED")
         | ^~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:80:36: warning: initialized field overwritten [-Woverride-init]
      80 | #define ARMV7_PERFCTR_CPU_CYCLES   0xFF
         |                                    ^~~~
   arch/arm/kernel/perf_event_v7.c:164:32: note: in expansion of macro 'ARMV7_PERFCTR_CPU_CYCLES'
     164 |  [PERF_COUNT_HW_CPU_CYCLES]  = ARMV7_PERFCTR_CPU_CYCLES,
         |                                ^~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:80:36: note: (near initialization for 'armv7_a8_perf_map[0]')
      80 | #define ARMV7_PERFCTR_CPU_CYCLES   0xFF
         |                                    ^~~~
   arch/arm/kernel/perf_event_v7.c:164:32: note: in expansion of macro 'ARMV7_PERFCTR_CPU_CYCLES'
     164 |  [PERF_COUNT_HW_CPU_CYCLES]  = ARMV7_PERFCTR_CPU_CYCLES,
         |                                ^~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:47:40: warning: initialized field overwritten [-Woverride-init]
      47 | #define ARMV7_PERFCTR_INSTR_EXECUTED   0x08
         |                                        ^~~~
   arch/arm/kernel/perf_event_v7.c:165:34: note: in expansion of macro 'ARMV7_PERFCTR_INSTR_EXECUTED'
     165 |  [PERF_COUNT_HW_INSTRUCTIONS]  = ARMV7_PERFCTR_INSTR_EXECUTED,
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:47:40: note: (near initialization for 'armv7_a8_perf_map[1]')
      47 | #define ARMV7_PERFCTR_INSTR_EXECUTED   0x08
         |                                        ^~~~
   arch/arm/kernel/perf_event_v7.c:165:34: note: in expansion of macro 'ARMV7_PERFCTR_INSTR_EXECUTED'
     165 |  [PERF_COUNT_HW_INSTRUCTIONS]  = ARMV7_PERFCTR_INSTR_EXECUTED,
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:43:42: warning: initialized field overwritten [-Woverride-init]
      43 | #define ARMV7_PERFCTR_L1_DCACHE_ACCESS   0x04
         |                                          ^~~~
   arch/arm/kernel/perf_event_v7.c:166:37: note: in expansion of macro 'ARMV7_PERFCTR_L1_DCACHE_ACCESS'
     166 |  [PERF_COUNT_HW_CACHE_REFERENCES] = ARMV7_PERFCTR_L1_DCACHE_ACCESS,
         |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:43:42: note: (near initialization for 'armv7_a8_perf_map[2]')
      43 | #define ARMV7_PERFCTR_L1_DCACHE_ACCESS   0x04
         |                                          ^~~~
   arch/arm/kernel/perf_event_v7.c:166:37: note: in expansion of macro 'ARMV7_PERFCTR_L1_DCACHE_ACCESS'
     166 |  [PERF_COUNT_HW_CACHE_REFERENCES] = ARMV7_PERFCTR_L1_DCACHE_ACCESS,
         |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:42:42: warning: initialized field overwritten [-Woverride-init]
      42 | #define ARMV7_PERFCTR_L1_DCACHE_REFILL   0x03
         |                                          ^~~~
   arch/arm/kernel/perf_event_v7.c:167:34: note: in expansion of macro 'ARMV7_PERFCTR_L1_DCACHE_REFILL'
     167 |  [PERF_COUNT_HW_CACHE_MISSES]  = ARMV7_PERFCTR_L1_DCACHE_REFILL,
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:42:42: note: (near initialization for 'armv7_a8_perf_map[3]')
      42 | #define ARMV7_PERFCTR_L1_DCACHE_REFILL   0x03
         |                                          ^~~~
   arch/arm/kernel/perf_event_v7.c:167:34: note: in expansion of macro 'ARMV7_PERFCTR_L1_DCACHE_REFILL'
     167 |  [PERF_COUNT_HW_CACHE_MISSES]  = ARMV7_PERFCTR_L1_DCACHE_REFILL,
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:59:35: warning: initialized field overwritten [-Woverride-init]
      59 | #define ARMV7_PERFCTR_PC_WRITE    0x0C
         |                                   ^~~~
   arch/arm/kernel/perf_event_v7.c:168:40: note: in expansion of macro 'ARMV7_PERFCTR_PC_WRITE'
     168 |  [PERF_COUNT_HW_BRANCH_INSTRUCTIONS] = ARMV7_PERFCTR_PC_WRITE,
         |                                        ^~~~~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:59:35: note: (near initialization for 'armv7_a8_perf_map[4]')
      59 | #define ARMV7_PERFCTR_PC_WRITE    0x0C
         |                                   ^~~~
   arch/arm/kernel/perf_event_v7.c:168:40: note: in expansion of macro 'ARMV7_PERFCTR_PC_WRITE'
     168 |  [PERF_COUNT_HW_BRANCH_INSTRUCTIONS] = ARMV7_PERFCTR_PC_WRITE,
         |                                        ^~~~~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:63:43: warning: initialized field overwritten [-Woverride-init]
      63 | #define ARMV7_PERFCTR_PC_BRANCH_MIS_PRED  0x10
         |                                           ^~~~
   arch/arm/kernel/perf_event_v7.c:169:35: note: in expansion of macro 'ARMV7_PERFCTR_PC_BRANCH_MIS_PRED'
     169 |  [PERF_COUNT_HW_BRANCH_MISSES]  = ARMV7_PERFCTR_PC_BRANCH_MIS_PRED,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:63:43: note: (near initialization for 'armv7_a8_perf_map[5]')
      63 | #define ARMV7_PERFCTR_PC_BRANCH_MIS_PRED  0x10
         |                                           ^~~~
   arch/arm/kernel/perf_event_v7.c:169:35: note: in expansion of macro 'ARMV7_PERFCTR_PC_BRANCH_MIS_PRED'
     169 |  [PERF_COUNT_HW_BRANCH_MISSES]  = ARMV7_PERFCTR_PC_BRANCH_MIS_PRED,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:86:40: warning: initialized field overwritten [-Woverride-init]
      86 | #define ARMV7_A8_PERFCTR_STALL_ISIDE   0x56
         |                                        ^~~~
   arch/arm/kernel/perf_event_v7.c:170:44: note: in expansion of macro 'ARMV7_A8_PERFCTR_STALL_ISIDE'
     170 |  [PERF_COUNT_HW_STALLED_CYCLES_FRONTEND] = ARMV7_A8_PERFCTR_STALL_ISIDE,
         |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:86:40: note: (near initialization for 'armv7_a8_perf_map[7]')
      86 | #define ARMV7_A8_PERFCTR_STALL_ISIDE   0x56
         |                                        ^~~~
   arch/arm/kernel/perf_event_v7.c:170:44: note: in expansion of macro 'ARMV7_A8_PERFCTR_STALL_ISIDE'
     170 |  [PERF_COUNT_HW_STALLED_CYCLES_FRONTEND] = ARMV7_A8_PERFCTR_STALL_ISIDE,
         |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/perf_event_v7.c:43:42: warning: initialized field overwritten [-Woverride-init]
      43 | #define ARMV7_PERFCTR_L1_DCACHE_ACCESS   0x04

vim +171 include/linux/compiler-gcc.h

8793bb7f4a9dd13 Arnd Bergmann 2018-06-19  168  
8793bb7f4a9dd13 Arnd Bergmann 2018-06-19  169  #define __diag_str1(s)		#s
8793bb7f4a9dd13 Arnd Bergmann 2018-06-19  170  #define __diag_str(s)		__diag_str1(s)
8793bb7f4a9dd13 Arnd Bergmann 2018-06-19 @171  #define __diag(s)		_Pragma(__diag_str(GCC diagnostic s))
8793bb7f4a9dd13 Arnd Bergmann 2018-06-19  172  

:::::: The code at line 171 was first introduced by commit
:::::: 8793bb7f4a9dd1396575d2e9337d331662cb7555 kbuild: add macro for controlling warnings to linux/compiler.h

:::::: TO: Arnd Bergmann <arnd@arndb.de>
:::::: CC: Masahiro Yamada <yamada.masahiro@socionext.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31743 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-23 22:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-23 22:17 [arnd-playground:warnings-5.10 63/69] include/linux/compiler-gcc.h:171:20: warning: unknown option after '#pragma GCC diagnostic' kind kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.