]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[IA64] fix IO_SPACE_SPARSE_ENCODING macro ambiguity
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 23 Aug 2005 16:24:00 +0000 (09:24 -0700)
committerTony Luck <tony.luck@intel.com>
Wed, 24 Aug 2005 21:55:09 +0000 (14:55 -0700)
Parenthesize "p" to avoid ambiguity.  No callers have a problem today;
this is just to clean up the bad form.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
include/asm-ia64/io.h

index 54e7637a326c4e1ffb6aab9835abab5f384e3be0..a2f92edd717d8aa677a1deaa8b9d0703fe2b1d12 100644 (file)
@@ -41,7 +41,7 @@
 #define IO_SPACE_BASE(space)           ((space) << IO_SPACE_BITS)
 #define IO_SPACE_PORT(port)            ((port) & (IO_SPACE_SIZE - 1))
 
-#define IO_SPACE_SPARSE_ENCODING(p)    ((((p) >> 2) << 12) | (p & 0xfff))
+#define IO_SPACE_SPARSE_ENCODING(p)    ((((p) >> 2) << 12) | ((p) & 0xfff))
 
 struct io_space {
        unsigned long mmio_base;        /* base in MMIO space */