include smp_lock.h in hardirq.h
PATCH 1/1 include smp_lock.h in hardirq.h
if CONFIG_PREEMPT is set many of the hardirq.h implementations require lock_kernel() to be present. Include it directly instead of letting each source file fix it (especially as sane configs without preemt enabled don't require it)
include/asm-alpha/hardirq.h +1 -0
@@ -3,6 +3,7 @@#include <linux/config.h> #include <linux/threads.h> +#include <linux/smp_lock.h> /* entry.S is sensitive to the offsets of these fields */ typedef struct {
include/asm-arm/hardirq.h +1 -0
@@ -4,6 +4,7 @@#include <linux/config.h> #include <linux/cache.h> #include <linux/threads.h> +#include <linux/smp_lock.h> /* softirq.h is sensitive to the offsets of these fields */ typedef struct {
include/asm-i386/hardirq.h +1 -0
@@ -4,6 +4,7 @@#include <linux/config.h> #include <linux/threads.h> #include <linux/irq.h> +#include <linux/smp_lock.h> /* assembly code in softirq.h is sensitive to the offsets of these fields */ typedef struct {
include/asm-m68k/hardirq.h +1 -0
@@ -3,6 +3,7 @@#include <linux/threads.h> #include <linux/cache.h> +#include <linux/smp_lock.h> /* entry.S is sensitive to the offsets of these fields */ typedef struct {
include/asm-m68knommu/hardirq.h +1 -0
@@ -3,6 +3,7 @@#include <linux/config.h> #include <linux/threads.h> +#include <linux/smp_lock.h> typedef struct { unsigned int __softirq_pending;
include/asm-ppc/hardirq.h +1 -0
@@ -3,6 +3,7 @@#define __ASM_HARDIRQ_H#include <linux/config.h> +#include <linux/smp_lock.h> #include <asm/smp.h> /* The __last_jiffy_stamp field is needed to ensure that no decrementer
include/asm-ppc64/hardirq.h +1 -0
@@ -11,6 +11,7 @@#include <linux/config.h> #include <linux/preempt.h> +#include <linux/smp_lock.h> typedef struct { unsigned int __softirq_pending;
include/asm-sparc/hardirq.h +1 -0
@@ -11,6 +11,7 @@#include <linux/threads.h> #include <linux/brlock.h> #include <linux/spinlock.h> +#include <linux/smp_lock.h> /* entry.S is sensitive to the offsets of these fields */ /* XXX P3 Is it? */ typedef struct {
include/asm-sparc64/hardirq.h +1 -0
@@ -10,6 +10,7 @@#include <linux/threads.h> #include <linux/brlock.h> #include <linux/spinlock.h> +#include <linux/smp_lock.h> /* entry.S is sensitive to the offsets of these fields */ /* rtrap.S is sensitive to the size of this structure */
include/asm-v850/hardirq.h +1 -0
@@ -3,6 +3,7 @@#include <linux/config.h> #include <linux/threads.h> +#include <linux/smp_lock.h> typedef struct { unsigned int __softirq_pending;
include/asm-x86_64/hardirq.h +1 -0
@@ -4,6 +4,7 @@#include <linux/config.h> #include <linux/threads.h> #include <linux/irq.h> +#include <linux/smp_lock.h> #include <asm/pda.h> #define __ARCH_IRQ_STAT 1
include/linux/smp_lock.h +1 -0
@@ -4,6 +4,7 @@#include <linux/config.h> #include <linux/sched.h> #include <linux/spinlock.h> +#include <linux/smp_lock.h> #if CONFIG_SMP ||CONFIG_PREEMPT