Skip to contentSkip to conversation

UML - update atomic.h so UML builds cleanly

PATCH New Jeff Dike 1 participant 1 message Nov 5, 2004 Atomic infrastructure

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 1/1 UML - update atomic.h so UML builds cleanly

The comment should be self-explanatory. This works around a pile of nasty-looking build output.

include/asm-um/atomic.h +5 -0
Index: linux-2.6.9/include/asm-um/atomic.h
===================================================================
@@ -1,6 +1,11 @@
 #ifndef __UM_ATOMIC_H
 #define __UM_ATOMIC_H
 
+/* The i386 atomic.h calls printk, but doesn't include kernel.h, so we
+ * include it here.
+ */
+#include "linux/kernel.h"
+
 #include "asm/arch/atomic.h"
 
 #endif