diff options
author | Chad Dupuis <chad.dupuis@cavium.com> | 2017-06-21 08:26:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-21 11:33:47 -0400 |
commit | da2e9cf03b8fccbb69dd1e215bb1e554ce8e8cbe (patch) | |
tree | 81048cc17d079c9821df23ef22e1e49379f2d9c4 /include/linux/qed | |
parent | b65c0c9b65a8fe2434bdc0a94e3767940f69aae9 (diff) | |
download | linux-da2e9cf03b8fccbb69dd1e215bb1e554ce8e8cbe.tar.gz linux-da2e9cf03b8fccbb69dd1e215bb1e554ce8e8cbe.tar.bz2 linux-da2e9cf03b8fccbb69dd1e215bb1e554ce8e8cbe.zip |
qede: Fix compilation without QED_RDMA
When CONFIG_QED_RDMA isn't defined, we'd hit the following:
/include/linux/qed/qede_rdma.h:84:19:
warning: ‘qede_rdma_dev_add’ used but never defined [enabled by default]
static inline int qede_rdma_dev_add(struct qede_dev *dev);
Fixes: bbfcd1e8e167 ("qed*: Set rdma generic functions prefix")
Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/qed')
-rw-r--r-- | include/linux/qed/qede_rdma.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/qed/qede_rdma.h b/include/linux/qed/qede_rdma.h index 1348a16e5e4b..9904617a9730 100644 --- a/include/linux/qed/qede_rdma.h +++ b/include/linux/qed/qede_rdma.h @@ -81,7 +81,7 @@ void qede_rdma_dev_remove(struct qede_dev *dev); void qede_rdma_event_changeaddr(struct qede_dev *edr); #else -static inline int qede_rdma_dev_add(struct qede_dev *dev); +static inline int qede_rdma_dev_add(struct qede_dev *dev) { return 0; } |