WSL2-Linux-Kernel/drivers/net/ethernet/hisilicon
Huazhong Tan 61f54de2e9 net: hns3: remove a misused pragma packed
hclge_dbg_reg_info[] is defined as an array of packed structure
accidentally. However, this array contains pointers, which are
no longer aligned naturally, and cannot be relocated on PPC64.
Hence, when compile-testing this driver on PPC64 with
CONFIG_RELOCATABLE=y (e.g. PowerPC allyesconfig), there will be
some warnings.

Since each field in structure hclge_qos_pri_map_cmd and
hclge_dbg_bitmap_cmd is type u8, the pragma packed is unnecessary
for these two structures as well, so remove the pragma packed in
hclge_debugfs.h to fix this issue, and this increases
hclge_dbg_reg_info[] by 4 bytes per entry.

Fixes: a582b78dfc ("net: hns3: code optimization for debugfs related to "dump reg"")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-12-06 23:38:33 -08:00
..
hns drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
hns3 net: hns3: remove a misused pragma packed 2020-12-06 23:38:33 -08:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hip04_eth.c hisilicon: let core reject the unsupported coalescing parameters 2020-03-05 12:12:35 -08:00
hisi_femac.c net: convert suitable drivers to use phy_do_ioctl_running 2020-01-23 10:49:30 +01:00
hix5hd2_gmac.c net: hix5hd2_gmac: Remove unneeded cast from memory allocation 2020-07-24 17:28:51 -07:00
hns_mdio.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00