2004-11-05 04:03:49

by Jeff Dike

[permalink] [raw]
Subject: [PATCH] UML - update atomic.h so UML builds cleanly

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

Signed-off-by: Jeff Dike <[email protected]>

Index: linux-2.6.9/include/asm-um/atomic.h
===================================================================
--- linux-2.6.9.orig/include/asm-um/atomic.h 2004-06-16 01:19:29.000000000 -0400
+++ linux-2.6.9/include/asm-um/atomic.h 2004-11-02 18:36:48.000000000 -0500
@@ -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