Re: Add sparse "__iomem" infrastructure to check PCI address usage

From: Jeff Garzik
Date: Sun Sep 12 2004 - 19:28:21 EST


Linux Kernel Mailing List wrote:
--- a/include/linux/compiler.h 2004-09-11 00:26:40 -07:00
+++ b/include/linux/compiler.h 2004-09-11 00:26:40 -07:00
@@ -6,13 +6,17 @@
# define __kernel /* default address space */
# define __safe __attribute__((safe))
# define __force __attribute__((force))
+# define __iomem __attribute__((noderef, address_space(2)))

Dumb gcc attribute questions:

1) what does force do? it doesn't appear to be in gcc 3.3.3 docs.

2) is "volatile ... __force" redundant?

3) can we use 'malloc' attribute on kmalloc?

-
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/