ARM: 8390/1: irqflags: Get arch_irqs_disabled from asm-generic
authorDaniel Thompson <daniel.thompson@linaro.org>
Wed, 10 Jun 2015 11:25:15 +0000 (12:25 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 10 Jun 2015 22:52:35 +0000 (23:52 +0100)
commit6fb18ac9366b74fadb2c1d0da88f143bfe87d001
tree6bb202af2c84c7493c858d06f95286520e0007bb
parent90543ec8290b31b15fc9dd6de8e9c2b6347a9059
ARM: 8390/1: irqflags: Get arch_irqs_disabled from asm-generic

Commit cb1293e2f594 ("ARM: 8375/1: disable some options on ARMv7-M")
causes the build to on ARMv7-M machines:

  CC      arch/arm/kernel/asm-offsets.s
In file included from include/linux/sem.h:5:0,
                 from include/linux/sched.h:35,
                 from arch/arm/kernel/asm-offsets.c:14:
include/linux/rcupdate.h: In function 'rcu_read_lock_sched_held':
include/linux/rcupdate.h:539:2: error: implicit declaration of function
'arch_irqs_disabled' [-Werror=implicit-function-declaration]
  return preempt_count() != 0 || irqs_disabled();

asm-generic/irqflags.h provides an implementation of arch_irqs_disabled().
Lets grab an implementation from there!

Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/irqflags.h
This page took 0.026844 seconds and 5 git commands to generate.