mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* arch/loongarch/include/asm/percpu.h:20:4: error: #error compiler support for the model attribute is necessary when a recent assembler is used
@ 2023-09-22  9:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-09-22  9:25 UTC (permalink / raw)
  To: WANG Xuerui; +Cc: oe-kbuild-all, linux-kernel, Huacai Chen

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   27bbf45eae9ca98877a2d52a92a188147cd61b07
commit: 38b10b269d04540aee05c34a059dcf304cfce0a8 LoongArch: Tweak CFLAGS for Clang compatibility
date:   3 months ago
config: loongarch-loongson3_defconfig (https://download.01.org/0day-ci/archive/20230922/202309221713.iTLkJPrI-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230922/202309221713.iTLkJPrI-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309221713.iTLkJPrI-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/percpu.h:12,
                    from include/linux/context_tracking_state.h:5,
                    from include/linux/hardirq.h:5,
                    from include/linux/interrupt.h:11,
                    from sound/pci/bt87x.c:11:
>> arch/loongarch/include/asm/percpu.h:20:4: error: #error compiler support for the model attribute is necessary when a recent assembler is used
      20 | #  error compiler support for the model attribute is necessary when a recent assembler is used
         |    ^~~~~


vim +20 arch/loongarch/include/asm/percpu.h

    10	
    11	/*
    12	 * The "address" (in fact, offset from $r21) of a per-CPU variable is close to
    13	 * the loading address of main kernel image, but far from where the modules are
    14	 * loaded. Tell the compiler this fact when using explicit relocs.
    15	 */
    16	#if defined(MODULE) && defined(CONFIG_AS_HAS_EXPLICIT_RELOCS)
    17	# if __has_attribute(model)
    18	#  define PER_CPU_ATTRIBUTES __attribute__((model("extreme")))
    19	# else
  > 20	#  error compiler support for the model attribute is necessary when a recent assembler is used
    21	# endif
    22	#endif
    23	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2023-09-22  9:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-22  9:25 arch/loongarch/include/asm/percpu.h:20:4: error: #error compiler support for the model attribute is necessary when a recent assembler is used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®