All of lore.kernel.org
 help / color / mirror / Atom feed
* [jcmvbkbc-xtensa:xtensa-5.19-rochester 13/13] arch/xtensa/kernel/traps.c:162:31: warning: ignoring attribute 'section (".data.exception")' because it conflicts with previous 'section (".data")'
@ 2022-07-21  2:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-21  2:14 UTC (permalink / raw)
  To: Max Filippov; +Cc: kbuild-all, linux-kernel

tree:   https://github.com/jcmvbkbc/linux-xtensa xtensa-5.19-rochester
head:   a44f397d234e4e2fdde909a931dfd1dcd6c69a1e
commit: a44f397d234e4e2fdde909a931dfd1dcd6c69a1e [13/13] WIP: xtensa: add VECTORS_DATA
config: xtensa-audio_kc705_defconfig (https://download.01.org/0day-ci/archive/20220721/202207211000.DcYukPu4-lkp@intel.com/config)
compiler: xtensa-test_kc705_hifi-linux-gcc (GCC) 12.1.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://github.com/jcmvbkbc/linux-xtensa/commit/a44f397d234e4e2fdde909a931dfd1dcd6c69a1e
        git remote add jcmvbkbc-xtensa https://github.com/jcmvbkbc/linux-xtensa
        git fetch --no-tags jcmvbkbc-xtensa xtensa-5.19-rochester
        git checkout a44f397d234e4e2fdde909a931dfd1dcd6c69a1e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=xtensa SHELL=/bin/bash arch/xtensa/kernel/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/asm-generic/percpu.h:7,
                    from ./arch/xtensa/include/generated/asm/percpu.h:1,
                    from include/linux/irqflags.h:17,
                    from include/asm-generic/cmpxchg-local.h:6,
                    from arch/xtensa/include/asm/cmpxchg.h:90,
                    from arch/xtensa/include/asm/atomic.h:19,
                    from include/linux/atomic.h:7,
                    from include/asm-generic/bitops/lock.h:5,
                    from arch/xtensa/include/asm/bitops.h:215,
                    from include/linux/bitops.h:33,
                    from include/linux/kernel.h:22,
                    from arch/xtensa/kernel/traps.c:26:
>> arch/xtensa/kernel/traps.c:162:31: warning: ignoring attribute 'section (".data.exception")' because it conflicts with previous 'section (".data")' [-Wattributes]
     162 | DEFINE_PER_CPU_SECTION(struct exc_table, exc_table, ".exception");
         |                               ^~~~~~~~~
   include/linux/percpu-defs.h:104:38: note: in definition of macro 'DEFINE_PER_CPU_SECTION'
     104 |         __PCPU_ATTRS(sec) __typeof__(type) name
         |                                      ^~~~
   arch/xtensa/include/asm/traps.h:42:35: note: previous declaration here
      42 | DECLARE_PER_CPU(struct exc_table, exc_table);
         |                                   ^~~~~~~~~
   include/linux/percpu-defs.h:101:51: note: in definition of macro 'DECLARE_PER_CPU_SECTION'
     101 |         extern __PCPU_ATTRS(sec) __typeof__(type) name
         |                                                   ^~~~
   arch/xtensa/include/asm/traps.h:42:1: note: in expansion of macro 'DECLARE_PER_CPU'
      42 | DECLARE_PER_CPU(struct exc_table, exc_table);
         | ^~~~~~~~~~~~~~~
   arch/xtensa/kernel/traps.c:452:13: warning: no previous prototype for 'trap_init' [-Wmissing-prototypes]
     452 | void __init trap_init(void)
         |             ^~~~~~~~~


vim +162 arch/xtensa/kernel/traps.c

   156	
   157	/* The exception table <exc_table> serves two functions:
   158	 * 1. it contains three dispatch tables (fast_user, fast_kernel, default-c)
   159	 * 2. it is a temporary memory buffer for the exception handlers.
   160	 */
   161	
 > 162	DEFINE_PER_CPU_SECTION(struct exc_table, exc_table, ".exception");
   163	DEFINE_PER_CPU(struct debug_table, debug_table);
   164	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-07-21  2:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-21  2:14 [jcmvbkbc-xtensa:xtensa-5.19-rochester 13/13] arch/xtensa/kernel/traps.c:162:31: warning: ignoring attribute 'section (".data.exception")' because it conflicts with previous 'section (".data")' 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.