]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed: add qed_int_sb_init() stub function
authorArnd Bergmann <arnd@arndb.de>
Fri, 9 Jun 2017 10:37:35 +0000 (12:37 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 19 Sep 2017 05:32:34 +0000 (22:32 -0700)
commit28693a990711eee82644a22803fc4647bc21ade4
treecc49ca02103bdef143ea6c7acd0d4ef26ac3a06a
parent535548459873dbf4a49e1f696a589ab0bb0a4f75
qed: add qed_int_sb_init() stub function

Orabug: 26783820

When CONFIG_QED_SRIOV is disabled, we get a build error:

drivers/net/ethernet/qlogic/qed/qed_int.c: In function 'qed_int_sb_init':
drivers/net/ethernet/qlogic/qed/qed_int.c:1499:4: error: implicit declaration of function 'qed_vf_set_sb_info'; did you mean 'qed_mcp_get_resc_info'? [-Werror=implicit-function-declaration]

All the other declarations have a 'static inline' stub as an alternative
here, so this adds one more for qed_int_sb_init.

Fixes: 50a207147fce ("qed: Hold a single array for SBs")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[ Upstream commit 2f3ca449a4f9a54d2bf39c873269e68ad5f34acb ]
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_vf.h