OSDN Git Service

RDMA/hfi1: Fix build error with debugfs disabled
authorDoug Ledford <dledford@redhat.com>
Tue, 15 May 2018 18:19:19 +0000 (14:19 -0400)
committerDoug Ledford <dledford@redhat.com>
Tue, 15 May 2018 18:24:18 +0000 (14:24 -0400)
commit009669cfad50beb10b3f63434863de231c6b408e
treece3841061842e34e6e0cc4aa5871334fb617d0b2
parente02637e97d68a54b1527bc654bf8377eda310226
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>
drivers/infiniband/hw/hfi1/debugfs.h