Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1662266 > unrolled thread

[PATCH net-next] qed: add qed_int_sb_init() stub function

Started byArnd Bergmann <arnd@arndb.de>
First post2017-06-09 12:40 +0200
Last post2017-06-09 22:00 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH net-next] qed: add qed_int_sb_init() stub function Arnd Bergmann <arnd@arndb.de> - 2017-06-09 12:40 +0200
    RE: [PATCH net-next] qed: add qed_int_sb_init() stub function "Mintz, Yuval" <Yuval.Mintz@cavium.com> - 2017-06-09 15:50 +0200
    Re: [PATCH net-next] qed: add qed_int_sb_init() stub function David Miller <davem@davemloft.net> - 2017-06-09 22:00 +0200

#1662266 — [PATCH net-next] qed: add qed_int_sb_init() stub function

FromArnd Bergmann <arnd@arndb.de>
Date2017-06-09 12:40 +0200
Subject[PATCH net-next] qed: add qed_int_sb_init() stub function
Message-ID<tQpuG-nf-7@gated-at.bofh.it>
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>
---
 drivers/net/ethernet/qlogic/qed/qed_vf.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/ethernet/qlogic/qed/qed_vf.h b/drivers/net/ethernet/qlogic/qed/qed_vf.h
index b65bbc54a097..34d9b882a780 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_vf.h
+++ b/drivers/net/ethernet/qlogic/qed/qed_vf.h
@@ -1105,6 +1105,11 @@ static inline u16 qed_vf_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id)
 	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,
 					u8 vport_id,
 					u16 mtu,
-- 
2.9.0

[toc] | [next] | [standalone]


#1662442

From"Mintz, Yuval" <Yuval.Mintz@cavium.com>
Date2017-06-09 15:50 +0200
Message-ID<tQssy-28A-27@gated-at.bofh.it>
In reply to#1662266
> 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>

Missed it. Thanks.
Acked-by: Yuval Mintz <Yuval.Mintz@cavium.com>

[toc] | [prev] | [next] | [standalone]


#1662714

FromDavid Miller <davem@davemloft.net>
Date2017-06-09 22:00 +0200
Message-ID<tQyeB-5Jz-5@gated-at.bofh.it>
In reply to#1662266
From: Arnd Bergmann <arnd@arndb.de>
Date: Fri,  9 Jun 2017 12:37:35 +0200

> 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>

Applied, thank you.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web