OpenCloudOS-Kernel/drivers/net/ethernet/hisilicon/hns
Yonglong Liu 15400663ab net: hns: Fix sparse: some warnings in HNS drivers
There are some sparse warnings in the HNS drivers:

warning: incorrect type in assignment (different address spaces)
    expected void [noderef] <asn:2> *io_base
    got void *vaddr
warning: cast removes address space '<asn:2>' of expression
[...]

Add __iomem and change all the u8 __iomem to void __iomem to
fix these kind of  warnings.

warning: incorrect type in argument 1 (different address spaces)
    expected void [noderef] <asn:2> *base
    got unsigned char [usertype] *base_addr
warning: cast to restricted __le16
warning: incorrect type in assignment (different base types)
    expected unsigned int [usertype] tbl_tcam_data_high
    got restricted __le32 [usertype]
warning: cast to restricted __le32
[...]

These variables used u32/u16 as their type, and finally as a
parameter of writel(), writel() will do the cpu_to_le32 coversion
so remove the little endian covert code to fix these kind of warnings.

Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-04-04 10:35:42 -07:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hnae.c net: hns: Fix WARNING when remove HNS driver with SMMU enabled 2019-04-04 10:35:42 -07:00
hnae.h net: hns: Fix sparse: some warnings in HNS drivers 2019-04-04 10:35:42 -07:00
hns_ae_adapt.c net: hns: Fix use after free identified by SLUB debug 2019-01-04 13:33:57 -08:00
hns_dsaf_gmac.c net: hns: Add mac pcs config when enable|disable mac 2018-12-16 12:07:32 -08:00
hns_dsaf_gmac.h
hns_dsaf_mac.c net: hns: Fix sparse: some warnings in HNS drivers 2019-04-04 10:35:42 -07:00
hns_dsaf_mac.h net: hns: Fix sparse: some warnings in HNS drivers 2019-04-04 10:35:42 -07:00
hns_dsaf_main.c net: hns: Fix sparse: some warnings in HNS drivers 2019-04-04 10:35:42 -07:00
hns_dsaf_main.h net: hns: Fix sparse: some warnings in HNS drivers 2019-04-04 10:35:42 -07:00
hns_dsaf_misc.c net: hns: Fix sparse: some warnings in HNS drivers 2019-04-04 10:35:42 -07:00
hns_dsaf_misc.h net: hns: Add support of ACPI to HNS driver RoCE Reset function 2016-08-25 10:05:10 -04:00
hns_dsaf_ppe.c net: hns: Fix sparse: some warnings in HNS drivers 2019-04-04 10:35:42 -07:00
hns_dsaf_ppe.h net: hns: Fix sparse: some warnings in HNS drivers 2019-04-04 10:35:42 -07:00
hns_dsaf_rcb.c net: hns: Fix sparse: some warnings in HNS drivers 2019-04-04 10:35:42 -07:00
hns_dsaf_rcb.h net: hns: add the code for cleaning pkt in chip 2018-08-29 18:08:20 -07:00
hns_dsaf_reg.h net: hns: Fix sparse: some warnings in HNS drivers 2019-04-04 10:35:42 -07:00
hns_dsaf_xgmac.c net: hns: Fix probabilistic memory overwrite when HNS driver initialized 2019-04-04 10:35:42 -07:00
hns_dsaf_xgmac.h net: hns: fix to intimate the link-status change by adding LF/RF method 2016-11-10 11:45:37 -05:00
hns_enet.c net: hns: Use NAPI_POLL_WEIGHT for hns driver 2019-04-04 10:35:42 -07:00
hns_enet.h net: hns: Add self-adaptive interrupt coalesce support in hns driver 2017-08-03 09:21:14 -07:00
hns_ethtool.c net: hns: Restart autoneg need return failed when autoneg off 2019-01-27 23:01:56 -08:00