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: <202110271636.nPqEHHab-lkp@intel.com>
Date:   Wed, 27 Oct 2021 16:06:40 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dinh Nguyen <dinguyen@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [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'?

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

Download attachment ".config.gz" of type "application/gzip" (29534 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ