diff options
author | huangdaode <huangdaode@hisilicon.com> | 2015-09-27 09:22:44 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-29 07:34:23 +0200 |
commit | e4600d69ffc7c0ce9759532e2c10056bf1c0a1a7 (patch) | |
tree | fa5c6ad725c290a315ad27f132fe3851041f5f4d /drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h | |
parent | net: irda: pxaficp_ir: dmaengine conversion (diff) | |
download | linux-e4600d69ffc7c0ce9759532e2c10056bf1c0a1a7.tar.xz linux-e4600d69ffc7c0ce9759532e2c10056bf1c0a1a7.zip |
net: Fix Hisilicon Network Subsystem Support Compilation
This patch fixes the compilation error with arm allmodconfig, this error
generated due to unavailability of readq() on 32-bit platform which was
found during net-next daily compilation. In the same time, fix all the
hns drivers compilation warnings.
Signed-off-by: huangdaode <huangdaode@hisilicon.com>
Signed-off-by: zhaungyuzeng <Yisen.zhuang@huawei.com>
Signed-off-by: kenneth Lee <liguozhu@hisilicon.com>
Signed-off-by: yankejian <yankejian@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h index 6fc58ba01f87..b475e1bf2e6f 100644 --- a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h +++ b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h @@ -967,6 +967,6 @@ static inline u32 dsaf_get_reg_field(void *base, u32 reg, u32 mask, u32 shift) readb((__iomem unsigned char *)(addr)) #define hns_mac_reg_read64(drv, offset) \ - readq((__iomem void *)(((u64)(drv)->io_base + 0xc00 + (offset)))) + readq((__iomem void *)(((u8 *)(drv)->io_base + 0xc00 + (offset)))) #endif /* _DSAF_REG_H */ |