mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Dinh Nguyen <dinguyen@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.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'?
Date: Wed, 27 Oct 2021 16:06:40 +0800	[thread overview]
Message-ID: <202110271636.nPqEHHab-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-10-27  8:07 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=202110271636.nPqEHHab-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dinguyen@kernel.org \
    --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

all inboxes | Powered by JetHome®