提交 2f3ca449 编写于 作者: A Arnd Bergmann 提交者: David S. Miller

qed: add qed_int_sb_init() stub function

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: 50a20714 ("qed: Hold a single array for SBs")
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Acked-by: NYuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c156d289
...@@ -1105,6 +1105,11 @@ static inline u16 qed_vf_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id) ...@@ -1105,6 +1105,11 @@ static inline u16 qed_vf_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id)
return 0; return 0;
} }
static inline void qed_vf_set_sb_info(struct qed_hwfn *p_hwfn, u16 sb_id,
struct qed_sb_info *p_sb)
{
}
static inline int qed_vf_pf_vport_start(struct qed_hwfn *p_hwfn, static inline int qed_vf_pf_vport_start(struct qed_hwfn *p_hwfn,
u8 vport_id, u8 vport_id,
u16 mtu, u16 mtu,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册