public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ia64: fix IO_SPACE_SPARSE_ENCODING macro ambiguity
@ 2005-08-23 16:24 Bjorn Helgaas
  0 siblings, 0 replies; only message in thread
From: Bjorn Helgaas @ 2005-08-23 16:24 UTC (permalink / raw)
  To: linux-ia64

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>

Index: work-vga/include/asm-ia64/io.h
=================================--- work-vga.orig/include/asm-ia64/io.h	2005-08-10 14:07:01.000000000 -0600
+++ work-vga/include/asm-ia64/io.h	2005-08-18 13:56:55.000000000 -0600
@@ -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 */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-23 16:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-23 16:24 [PATCH] ia64: fix IO_SPACE_SPARSE_ENCODING macro ambiguity Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox