提交 fbd81976 编写于 作者: A Al Viro

[PATCH] __iomem annotations: smc91x

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 a80958f4
...@@ -1216,7 +1216,7 @@ static const char * chip_ids[ 16 ] = { ...@@ -1216,7 +1216,7 @@ static const char * chip_ids[ 16 ] = {
if (SMC_CAN_USE_32BIT) { \ if (SMC_CAN_USE_32BIT) { \
void *__ptr = (p); \ void *__ptr = (p); \
int __len = (l); \ int __len = (l); \
void *__ioaddr = ioaddr; \ void __iomem *__ioaddr = ioaddr; \
if (__len >= 2 && (unsigned long)__ptr & 2) { \ if (__len >= 2 && (unsigned long)__ptr & 2) { \
__len -= 2; \ __len -= 2; \
SMC_outw(*(u16 *)__ptr, ioaddr, DATA_REG); \ SMC_outw(*(u16 *)__ptr, ioaddr, DATA_REG); \
...@@ -1240,7 +1240,7 @@ static const char * chip_ids[ 16 ] = { ...@@ -1240,7 +1240,7 @@ static const char * chip_ids[ 16 ] = {
if (SMC_CAN_USE_32BIT) { \ if (SMC_CAN_USE_32BIT) { \
void *__ptr = (p); \ void *__ptr = (p); \
int __len = (l); \ int __len = (l); \
void *__ioaddr = ioaddr; \ void __iomem *__ioaddr = ioaddr; \
if ((unsigned long)__ptr & 2) { \ if ((unsigned long)__ptr & 2) { \
/* \ /* \
* We want 32bit alignment here. \ * We want 32bit alignment here. \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册