summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorDean Nelson <dcn@sgi.com>2008-07-30 07:34:03 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-30 18:41:48 +0200
commit78ce1bbe446e9b46dcd6c1e60a4768448a8ce355 (patch)
treefb7c75dd25d991dc6a8be630c1a46ebc498c2cf6 /drivers/misc
parentsgi-xp: define xpSalError reason code (diff)
downloadlinux-78ce1bbe446e9b46dcd6c1e60a4768448a8ce355.tar.xz
linux-78ce1bbe446e9b46dcd6c1e60a4768448a8ce355.zip
sgi-xp: define BYTES_PER_WORD
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/sgi-xp/xp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/sgi-xp/xp.h b/drivers/misc/sgi-xp/xp.h
index 21cb8a31def1..867fb4863d5a 100644
--- a/drivers/misc/sgi-xp/xp.h
+++ b/drivers/misc/sgi-xp/xp.h
@@ -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