All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:locking/wip 9/10] include/linux/spinlock_api_smp.h:126:2: error: implicit declaration of function 'arch_irqs_disabled'
@ 2020-08-20 22:28 kernel test robot
  2020-08-21  8:45 ` peterz
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2020-08-20 22:28 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/wip
head:   5087f2b9cf24ee0e6e1eb118b473fee280922a99
commit: d42ea184d6f89df14ad19483932874466ec29c2c [9/10] lockdep: Only trace IRQ edges
config: arm64-randconfig-r005-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 4deda57106f7c9b982a49cb907c33e3966c8de7f)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        git checkout d42ea184d6f89df14ad19483932874466ec29c2c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

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/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:13:
   In file included from include/linux/irqdomain.h:35:
   In file included from include/linux/of.h:17:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:13:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:16:
   In file included from include/linux/spinlock.h:318:
>> include/linux/spinlock_api_smp.h:126:2: error: implicit declaration of function 'arch_irqs_disabled' [-Werror,-Wimplicit-function-declaration]
           local_irq_disable();
           ^
   include/linux/irqflags.h:194:23: note: expanded from macro 'local_irq_disable'
                   bool was_disabled = raw_irqs_disabled();\
                                       ^
   include/linux/irqflags.h:177:31: note: expanded from macro 'raw_irqs_disabled'
   #define raw_irqs_disabled()             (arch_irqs_disabled())
                                            ^
   include/linux/spinlock_api_smp.h:126:2: note: did you mean 'arch_irqs_disabled_flags'?
   include/linux/irqflags.h:194:23: note: expanded from macro 'local_irq_disable'
                   bool was_disabled = raw_irqs_disabled();\
                                       ^
   include/linux/irqflags.h:177:31: note: expanded from macro 'raw_irqs_disabled'
   #define raw_irqs_disabled()             (arch_irqs_disabled())
                                            ^
   arch/arm64/include/asm/irqflags.h:83:19: note: 'arch_irqs_disabled_flags' declared here
   static inline int arch_irqs_disabled_flags(unsigned long flags)
                     ^
   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:13:
   In file included from include/linux/irqdomain.h:35:
   In file included from include/linux/of.h:17:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:13:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:16:
   In file included from include/linux/spinlock.h:318:
   In file included from include/linux/spinlock_api_smp.h:190:
>> include/linux/rwlock_api_smp.h:167:2: error: implicit declaration of function 'arch_irqs_disabled' [-Werror,-Wimplicit-function-declaration]
           local_irq_disable();
           ^
   include/linux/irqflags.h:194:23: note: expanded from macro 'local_irq_disable'
                   bool was_disabled = raw_irqs_disabled();\
                                       ^
   include/linux/irqflags.h:177:31: note: expanded from macro 'raw_irqs_disabled'
   #define raw_irqs_disabled()             (arch_irqs_disabled())
                                            ^
   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:13:
   In file included from include/linux/irqdomain.h:35:
   In file included from include/linux/of.h:17:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:13:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:16:
   In file included from include/linux/spinlock.h:318:
   In file included from include/linux/spinlock_api_smp.h:190:
   include/linux/rwlock_api_smp.h:194:2: error: implicit declaration of function 'arch_irqs_disabled' [-Werror,-Wimplicit-function-declaration]
           local_irq_disable();
           ^
   include/linux/irqflags.h:194:23: note: expanded from macro 'local_irq_disable'
                   bool was_disabled = raw_irqs_disabled();\
                                       ^
   include/linux/irqflags.h:177:31: note: expanded from macro 'raw_irqs_disabled'
   #define raw_irqs_disabled()             (arch_irqs_disabled())
                                            ^
   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:13:
   In file included from include/linux/irqdomain.h:35:
   In file included from include/linux/of.h:17:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:13:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:16:
>> include/linux/spinlock.h:419:9: error: implicit declaration of function 'arch_irqs_disabled' [-Werror,-Wimplicit-function-declaration]
           return raw_spin_trylock_irq(&lock->rlock);
                  ^
   include/linux/spinlock.h:299:2: note: expanded from macro 'raw_spin_trylock_irq'
           local_irq_disable(); \
           ^
   include/linux/irqflags.h:194:23: note: expanded from macro 'local_irq_disable'
                   bool was_disabled = raw_irqs_disabled();\
                                       ^
   include/linux/irqflags.h:177:31: note: expanded from macro 'raw_irqs_disabled'
   #define raw_irqs_disabled()             (arch_irqs_disabled())
                                            ^
   In file included from arch/arm64/kernel/asm-offsets.c:14:
   In file included from include/linux/kvm_host.h:36:
   In file included from arch/arm64/include/asm/kvm_host.h:36:
   In file included from include/kvm/arm_pmu.h:10:
   In file included from include/linux/perf_event.h:57:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
>> include/linux/interrupt.h:426:2: error: implicit declaration of function 'arch_irqs_disabled' [-Werror,-Wimplicit-function-declaration]
           local_irq_disable();
           ^
   include/linux/irqflags.h:194:23: note: expanded from macro 'local_irq_disable'
                   bool was_disabled = raw_irqs_disabled();\
                                       ^
   include/linux/irqflags.h:177:31: note: expanded from macro 'raw_irqs_disabled'
   #define raw_irqs_disabled()             (arch_irqs_disabled())
                                            ^
   In file included from arch/arm64/kernel/asm-offsets.c:14:
   In file included from include/linux/kvm_host.h:36:
   In file included from arch/arm64/include/asm/kvm_host.h:36:
   In file included from include/kvm/arm_pmu.h:10:
   In file included from include/linux/perf_event.h:57:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   include/linux/interrupt.h:442:2: error: implicit declaration of function 'arch_irqs_disabled' [-Werror,-Wimplicit-function-declaration]
           local_irq_disable();
           ^
   include/linux/irqflags.h:194:23: note: expanded from macro 'local_irq_disable'
                   bool was_disabled = raw_irqs_disabled();\
                                       ^
   include/linux/irqflags.h:177:31: note: expanded from macro 'raw_irqs_disabled'
   #define raw_irqs_disabled()             (arch_irqs_disabled())
                                            ^
   6 errors generated.
   make[2]: *** [scripts/Makefile.build:117: arch/arm64/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=d42ea184d6f89df14ad19483932874466ec29c2c
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 d42ea184d6f89df14ad19483932874466ec29c2c
vim +/arch_irqs_disabled +126 include/linux/spinlock_api_smp.h

69d0ee7377eef80 Heiko Carstens  2009-08-31  123  
9c1721aa4994f66 Thomas Gleixner 2009-12-03  124  static inline void __raw_spin_lock_irq(raw_spinlock_t *lock)
69d0ee7377eef80 Heiko Carstens  2009-08-31  125  {
69d0ee7377eef80 Heiko Carstens  2009-08-31 @126  	local_irq_disable();
69d0ee7377eef80 Heiko Carstens  2009-08-31  127  	preempt_disable();
69d0ee7377eef80 Heiko Carstens  2009-08-31  128  	spin_acquire(&lock->dep_map, 0, 0, _RET_IP_);
9828ea9d75c38fe Thomas Gleixner 2009-12-03  129  	LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock);
69d0ee7377eef80 Heiko Carstens  2009-08-31  130  }
69d0ee7377eef80 Heiko Carstens  2009-08-31  131  

:::::: The code at line 126 was first introduced by commit
:::::: 69d0ee7377eef808e34ba5542b554ec97244b871 locking: Move spinlock function bodies to header file

:::::: TO: Heiko Carstens <heiko.carstens@de.ibm.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

---
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: 31760 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [peterz-queue:locking/wip 9/10] include/linux/spinlock_api_smp.h:126:2: error: implicit declaration of function 'arch_irqs_disabled'
  2020-08-20 22:28 [peterz-queue:locking/wip 9/10] include/linux/spinlock_api_smp.h:126:2: error: implicit declaration of function 'arch_irqs_disabled' kernel test robot
@ 2020-08-21  8:45 ` peterz
  2020-08-21 12:40   ` Chen, Rong A
  0 siblings, 1 reply; 3+ messages in thread
From: peterz @ 2020-08-21  8:45 UTC (permalink / raw)
  To: kbuild-all

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

On Fri, Aug 21, 2020 at 06:28:45AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/wip
> head:   5087f2b9cf24ee0e6e1eb118b473fee280922a99

0day guys, why did you send me a: "BUILD SUCCESS" mail _after_ sending
this build error?

That's just wrong.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [peterz-queue:locking/wip 9/10] include/linux/spinlock_api_smp.h:126:2: error: implicit declaration of function 'arch_irqs_disabled'
  2020-08-21  8:45 ` peterz
@ 2020-08-21 12:40   ` Chen, Rong A
  0 siblings, 0 replies; 3+ messages in thread
From: Chen, Rong A @ 2020-08-21 12:40 UTC (permalink / raw)
  To: kbuild-all

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



On 8/21/2020 4:45 PM, peterz(a)infradead.org wrote:
> On Fri, Aug 21, 2020 at 06:28:45AM +0800, kernel test robot wrote:
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/wip
>> head:   5087f2b9cf24ee0e6e1eb118b473fee280922a99
> 0day guys, why did you send me a: "BUILD SUCCESS" mail _after_ sending
> this build error?
>
> That's just wrong.

Hi Peter,

Thanks for reminding us, we'll fix it asap.

Best Regards,
Rong Chen

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-21 12:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20 22:28 [peterz-queue:locking/wip 9/10] include/linux/spinlock_api_smp.h:126:2: error: implicit declaration of function 'arch_irqs_disabled' kernel test robot
2020-08-21  8:45 ` peterz
2020-08-21 12:40   ` Chen, Rong A

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.