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)
commit184da9dc780e32ea80090bb02c59e4ac4e52ef96
treec2fa93d372a578aec45c08357c66611a60f41d2c
parent7acf76b1cd0141e7de070594ddb0bb26fdb8ab4e
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