]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] alpha writeq fixes
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Thu, 21 Oct 2004 11:03:39 +0000 (04:03 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 21 Oct 2004 11:03:39 +0000 (04:03 -0700)
Some drivers do ifdef on writeq; alpha has it as inline function, so they
get confused.

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-alpha/io.h

index 9e9de8e27a84ca089b0ecfa93be8218f78d5294b..77b549de4a2e8cd70af5c35a05ac0ae44668ef74 100644 (file)
@@ -658,6 +658,16 @@ isa_check_signature(unsigned long offset, const unsigned char *sig, long len)
 #define dma_cache_wback(_start,_size)          do { } while (0)
 #define dma_cache_wback_inv(_start,_size)      do { } while (0)
 
+/*
+ * Some mucking forons use if[n]def writeq to check if platform has it.
+ * It's a bloody bad idea and we probably want ARCH_HAS_WRITEQ for them
+ * to play with; for now just use cpp anti-recursion logics and make sure
+ * that damn thing is defined and expands to itself.
+ */
+
+#define writeq writeq
+#define readq readq
+
 #endif /* __KERNEL__ */
 
 #endif /* __ALPHA_IO_H */