From patchwork Fri Dec 16 08:47:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101415 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1281169qgi; Fri, 16 Dec 2016 00:48:32 -0800 (PST) X-Received: by 10.84.136.1 with SMTP id 1mr4457436plk.152.1481878112451; Fri, 16 Dec 2016 00:48:32 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10si6746593pge.188.2016.12.16.00.48.32; Fri, 16 Dec 2016 00:48:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759428AbcLPIs3 (ORCPT + 5 others); Fri, 16 Dec 2016 03:48:29 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:50020 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752959AbcLPIs0 (ORCPT ); Fri, 16 Dec 2016 03:48:26 -0500 Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0MD2VX-1cPkPl2m1r-009gdw; Fri, 16 Dec 2016 09:48:14 +0100 From: Arnd Bergmann To: Yuval Mintz , Ariel Elior , everest-linux-l2@cavium.com Cc: Arnd Bergmann , Arun Easi , Hannes Reinecke , "David S. Miller" , Johannes Thumshirn , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net] qed: fix old-style function definition Date: Fri, 16 Dec 2016 09:47:41 +0100 Message-Id: <20161216084808.1815139-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:c4xZMmMHEuRyGZTsT/85Y7tglzP9IKP2M5tgO0AL6OigeQij6kC hse4Ooc/XOmigBzm3/aYV9vDDX2D/gnFl6fA3VAjXypeb+x/C5cTeeH+iLsQOuVJ9q+g/q1 Y6X3hDbLgJL/EAo5oiIMywCyBh3s2ysXqosxfcP7AWe85Fo0OpP/ynnatwU64S4O5tkXJak PDmDYGMVWLXMaG7Jl4W3A== X-UI-Out-Filterresults: notjunk:1; V01:K0:rQ9xELs3/8Y=:8f2K2kVzofsuek2DvegVb/ elM5rXjMOP4CmaHq+UG1tPbdW5X1DyITqXUhOIi45GmERhxOVQFxCb7tW3ASqTrG+aX3lnpEe ix0LjIXtxgfa/oo9ny4VAPwihzPOGWzpC2n1+PgrohSWX9h+JlokUj4WNCHuQNeXu7oN+h7Qi 1T/xtMh17lsX04XSU7SUtvuBpj7lsTjBpazr1ld4KybPv4x50de+49yr4SKjxtkw5ncVUY6+V +7OM7E2HvioLmMv9AWVeGmGaGkqOVqecdVmu6QCmKwAfx3MHewGLKBMnN5F9jTOLsO/bB/gF+ a8gJThXCgIBKl2d8+Ag+Ru8pFCKdi9yRKdlUyDXnuhc4x83XlANvoQx+INA69a0XWIP28WppV LzIXQ0SRKTdFkkn9qwTGrR0/sE4sXcnjXVS5vk0RMqqAFwrwZ5GJ83tA/qDqvFEQXIYycUvPZ HZPMhfHSnhJq37AIMMbt6ft78grJeffqXBP+RcRNhUDfKBc/VE5dKiroVqmKWYH61kThACslY yQqFlWCN6MP5LJvrUs/+VJmaiPYv2WH9d1hHHy6D5PcUKP0G7gzYcbwk6zDxxErq/AKfTx2Sc VDiUa1hyoOdZVTSadJbubtacXmCcjX8gUn6KORQ5oEC79z7Jne9O8kXWAvqqpmGFIJcUK2PTT MBGI9S1MUNF/Kkt+S9fwIkGU3oRsm8fdypmI1KpFHfQ/uOpVAW6krraJSI83BtDyznds= Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The newly added file causes a harmless warning, with "make W=1": drivers/net/ethernet/qlogic/qed/qed_iscsi.c: In function 'qed_get_iscsi_ops': drivers/net/ethernet/qlogic/qed/qed_iscsi.c:1268:29: warning: old-style function definition [-Wold-style-definition] This makes it a proper prototype. Fixes: fc831825f99e ("qed: Add support for hardware offloaded iSCSI.") Signed-off-by: Arnd Bergmann --- I only saw this after it was already merged for v4.10 drivers/net/ethernet/qlogic/qed/qed_iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/drivers/net/ethernet/qlogic/qed/qed_iscsi.c b/drivers/net/ethernet/qlogic/qed/qed_iscsi.c index 00efb1c4c57e..17a70122df05 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_iscsi.c +++ b/drivers/net/ethernet/qlogic/qed/qed_iscsi.c @@ -1265,7 +1265,7 @@ static const struct qed_iscsi_ops qed_iscsi_ops_pass = { .get_stats = &qed_iscsi_stats, }; -const struct qed_iscsi_ops *qed_get_iscsi_ops() +const struct qed_iscsi_ops *qed_get_iscsi_ops(void) { return &qed_iscsi_ops_pass; }