projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3fa3af
)
e1000: fix sparse warning
author
Stephen Hemminger
<
[email protected]
>
Thu, 24 Feb 2011 16:11:42 +0000
(16:11 +0000)
committer
Jeff Kirsher
<
[email protected]
>
Wed, 2 Mar 2011 11:20:56 +0000
(
03:20
-0800)
Sparse complains because the e1000 driver is calling ioread on a pointer
not tagged as __iomem.
Signed-off-by: Stephen Hemminger <
[email protected]
>
Reviewed-by: Jesse Brandeburg <
[email protected]
>
Tested-by: Jeff Pieper <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/e1000/e1000_osdep.h
patch
|
blob
|
history
diff --git
a/drivers/net/e1000/e1000_osdep.h
b/drivers/net/e1000/e1000_osdep.h
index 55c1711f1688d626d1ed84427882c8b25983fccc..33e7c45a4fe4831bf306d501b93ff12ce673b065 100644
(file)
--- a/
drivers/net/e1000/e1000_osdep.h
+++ b/
drivers/net/e1000/e1000_osdep.h
@@
-42,7
+42,8
@@
#define GBE_CONFIG_RAM_BASE \
((unsigned int)(CONFIG_RAM_BASE + GBE_CONFIG_OFFSET))
-#define GBE_CONFIG_BASE_VIRT phys_to_virt(GBE_CONFIG_RAM_BASE)
+#define GBE_CONFIG_BASE_VIRT \
+ ((void __iomem *)phys_to_virt(GBE_CONFIG_RAM_BASE))
#define GBE_CONFIG_FLASH_WRITE(base, offset, count, data) \
(iowrite16_rep(base + offset, data, count))