Re: [tip:x86/headers] x86: truncate ISA addresses to unsigned int

From: H. Peter Anvin
Date: Tue Feb 17 2009 - 16:26:09 EST


James Bottomley wrote:
+static inline unsigned int isa_virt_to_bus(volatile void *address)

The rest looks fine, but why is the address volatile? The macro below
never actually dereferences it.


Because a volatile is permitted. virt_to_phys() takes a volatile pointer for that reason.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/