Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751669AbdFIKiB (ORCPT ); Fri, 9 Jun 2017 06:38:01 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:53368 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751591AbdFIKh6 (ORCPT ); Fri, 9 Jun 2017 06:37:58 -0400 From: Arnd Bergmann To: Yuval Mintz , Ariel Elior , everest-linux-l2@cavium.com Cc: Arnd Bergmann , "David S. Miller" , "Chopra, Manish" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] qed: add qed_int_sb_init() stub function Date: Fri, 9 Jun 2017 12:37:35 +0200 Message-Id: <20170609103744.3239316-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:XOUg9kAIn2S2LW9hPNut8k8uWYs4j80fCvZlcl2/7b8A9OtAUHW WjFwjd5Bti+Kq35w0sad5Y5m4flCo9sarUdC4Eoj6RDcAPDPlkcezH0a0VizGk0xAwSz6Bp f8t/ZbTNVrmfV6bobAkIqWXUTrKQOotZa6aqEEjHmMVDwhkGaI7yyaG4A1X4dkuGhR+bDs+ De1GgT4xwvCXS9zhjN5ew== X-UI-Out-Filterresults: notjunk:1;V01:K0:Bl/YDVltrlo=:0GfLEr4gJwIroYqNw8ikPF ezVgRYcdAvtFGT3ckO8b3IwnPcykDaVAtb53yq1egUUNPtnrcllz5/lo+rnJInsOo7Pq+cWGy 9tISSeoGYTlwhGoacTu1Q+CAQrLW7ggvzLMJRgEeJFdpkgKq3AdNNwaNIkr1f2LYSK8mlr7Ds EcXKywwcMQTCqvAUs+O5gQ8BSDPoao9DWO3POgY3KtaW0PdL4oqYuLjy2L01lqASNbon/uqZD xAmieCCMPFoi3+b22DVqQmw1mSLmMT1Af4uK0AfYmFZx6wGU4EP8zmPcIpxVHKwUf09HvBIkN rByF0r2e8pH0c/mIO8aRMxlqCj+IqOKNVG8rTiAiJ/QCGWxDx6SJM2whs7IR2tiM96dpx1H37 ESV3+Aa50emRhu2Bw3QCwKvKabzOOwipMWxolY575sPQAewSgqCAZp25x/hyNGIiuhbl+cBtg gUM6JEGw+JHJ7l8C4dQDpGAArhWW+DD7tk9XAUVTuDfRt/Yg23MV20s+DakxGEt4XNG2hR/dq 0gXMQyCA8fL1Kntg1hYFulJ2sNJZOTlGQ5BMeb9nFIEHKNqnMeZCaojRGJ27DUgYksum8iHtE pv60M5z9wNZ80Dw7mhiC0Ikf1ipu0pHBgzxvGa7HtoMYQbJFHQtNVDVeybMcHl+qTv1QPua6o s96XtGqyuvEejWWVsB0SBfos+dRP5jMb2/WEYqVhIELtruF9kV/t83MoaKf18+2CmJMs= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1214 Lines: 32 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 --- 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