Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752107AbcJJL74 (ORCPT ); Mon, 10 Oct 2016 07:59:56 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:52957 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751721AbcJJL7z (ORCPT ); Mon, 10 Oct 2016 07:59:55 -0400 From: Arnd Bergmann To: Yuval Mintz , Ariel Elior , everest-linux-l2@qlogic.com Cc: Arnd Bergmann , Ram Amrani , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] qed: fix old-style function definition Date: Mon, 10 Oct 2016 13:59:16 +0200 Message-Id: <20161010115937.730249-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:Z5ZDJtAnq2MjSEPPwOpEUuz6kb5y9WFJ6LJoQF4Oj8+bryvnCpL M6CDeGc7xKV7hHhN+9GZOnF+OEt5AHNsmDXQyS7zy4BoGlzukFiGt4/oPZxceuDcoEUg1gk 5V6RCgE+jO7Eted/eV2p7ldxnqB33i+/nXwglavVS5t2PTtalaaI2GgL8F9SdJ3vDhXuZOS 7X0cwcqIhKxnM7qR1ALkQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:S8wYrY29lis=:7n4ahGkBKhOMZkxj0MmLa2 Zxn4ZvXoT50qiTtdwJWWIWvyP1m3MTnQPA30gGXSRWmN4mA/DK55kLWqCho3mtjOMF2kNKxWk F6urPwa+s9Ah/KoQxxMMdsPghBhEoPCVsH7cluNTDm0BrTtUkfxP5cgZSXJ6Issxs6BngXMCN cVcjFr8Q/nNlHqq5jF7VM/2aEu9eaxI4tYVTXoIGkPBlQmjmU13XSUY54xieiQA2jkDPHD0zh LQ6rwtW8ElfNOZWUb0xxJk0OZuhe0ro8BF3USg2yuFna7s+4sM1zBV0ezeI5TvyzvTKv4hmK/ 9ZY3POYnc/DxOJ/fRNGb3z4UEEEwHVej/UHyCEsnMq9GWDdnupkmiymW/Fdauyc/dC/S2kUYW G42leCGkujJfZ8Gxd4X6CB7hp0QtrwpfYJ7GA/vwkPRCuAKdnol0zcO3CExJL1wgs2lrrfONs Duej7U+xUo5Ajazts9HSovsMYHrsQbjY52n2U4HYOHI/rkfxBUoeXkCzDi/FsW6Jg8wxijUgP 2bHOWMCQ4AEaWVED5/9NhtuoNxf2SV9ccYIFU7nDqfHh7dUxchfWae3yJVVWugaa9H82LLN8L Jkt0XEtcbfDcQTDfUkYZSqQK//0Bl7mrzQHZSlGQhVUBgAtCs2t6ZMX+ejS1GKKq8/cWR69vt KA6+j0YzknH2qJaWCdr3drq2cFunsR273/XS+gpQN4GnP26R+5NvI6G/1+lF5GIlmhVJ1dZmv nnYqCBTCqzSgByOt Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1029 Lines: 27 The definition of qed_get_rdma_ops() is not a prototype unless we add 'void' here, as indicated by this W=1 warning: drivers/net/ethernet/qlogic/qed/qed_roce.c: In function ‘qed_get_rdma_ops’: drivers/net/ethernet/qlogic/qed/qed_roce.c:2950:28: error: old-style function definition [-Werror=old-style-definition] Fixes: abd49676c707 ("qed: Add RoCE ll2 & GSI support") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/qlogic/qed/qed_roce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_roce.c b/drivers/net/ethernet/qlogic/qed/qed_roce.c index 23430059471c..76831a398bed 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_roce.c +++ b/drivers/net/ethernet/qlogic/qed/qed_roce.c @@ -2947,7 +2947,7 @@ static const struct qed_rdma_ops qed_rdma_ops_pass = { .roce_ll2_stats = &qed_roce_ll2_stats, }; -const struct qed_rdma_ops *qed_get_rdma_ops() +const struct qed_rdma_ops *qed_get_rdma_ops(void) { return &qed_rdma_ops_pass; } -- 2.9.0