summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/hfi1/debugfs.h
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2018-05-15 21:19:19 +0300
committerDoug Ledford <dledford@redhat.com>2018-05-15 21:24:18 +0300
commit009669cfad50beb10b3f63434863de231c6b408e (patch)
treece3841061842e34e6e0cc4aa5871334fb617d0b2 /drivers/infiniband/hw/hfi1/debugfs.h
parente02637e97d68a54b1527bc654bf8377eda310226 (diff)
downloadlinux-009669cfad50beb10b3f63434863de231c6b408e.tar.xz
RDMA/hfi1: Fix build error with debugfs disabled
A recent patch set to rework the usage of debugfs and to add fault injection capabilities via debugfs files to the hfi1 driver introduced a build error that only shows up when debugfs is fully disabled. The patchset mistakenly defines some empty stub functions in two different headers when debugfs is disabled. Remove the set that shouldn't have been there to resolve the issue. Fixes: a74d5307caba ("IB/hfi1: Rework fault injection machinery") Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/debugfs.h')
-rw-r--r--drivers/infiniband/hw/hfi1/debugfs.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/infiniband/hw/hfi1/debugfs.h b/drivers/infiniband/hw/hfi1/debugfs.h
index 1c91461b108f..d5d824459fcc 100644
--- a/drivers/infiniband/hw/hfi1/debugfs.h
+++ b/drivers/infiniband/hw/hfi1/debugfs.h
@@ -118,21 +118,6 @@ static inline void hfi1_dbg_init(void)
static inline void hfi1_dbg_exit(void)
{
}
-
-static inline bool hfi1_dbg_should_fault_rx(struct hfi1_packet *packet)
-{
- return false;
-}
-
-static inline bool hfi1_dbg_should_fault_tx(struct rvt_qp *qp, u32 opcode)
-{
- return false;
-}
-
-static inline bool hfi1_dbg_fault_suppress_err(struct hfi1_ibdev *ibd)
-{
- return false;
-}
#endif
#endif /* _HFI1_DEBUGFS_H */