]> err.no Git - linux-2.6/commitdiff
sgi-xp: define BYTES_PER_WORD
authorDean Nelson <dcn@sgi.com>
Wed, 30 Jul 2008 05:34:03 +0000 (22:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Jul 2008 16:41:48 +0000 (09:41 -0700)
Add a BYTES_PER_WORD #define.

Signed-off-by: Dean Nelson <dcn@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/sgi-xp/xp.h

index 21cb8a31def1340a154979e16c1b0ca4755be4bc..867fb4863d5a02dc660966ad16adb59f348d2900 100644 (file)
@@ -19,6 +19,9 @@
 #include <asm/sn/types.h>
 #include <asm/sn/bte.h>
 
+/* >>> Add this #define to some linux header file some day. */
+#define BYTES_PER_WORD sizeof(void *)
+
 #ifdef USE_DBUG_ON
 #define DBUG_ON(condition)     BUG_ON(condition)
 #else