Commit 009669cf authored by Doug Ledford's avatar Doug Ledford

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: a74d5307 ("IB/hfi1: Rework fault injection machinery")
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent e02637e9
...@@ -118,21 +118,6 @@ static inline void hfi1_dbg_init(void) ...@@ -118,21 +118,6 @@ static inline void hfi1_dbg_init(void)
static inline void hfi1_dbg_exit(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
#endif /* _HFI1_DEBUGFS_H */ #endif /* _HFI1_DEBUGFS_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment