]> git.hungrycats.org Git - linux/commitdiff
[PATCH] make irtty.c compile again
authorAnders Gustafsson <andersg@0x63.nu>
Thu, 7 Mar 2002 08:38:51 +0000 (00:38 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 7 Mar 2002 08:38:51 +0000 (00:38 -0800)
irtty.c includes irqueue.h which includes linux/cache.h (via
asm/processor.h <- asm/thread_info.h <- linux/thread_info.h <-
linux/spinlock.h)

both irqueue.h and cache.h defines a ALIGN (for different
purposes).

This patch renames ALIGN in irqueue.h to IRDA_ALIGN.

include/net/irda/irda.h
include/net/irda/irqueue.h

index 42a0c802c70a9ae127a448f6a0e091c273bc82e9..6f89d5df801a7722f383761a85ea0ecd86c93a21 100644 (file)
@@ -54,8 +54,8 @@ typedef __u32 magic_t;
 #define IRDA_MIN(a, b) (((a) < (b)) ? (a) : (b))
 #endif
 
-#ifndef ALIGN
-#  define ALIGN __attribute__((aligned))
+#ifndef IRDA_ALIGN
+#  define IRDA_ALIGN __attribute__((aligned))
 #endif
 #ifndef PACK
 #  define PACK __attribute__((packed))
index f7c1ba65971ceaf2f1b1a24f66239899387083f0..6394397ac8877db67a8b191d4410d5c5b4edde13 100644 (file)
@@ -49,8 +49,8 @@
 #define HASHBIN_SIZE   8
 #define HASHBIN_MASK   0x7
 
-#ifndef ALIGN 
-#define ALIGN __attribute__((aligned))
+#ifndef IRDA_ALIGN 
+#define IRDA_ALIGN __attribute__((aligned))
 #endif
 
 #define Q_NULL { NULL, NULL, "", 0 }
@@ -75,8 +75,8 @@ typedef struct hashbin_t {
        __u32      magic;
        int        hb_type;
        int        hb_size;
-       spinlock_t hb_mutex[HASHBIN_SIZE] ALIGN;
-       irda_queue_t   *hb_queue[HASHBIN_SIZE] ALIGN;
+       spinlock_t hb_mutex[HASHBIN_SIZE] IRDA_ALIGN;
+       irda_queue_t   *hb_queue[HASHBIN_SIZE] IRDA_ALIGN;
 
        irda_queue_t* hb_current;
 } hashbin_t;