From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [peterz-queue:locking/wip 6/7] include/linux/irqflags.h:177:31: error: implicit declaration of function 'arch_irqs_disabled'; did you mean
Date: Thu, 20 Aug 2020 05:31:51 +0800 [thread overview]
Message-ID: <202008200536.oiiO2Y3g%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5455 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/wip
head: a76254f60dc69826643c45a19418b3e4c67d68f4
commit: 8e0c3933252fff31aaf97b37f660b1a3107debd2 [6/7] lockdep: Only trace IRQ edges
config: nds32-allyesconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.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
git checkout 8e0c3933252fff31aaf97b37f660b1a3107debd2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
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 include/asm-generic/bitops.h:14,
from ./arch/nds32/include/generated/asm/bitops.h:1,
from include/linux/bitops.h:29,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from arch/nds32/kernel/asm-offsets.c:4:
include/linux/spinlock_api_smp.h: In function '__raw_spin_lock_irq':
>> include/linux/irqflags.h:177:31: error: implicit declaration of function 'arch_irqs_disabled'; did you mean 'raw_irqs_disabled'? [-Werror=implicit-function-declaration]
177 | #define raw_irqs_disabled() (arch_irqs_disabled())
| ^~~~~~~~~~~~~~~~~~
include/linux/irqflags.h:194:23: note: in expansion of macro 'raw_irqs_disabled'
194 | bool was_disabled = raw_irqs_disabled();\
| ^~~~~~~~~~~~~~~~~
include/linux/spinlock_api_smp.h:126:2: note: in expansion of macro 'local_irq_disable'
126 | local_irq_disable();
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/nds32/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1203: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=8e0c3933252fff31aaf97b37f660b1a3107debd2
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue locking/wip
git checkout 8e0c3933252fff31aaf97b37f660b1a3107debd2
vim +177 include/linux/irqflags.h
81d68a96a398448 Steven Rostedt 2008-05-12 151
df9ee29270c11db David Howells 2010-10-07 152 /*
df9ee29270c11db David Howells 2010-10-07 153 * Wrap the arch provided IRQ routines to provide appropriate checks.
df9ee29270c11db David Howells 2010-10-07 154 */
df9ee29270c11db David Howells 2010-10-07 155 #define raw_local_irq_disable() arch_local_irq_disable()
df9ee29270c11db David Howells 2010-10-07 156 #define raw_local_irq_enable() arch_local_irq_enable()
df9ee29270c11db David Howells 2010-10-07 157 #define raw_local_irq_save(flags) \
df9ee29270c11db David Howells 2010-10-07 158 do { \
df9ee29270c11db David Howells 2010-10-07 159 typecheck(unsigned long, flags); \
df9ee29270c11db David Howells 2010-10-07 160 flags = arch_local_irq_save(); \
df9ee29270c11db David Howells 2010-10-07 161 } while (0)
df9ee29270c11db David Howells 2010-10-07 162 #define raw_local_irq_restore(flags) \
df9ee29270c11db David Howells 2010-10-07 163 do { \
df9ee29270c11db David Howells 2010-10-07 164 typecheck(unsigned long, flags); \
df9ee29270c11db David Howells 2010-10-07 165 arch_local_irq_restore(flags); \
df9ee29270c11db David Howells 2010-10-07 166 } while (0)
df9ee29270c11db David Howells 2010-10-07 167 #define raw_local_save_flags(flags) \
df9ee29270c11db David Howells 2010-10-07 168 do { \
df9ee29270c11db David Howells 2010-10-07 169 typecheck(unsigned long, flags); \
df9ee29270c11db David Howells 2010-10-07 170 flags = arch_local_save_flags(); \
df9ee29270c11db David Howells 2010-10-07 171 } while (0)
df9ee29270c11db David Howells 2010-10-07 172 #define raw_irqs_disabled_flags(flags) \
df9ee29270c11db David Howells 2010-10-07 173 ({ \
df9ee29270c11db David Howells 2010-10-07 174 typecheck(unsigned long, flags); \
df9ee29270c11db David Howells 2010-10-07 175 arch_irqs_disabled_flags(flags); \
df9ee29270c11db David Howells 2010-10-07 176 })
df9ee29270c11db David Howells 2010-10-07 @177 #define raw_irqs_disabled() (arch_irqs_disabled())
df9ee29270c11db David Howells 2010-10-07 178 #define raw_safe_halt() arch_safe_halt()
de30a2b355ea853 Ingo Molnar 2006-07-03 179
:::::: The code at line 177 was first introduced by commit
:::::: df9ee29270c11dba7d0fe0b83ce47a4d8e8d2101 Fix IRQ flag handling naming
:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: David Howells <dhowells@redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 57986 bytes --]
reply other threads:[~2020-08-19 21:31 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=202008200536.oiiO2Y3g%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.