[PATCH] x86_64: Make sure BITS_PER_ATOMIC is defined in asm-generic/atomic.h
authorAndi Kleen <ak@suse.de>
Wed, 11 Jan 2006 21:46:12 +0000 (22:46 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 12 Jan 2006 03:05:01 +0000 (19:05 -0800)
Fixes

  CC      fs/nfsctl.o
In file included from include2/asm/atomic.h:427,
                 from /home/lsrc/quilt/linux/include/linux/file.h:8,
                 from /home/lsrc/quilt/linux/fs/nfsctl.c:8:
/home/lsrc/quilt/linux/include/asm-generic/atomic.h:20:5: warning: "BITS_PER_LONG" is not defined

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-x86_64/atomic.h

index 6b540237a2f805c7b94fbe2f002828ba50d21058..4b5cd553e772637d157b0af95edbd89d7e12eb1a 100644 (file)
@@ -2,6 +2,7 @@
 #define __ARCH_X86_64_ATOMIC__
 
 #include <linux/config.h>
+#include <asm/types.h>
 
 /* atomic_t should be 32 bit signed type */