summaryrefslogtreecommitdiff
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorHuazhong Tan <tanhuazhong@huawei.com>2020-12-07 10:20:25 +0300
committerDavid S. Miller <davem@davemloft.net>2020-12-07 10:38:33 +0300
commit61f54de2e9194f01874d5eda12037b0978e77519 (patch)
tree6cceee2c84f4704fa17ac82f8e76ec2bf49a2ab9 /net/ipv4/udp.c
parentedd2410b165e2ef00b2264ae362edf7441ca929c (diff)
downloadlinux-61f54de2e9194f01874d5eda12037b0978e77519.tar.xz
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: a582b78dfc33 ("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>
Diffstat (limited to 'net/ipv4/udp.c')
0 files changed, 0 insertions, 0 deletions