public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Max Filippov <jcmvbkbc@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.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")'
Date: Thu, 21 Jul 2022 10:14:16 +0800	[thread overview]
Message-ID: <202207211000.DcYukPu4-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-07-21  2:14 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=202207211000.DcYukPu4-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jcmvbkbc@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.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