summaryrefslogtreecommitdiffstats
path: root/include/asm-ia64/io.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2005-08-23 18:24:00 +0200
committerTony Luck <tony.luck@intel.com>2005-08-24 23:55:09 +0200
commitb5f3616ba73699d07deee1f244179fae49502052 (patch)
tree22081641f3873ec2f7632005357be03ca1468e3d /include/asm-ia64/io.h
parent[IA64] arch/ia64/hp/sim/boot/fw-emu.c: remove egcs workaround (diff)
downloadlinux-b5f3616ba73699d07deee1f244179fae49502052.tar.xz
linux-b5f3616ba73699d07deee1f244179fae49502052.zip
[IA64] fix IO_SPACE_SPARSE_ENCODING macro ambiguity
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>
Diffstat (limited to 'include/asm-ia64/io.h')
-rw-r--r--include/asm-ia64/io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-ia64/io.h b/include/asm-ia64/io.h
index 54e7637a326c..a2f92edd717d 100644
--- a/include/asm-ia64/io.h
+++ b/include/asm-ia64/io.h
@@ -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 */