Skip to contentSkip to conversation

hardirq.h needs smp_lock.h

PATCH New Christoph Hellwig 1 participant 1 message Dec 5, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hardirq.h needs smp_lock.h

Many architectures use kernel_locked() in the defintion of in_atomic() in hardirq.h, but only ppc actually includes smp_lock.h to get it.

Fix up the others.

include/asm-alpha/hardirq.h +1 -0
@@ -4,6 +4,7 @@
 #include <linux/config.h>
 #include <linux/threads.h>
 #include <linux/cache.h>
+#include <linux/smp_lock.h>
 
 
 /* entry.S is sensitive to the offsets of these fields */
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-ppc64/hardirq.h +1 -0
@@ -12,6 +12,7 @@
 #include <linux/config.h>
 #include <linux/cache.h>
 #include <linux/preempt.h>
+#include <linux/smp_lock.h>
 
 typedef struct {
 	unsigned int __softirq_pending;
include/asm-sparc/hardirq.h +1 -0
@@ -12,6 +12,7 @@
 #include <linux/brlock.h>
 #include <linux/spinlock.h>
 #include <linux/cache.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
@@ -4,6 +4,7 @@
 #include <linux/config.h>
 #include <linux/threads.h>
 #include <linux/cache.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