]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix hns3 driver header file not self-contained issue
authorJie Wang <wangjie125@huawei.com>
Fri, 3 Dec 2021 09:20:59 +0000 (17:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Dec 2021 11:01:00 +0000 (11:01 +0000)
commit84e4dd6a4684b4f15d2093dde8a944d0317479c8
treec2fa93d372a578aec45c08357c66611a60f41d2c
parent50ab3a339d041c027a200a87dea1d6feab522a30
net: hns3: fix hns3 driver header file not self-contained issue

The hns3 driver header file uses the structure of other files, but does
not include corresponding file, which causes a check warning that the
header file is not self-contained.

Therefore, the required header file is included in the header file, and
the structure declaration is added to the header file to avoid cyclic
dependency of the header file.

Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h