[PATCH] UML - update atomic.h so UML builds cleanly

From: Jeff Dike
Date: Thu Nov 04 2004 - 23:06:16 EST


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

Signed-off-by: Jeff Dike <jdike@xxxxxxxxxxx>

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/