Re: [PATCH v2] net: Fix Hisilicon Network Subsystem Support Compilation

2015-09-25 Thread huangdaode
On 2015/9/25 15:12, David Miller wrote: From: huangdaode Date: Fri, 25 Sep 2015 14:47:23 +0800 @@ -966,7 +966,15 @@ static inline u32 dsaf_get_reg_field(void *base, u32 reg, u32 mask, u32 shift) #define dsaf_read_b(addr)\ readb((__iomem unsigned char *)(addr)) +#ifndef readq +st

Re: [PATCH v2] net: Fix Hisilicon Network Subsystem Support Compilation

2015-09-25 Thread David Miller
From: huangdaode Date: Fri, 25 Sep 2015 14:47:23 +0800 > @@ -966,7 +966,15 @@ static inline u32 dsaf_get_reg_field(void *base, u32 > reg, u32 mask, u32 shift) > #define dsaf_read_b(addr)\ > readb((__iomem unsigned char *)(addr)) > > +#ifndef readq > +static inline u64 readq(void __iomem

[PATCH v2] net: Fix Hisilicon Network Subsystem Support Compilation

2015-09-24 Thread huangdaode
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 Signed-off-by: zhaung