From patchwork Fri Apr 21 18:15:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 9693475 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 137A8601D4 for ; Fri, 21 Apr 2017 18:42:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0970D2864A for ; Fri, 21 Apr 2017 18:42:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F27D92865C; Fri, 21 Apr 2017 18:42:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 674F728654 for ; Fri, 21 Apr 2017 18:42:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1041948AbdDUSmx (ORCPT ); Fri, 21 Apr 2017 14:42:53 -0400 Received: from mail-oi0-f46.google.com ([209.85.218.46]:34779 "EHLO mail-oi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1042025AbdDUSms (ORCPT ); Fri, 21 Apr 2017 14:42:48 -0400 Received: by mail-oi0-f46.google.com with SMTP id x184so107969451oia.1 for ; Fri, 21 Apr 2017 11:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8Rzd9Ib1eaBszaeQ9Iqlt+SsNTVhhD/t/sEL27Ja7VU=; b=bgTiSnoOYhkdEBxa64Tc9TGAzWPdW8aRveprBA91SVTUK/3usmkofzOAG5scTaSEQf XpR7oEKWRoxs6PC/bTCArRx95/H8S5WtKJihCSpjjnB3fsDMUmi00m9Eq+mn1pyqZ2rE 9wHCOTWtlE7GrvdOY3ryQF0gWkjlUqsILfRlzr42FQnIPsyefahc5LcZoUYwmx0V/drM bXLMBibn4nmHh3laZoe4fbWXQogLXly7pp6k5vd6czT1Rb7PXEOxdufdpKwow/72KqKa LDu+9xRJOuBYgCkXgKFBQvwfSfpYvdZjsS/s4lkjeJp5aIR9H26k0F5D7pcVP7Th/1/H hUjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8Rzd9Ib1eaBszaeQ9Iqlt+SsNTVhhD/t/sEL27Ja7VU=; b=b2sPpW5sX3yZhDP6IJURnqYx8OZQnMwCLUVVIM8XgKITj4Z5bDlBqPRiBqloEMieyq 9SR596cukAcHfSlyqvl6qG4zWVAKcmxQ72OTw1u0QPhwijBZBQfTOfXPAZggX58pc/C+ 8TaG+Yqfa6j7fKoQP/aXn4nUOeu+izDNmzkeexYH6ak0BX6e6zUAEHeJlk56SRrkvOuI I4Jv72/MxdXCY1hNmAH7GyqCUi3lqsGvN4FB3Gur1Qez4bImDcxRubo/q/vm1PhBc7pX 9cvhpjHi24lOS6kadxGSskGq8hd29OCc1D1jesNtKaI4RurrC3st4R2EK1pJxKoTmq0+ Gzsg== X-Gm-Message-State: AN3rC/5qNskJnbE/IzSXoejUK3a0VNwF/hIBb87ajk6/Q/ijzvCqnEn/ 5yn2cdqUqqCiWETr9/M= X-Received: by 10.84.191.228 with SMTP id a91mr17608356pld.62.1492798563415; Fri, 21 Apr 2017 11:16:03 -0700 (PDT) Received: from xeon-e3.wavecable.com (76-14-206-252.or.wavecable.com. [76.14.206.252]) by smtp.gmail.com with ESMTPSA id i15sm17317165pfj.51.2017.04.21.11.16.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Apr 2017 11:16:02 -0700 (PDT) From: Stephen Hemminger X-Google-Original-From: Stephen Hemminger To: davem@davemloft.net, saeedm@mellanox.com, matanb@mellanox.com, leonro@mellanox.com Cc: linux-rdma@vger.kernel.org, netdev@vger.kernel.org, Stephen Hemminger Subject: [PATCH net-next 2/3] mlx5: fix warning about missing prototype Date: Fri, 21 Apr 2017 11:15:57 -0700 Message-Id: <20170421181558.5414-3-sthemmin@microsoft.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170421181558.5414-1-sthemmin@microsoft.com> References: <20170421181558.5414-1-sthemmin@microsoft.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix sparse warning about missing prototypes. The rx/tx code path defines functions with prototypes in ipoib.h. Signed-off-by: Stephen Hemminger --- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 1 + drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c index 43308243f519..ae66fad98244 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c @@ -39,6 +39,7 @@ #include "en.h" #include "en_tc.h" #include "eswitch.h" +#include "ipoib.h" static inline bool mlx5e_rx_hw_stamp(struct mlx5e_tstamp *tstamp) { diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c index dda7db503043..ab3bb026ff9e 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c @@ -33,6 +33,7 @@ #include #include #include "en.h" +#include "ipoib.h" #define MLX5E_SQ_NOPS_ROOM MLX5_SEND_WQE_MAX_WQEBBS #define MLX5E_SQ_STOP_ROOM (MLX5_SEND_WQE_MAX_WQEBBS +\