mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [dinguyen:nios2_fixes_v5.15_v2 2/2] arch/nios2/include/asm/irqflags.h:12:28: error: 'CTL_FSTATUS' undeclared; did you mean 'NIOS2_CTL_FSTATUS'?
@ 2021-10-27  8:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-27  8:06 UTC (permalink / raw)
  To: Dinh Nguyen; +Cc: kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git nios2_fixes_v5.15_v2
head:   0b628af61b5541ff28aecdf7d5a2511e52f66639
commit: 0b628af61b5541ff28aecdf7d5a2511e52f66639 [2/2] nios2: Add NIOS2_ to distinquish defines
config: nios2-randconfig-r031-20211027 (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.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/dinguyen/linux.git/commit/?id=0b628af61b5541ff28aecdf7d5a2511e52f66639
        git remote add dinguyen https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git
        git fetch --no-tags dinguyen nios2_fixes_v5.15_v2
        git checkout 0b628af61b5541ff28aecdf7d5a2511e52f66639
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 prepare

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

All errors (new ones prefixed by >>):

   In file included from arch/nios2/include/asm/irqflags.h:8,
                    from include/linux/irqflags.h:16,
                    from include/asm-generic/bitops.h:14,
                    from ./arch/nios2/include/generated/asm/bitops.h:1,
                    from include/linux/bitops.h:33,
                    from include/linux/log2.h:12,
                    from kernel/bounds.c:13:
   arch/nios2/include/asm/irqflags.h: In function 'arch_local_save_flags':
>> arch/nios2/include/asm/irqflags.h:12:28: error: 'CTL_FSTATUS' undeclared (first use in this function); did you mean 'NIOS2_CTL_FSTATUS'?
      12 |         return NIOS2_RDCTL(CTL_FSTATUS);
         |                            ^~~~~~~~~~~
   arch/nios2/include/asm/registers.h:32:41: note: in definition of macro 'NIOS2_RDCTL'
      32 | #define NIOS2_RDCTL(r)  __builtin_rdctl(r)
         |                                         ^
   arch/nios2/include/asm/irqflags.h:12:28: note: each undeclared identifier is reported only once for each function it appears in
      12 |         return NIOS2_RDCTL(CTL_FSTATUS);
         |                            ^~~~~~~~~~~
   arch/nios2/include/asm/registers.h:32:41: note: in definition of macro 'NIOS2_RDCTL'
      32 | #define NIOS2_RDCTL(r)  __builtin_rdctl(r)
         |                                         ^
   arch/nios2/include/asm/irqflags.h: In function 'arch_local_irq_restore':
   arch/nios2/include/asm/irqflags.h:21:21: error: 'CTL_FSTATUS' undeclared (first use in this function); did you mean 'NIOS2_CTL_FSTATUS'?
      21 |         NIOS2_WRCTL(CTL_FSTATUS, flags);
         |                     ^~~~~~~~~~~
   arch/nios2/include/asm/registers.h:33:49: note: in definition of macro 'NIOS2_WRCTL'
      33 | #define NIOS2_WRCTL(r, v)       __builtin_wrctl(r, v)
         |                                                 ^
   make[2]: *** [scripts/Makefile.build:121: kernel/bounds.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1219: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:219: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +12 arch/nios2/include/asm/irqflags.h

     9	
    10	static inline unsigned long arch_local_save_flags(void)
    11	{
  > 12		return NIOS2_RDCTL(CTL_FSTATUS);
    13	}
    14	

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

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

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

only message in thread, other threads:[~2021-10-27  8:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27  8:06 [dinguyen:nios2_fixes_v5.15_v2 2/2] arch/nios2/include/asm/irqflags.h:12:28: error: 'CTL_FSTATUS' undeclared; did you mean 'NIOS2_CTL_FSTATUS'? 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®