From patchwork Sun Oct 8 16:10:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 823014 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="03VrxzLC"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3y97p63pqVz9s03 for ; Mon, 9 Oct 2017 03:18:06 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753420AbdJHQSD (ORCPT ); Sun, 8 Oct 2017 12:18:03 -0400 Received: from condef-01.nifty.com ([202.248.20.66]:16714 "EHLO condef-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752031AbdJHQSC (ORCPT ); Sun, 8 Oct 2017 12:18:02 -0400 Received: from conuserg-08.nifty.com ([10.126.8.71])by condef-01.nifty.com with ESMTP id v98GCYjX016883; Mon, 9 Oct 2017 01:12:34 +0900 Received: from grover.sesame (FL1-122-131-185-176.osk.mesh.ad.jp [122.131.185.176]) (authenticated) by conuserg-08.nifty.com with ESMTP id v98GBWgT001379; Mon, 9 Oct 2017 01:11:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v98GBWgT001379 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1507479101; bh=N0ERxXUkrpHkeaiVPmSSC3pAcj8VFzGmdk/Tn3NWkEs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=03VrxzLCE8cLP4AUWZpUwGYNrlvj74lwRR3+7SpviK5464kRVelkIibCktT6lvhhg CqUPY7waTRkRBDLQSlR8H0qQLNpityTyUmNz8sJRI3aZfNlqxSL3vaejAcQmumS+wg xAjKyLY8MgG/ax19BcionmHKeEKtobK3nm6QjQIYbORSp0aTw7XDjMN3YVKAv/09rv 3hFbzMB+phyCQg/q9ZdG0c5QVi4kJF2oZORtcRVSUpcjr4fsRHqeekJuLyvY1nwhLk eRPbK0xgDMuCKRV1Wwz/K4oGrZV2J0xfz39J5Bd7C4Qa/BeElOzbqF3sQc06+pFiLV dKANAxT73U/3A== X-Nifty-SrcIP: [122.131.185.176] From: Masahiro Yamada To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Andrew Morton , Ian Abbott , Ingo Molnar , Linus Torvalds , Masahiro Yamada , linux-rdma@vger.kernel.org, Yishai Hadas , Tariq Toukan , netdev@vger.kernel.org Subject: [PATCH 10/12] net/mlx4: replace with Date: Mon, 9 Oct 2017 01:10:11 +0900 Message-Id: <1507479013-5207-11-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507479013-5207-1-git-send-email-yamada.masahiro@socionext.com> References: <1507479013-5207-1-git-send-email-yamada.masahiro@socionext.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The headers - include/linux/mlx4/device.h - drivers/net/ethernet/mellanox/mlx4/mlx4.h require the definition of struct radix_tree_root, but do not need to know anything about other radix tree stuff. Include instead of to reduce the header dependency. While we are here, let's add missing where radix tree accessors are used. Signed-off-by: Masahiro Yamada --- drivers/net/ethernet/mellanox/mlx4/cq.c | 1 + drivers/net/ethernet/mellanox/mlx4/mlx4.h | 2 +- drivers/net/ethernet/mellanox/mlx4/qp.c | 1 + drivers/net/ethernet/mellanox/mlx4/srq.c | 1 + include/linux/mlx4/device.h | 2 +- include/linux/mlx4/qp.h | 1 + 6 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/cq.c b/drivers/net/ethernet/mellanox/mlx4/cq.c index 72eb50c..4cbe65c 100644 --- a/drivers/net/ethernet/mellanox/mlx4/cq.c +++ b/drivers/net/ethernet/mellanox/mlx4/cq.c @@ -36,6 +36,7 @@ #include #include +#include #include #include diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h index c68da19..975ef70 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h @@ -38,7 +38,7 @@ #define MLX4_H #include -#include +#include #include #include #include diff --git a/drivers/net/ethernet/mellanox/mlx4/qp.c b/drivers/net/ethernet/mellanox/mlx4/qp.c index 728a2fb..50cbc62 100644 --- a/drivers/net/ethernet/mellanox/mlx4/qp.c +++ b/drivers/net/ethernet/mellanox/mlx4/qp.c @@ -35,6 +35,7 @@ #include #include +#include #include #include diff --git a/drivers/net/ethernet/mellanox/mlx4/srq.c b/drivers/net/ethernet/mellanox/mlx4/srq.c index bedf521..4201a46 100644 --- a/drivers/net/ethernet/mellanox/mlx4/srq.c +++ b/drivers/net/ethernet/mellanox/mlx4/srq.c @@ -36,6 +36,7 @@ #include #include #include +#include #include "mlx4.h" #include "icm.h" diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index b0a57e0..75eac23 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include #include diff --git a/include/linux/mlx4/qp.h b/include/linux/mlx4/qp.h index 8e2828d..dfa7d8e 100644 --- a/include/linux/mlx4/qp.h +++ b/include/linux/mlx4/qp.h @@ -35,6 +35,7 @@ #include #include +#include #include From patchwork Sun Oct 8 16:10:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 823016 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="XDtjeQmr"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3y98114ZGkz9sPr for ; Mon, 9 Oct 2017 03:27:32 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753432AbdJHQ11 (ORCPT ); Sun, 8 Oct 2017 12:27:27 -0400 Received: from condef-05.nifty.com ([202.248.20.70]:63751 "EHLO condef-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751975AbdJHQ10 (ORCPT ); Sun, 8 Oct 2017 12:27:26 -0400 Received: from conuserg-08.nifty.com ([10.126.8.71])by condef-05.nifty.com with ESMTP id v98GCZ38014483; Mon, 9 Oct 2017 01:12:35 +0900 Received: from grover.sesame (FL1-122-131-185-176.osk.mesh.ad.jp [122.131.185.176]) (authenticated) by conuserg-08.nifty.com with ESMTP id v98GBWgU001379; Mon, 9 Oct 2017 01:11:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v98GBWgU001379 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1507479102; bh=tGm/0m+c9mqZuVlqhB3H9X/WF2bWBQmWMVKSOywDh7U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XDtjeQmrF1EYO4CwvvfnyKSM+P9RUAh7Tp6KwB9bolZqLxyNqdof3z4jF/VrqObQv cdlmy8WXMKs5fzkRDNcSJHt1lovj6xUMnqAY5k5QRAuT6K+S4Kus6B4JZYhZh6PtqW a6SRSdf6qqCLYSk81d032yqCwKU2/9n96XRifJuw5x7U7BA7ewFpdUPhUUyibULbRt ZnzEjI41vfsfdhHoFpkbMSl31EZNIjWtnXjPKZpVChcRGDkvMPObwoazvAZkc3yWSR Em7ijg7mDxL+K90FSQEqJ0Wj4HVJHsd5Nw2SCXN3vuGNw/uWIG+HRbqEWzYmh36gzy ccuKpCyvvreCA== X-Nifty-SrcIP: [122.131.185.176] From: Masahiro Yamada To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Andrew Morton , Ian Abbott , Ingo Molnar , Linus Torvalds , Masahiro Yamada , Matan Barak , linux-rdma@vger.kernel.org, netdev@vger.kernel.org, Saeed Mahameed , Leon Romanovsky Subject: [PATCH 11/12] net/mlx5: replace with Date: Mon, 9 Oct 2017 01:10:12 +0900 Message-Id: <1507479013-5207-12-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507479013-5207-1-git-send-email-yamada.masahiro@socionext.com> References: <1507479013-5207-1-git-send-email-yamada.masahiro@socionext.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The header include/linux/mlx5/driver.h requires the definition of struct radix_tree_root, but does not need to know anything about other radix tree stuff. Include instead of to reduce the number of included header files. Also, add to include/linux/mlx5/gp.h where radix tree accessors are used. Signed-off-by: Masahiro Yamada --- include/linux/mlx5/driver.h | 2 +- include/linux/mlx5/qp.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 401c897..0aea568 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h @@ -40,7 +40,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/linux/mlx5/qp.h b/include/linux/mlx5/qp.h index 66d19b6..a90996f 100644 --- a/include/linux/mlx5/qp.h +++ b/include/linux/mlx5/qp.h @@ -35,6 +35,7 @@ #include #include +#include #define MLX5_INVALID_LKEY 0x100 #define MLX5_SIG_WQE_SIZE (MLX5_SEND_WQE_BB * 5)