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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207211000.DcYukPu4-lkp@intel.com>
Date:   Thu, 21 Jul 2022 10:14:16 +0800
From:   kernel test robot <lkp@...el.com>
To:     Max Filippov <jcmvbkbc@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [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")'

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ