Skip to content

Commit c66358a

Browse files
Junxian Huangsmb49
authored andcommitted
RDMA/hns: Include hnae3.h in hns_roce_hw_v2.h
BugLink: https://bugs.launchpad.net/bugs/2119603 [ Upstream commit 2b11d33de23262cb20d1dcb24b586dbb8f54d463 ] hns_roce_hw_v2.h has a direct dependency on hnae3.h due to the inline function hns_roce_write64(), but it doesn't include this header currently. This leads to that files including hns_roce_hw_v2.h must also include hnae3.h to avoid compilation errors, even if they themselves don't really rely on hnae3.h. This doesn't make sense, hns_roce_hw_v2.h should include hnae3.h directly. Fixes: d3743fa ("RDMA/hns: Fix the chip hanging caused by sending doorbell during reset") Signed-off-by: Junxian Huang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Manuel Diewald <[email protected]> Signed-off-by: Mehmet Basaran <[email protected]>
1 parent b323b7b commit c66358a

File tree

5 files changed

+1
-4
lines changed

5 files changed

+1
-4
lines changed

drivers/infiniband/hw/hns/hns_roce_ah.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include <linux/pci.h>
3434
#include <rdma/ib_addr.h>
3535
#include <rdma/ib_cache.h>
36-
#include "hnae3.h"
3736
#include "hns_roce_device.h"
3837
#include "hns_roce_hw_v2.h"
3938

drivers/infiniband/hw/hns/hns_roce_hw_v2.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
#include <rdma/ib_umem.h>
4444
#include <rdma/uverbs_ioctl.h>
4545

46-
#include "hnae3.h"
4746
#include "hns_roce_common.h"
4847
#include "hns_roce_device.h"
4948
#include "hns_roce_cmd.h"

drivers/infiniband/hw/hns/hns_roce_hw_v2.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#define _HNS_ROCE_HW_V2_H
3535

3636
#include <linux/bitops.h>
37+
#include "hnae3.h"
3738

3839
#define HNS_ROCE_V2_MAX_RC_INL_INN_SZ 32
3940
#define HNS_ROCE_V2_MTT_ENTRY_SZ 64

drivers/infiniband/hw/hns/hns_roce_main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
#include <rdma/ib_smi.h>
3838
#include <rdma/ib_user_verbs.h>
3939
#include <rdma/ib_cache.h>
40-
#include "hnae3.h"
4140
#include "hns_roce_common.h"
4241
#include "hns_roce_device.h"
4342
#include "hns_roce_hem.h"

drivers/infiniband/hw/hns/hns_roce_restrack.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include <rdma/rdma_cm.h>
55
#include <rdma/restrack.h>
66
#include <uapi/rdma/rdma_netlink.h>
7-
#include "hnae3.h"
87
#include "hns_roce_common.h"
98
#include "hns_roce_device.h"
109
#include "hns_roce_hw_v2.h"

0 commit comments

Comments
 (0)