From patchwork Fri Jan 25 04:39:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 156521 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp78313jaa; Thu, 24 Jan 2019 20:40:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN5XIOhH80WWl5NpvJZff0OC3nirBzWdft0z48AfuoEgV3OdN7v2GRKXPsrV6kcm8zznfxfm X-Received: by 2002:a63:160d:: with SMTP id w13mr8779088pgl.43.1548391249444; Thu, 24 Jan 2019 20:40:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548391249; cv=none; d=google.com; s=arc-20160816; b=M7wCCazMitPmke+K0jAy7UxmLHQwwThDndkKqhnoBMOPC4H71GwsagXqXwREcX/ZMJ 6Pz8hOS+aQ7dDuFxiuTaStPXN389TnsqQFXEjCepiEZ+PPVSYIuZBzmwMfVckULZ06Rp /ubSiKjCCa27xuu9jd8uqkX5eIdS5TXJLGsucY6x01tzcN9Tp7AMpOYAfN9RocpNG04Q aOjI0L6m2Pe7lZbaaGRvgdl2kjPtufWDB7lgE35jH8H/Mb11cKtlBi3tppAdFUBmwCl7 I6og71jTPWA22CKI4qCsEodXWWT4yIcdUJlva/32984xvq2QPNLcHfpojeDbrlSx2Rpw 1S9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=l2QkZoUINJcHwTUjAs2NF9C9FJvAyTfR0K8RqgdK+gg=; b=KO5skB4iyUzxA/F+97YR7g+HYiWed/7kyUkAsmOtz5bHV0XhRELth7MytUVLvFpLQ9 8AQQvP4acKFW5fvqU8gBVI2ec2WpIEht3LL7skfNVQt6hqj5MPDZMIVS1G70l003xtvx d7r58KgzC7c20ARqxYPm/An2hQui3zr5M3P4qtuNITSmZhtWX2NckvUd384u0OThhymd vyGSBbl/4S6y6TksWc5PIED2ilL8PfUSuqo4dGguuGo/yG09aXh8zXlaAx37B8w0TjvH 9tYLx7SsXOHa4VYPHRySwkkZoTWmNywWdkvZlbfgoh0RsmggqGB7AVKDgx6KIRNJI+2W DCQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=xwPjnjNL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si2035113pgv.512.2019.01.24.20.40.48; Thu, 24 Jan 2019 20:40:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=xwPjnjNL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727809AbfAYEko (ORCPT + 31 others); Thu, 24 Jan 2019 23:40:44 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:52671 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726259AbfAYEko (ORCPT ); Thu, 24 Jan 2019 23:40:44 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x0P4dtwX005225; Fri, 25 Jan 2019 13:39:57 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x0P4dtwX005225 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1548391197; bh=l2QkZoUINJcHwTUjAs2NF9C9FJvAyTfR0K8RqgdK+gg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xwPjnjNLbpVsuV0jOh0DTqCMNwYvKff4Zl2s+YW6aWZG2i4rofOMCCithEYnXFw6w 2r051qgqR9xXxheVKZt1KIZoXrZEQk15ct1NJD6UoniyDya9d6jgKZVrbgmedGujiJ cAo4IaNBBzx6dq3cvSGMJwF3dJSoHPp1K80bSFV1WRZZHZHX9uCPbr5CcYuuhV5mF4 l3B/jbGs35TRq8dpRnLck4uUgQFLMDN6HYTWsQ/hCEPlleH6A8jLy7gUusaKAuUmGR Vnsa4aWw6BNbOt1mmOQDOWN7TOSPQDv5UbLNtL7/HfBOBDvXTWqH6Mm3pcXRPJS45J 2/b/bZGB9LFlQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Jason Gunthorpe , linux-rdma@vger.kernel.org, Doug Ledford Cc: Masahiro Yamada , Jason Gunthorpe , Sagi Grimberg , linux-kernel@vger.kernel.org, target-devel@vger.kernel.org, Bart Van Assche Subject: [PATCH 1/2] infiniband: remove unneeded header search paths Date: Fri, 25 Jan 2019 13:39:30 +0900 Message-Id: <1548391171-6407-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548391171-6407-1-git-send-email-yamada.masahiro@socionext.com> References: <1548391171-6407-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The included headers are located in include/target/. I was able to build these drivers without the extra header search paths. Signed-off-by: Masahiro Yamada --- drivers/infiniband/ulp/isert/Makefile | 1 - drivers/infiniband/ulp/srpt/Makefile | 1 - 2 files changed, 2 deletions(-) -- 2.7.4 Reviewed-by: Bart Van Assche diff --git a/drivers/infiniband/ulp/isert/Makefile b/drivers/infiniband/ulp/isert/Makefile index c8bf242..a4a4766 100644 --- a/drivers/infiniband/ulp/isert/Makefile +++ b/drivers/infiniband/ulp/isert/Makefile @@ -1,2 +1 @@ -ccflags-y := -Idrivers/target -Idrivers/target/iscsi obj-$(CONFIG_INFINIBAND_ISERT) += ib_isert.o diff --git a/drivers/infiniband/ulp/srpt/Makefile b/drivers/infiniband/ulp/srpt/Makefile index e3ee4bd..43fbde4 100644 --- a/drivers/infiniband/ulp/srpt/Makefile +++ b/drivers/infiniband/ulp/srpt/Makefile @@ -1,2 +1 @@ -ccflags-y := -Idrivers/target obj-$(CONFIG_INFINIBAND_SRPT) += ib_srpt.o From patchwork Fri Jan 25 04:39:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 156523 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp78595jaa; Thu, 24 Jan 2019 20:41:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN5k/8adaNy7gwl01QXt+GXllkBLujrCxePPZtmlMzTLj6yPt5v4aN6/JlEB+L1ZgaTwLkVL X-Received: by 2002:a17:902:8687:: with SMTP id g7mr9353352plo.96.1548391277108; Thu, 24 Jan 2019 20:41:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548391277; cv=none; d=google.com; s=arc-20160816; b=hN3cP+9XG4h5rzNO5Mg+KnjbbxKNl7WwFYcth199AbFRtho9+xWNEtS13E2thhSNlg osdPPJWCjLqoSHenluSFYjSGQUlQsSdAyN0fSgeMgnI4Kv6sEfujaI8FaE43GB6iTU7K A8/hT5e3sgqbFB91QsXglPyuvKjFtCtHyM+tmMlOYKH2/k+MGhyDWsJXuieS9Wni+UkH vW6qZSByV6vZpujuZMPv/cZZYckO/c+LIWcxxfqJHoggkpldpWN5yUVdDP7i171+XUm2 Y00CG8p5O9fFLMuDcsOgAF1y+ob4HZYqLLh71WNQpjfqe6owuS+XFv0Tb6Zvk64daVDn yhzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=sYPXqy9zti+00fd+MuJO2yCy2ff9Xfu+cf+PJFW+VJc=; b=EBMOxt1fYOYZUCt+uaRk1r+cnBMXJ+krkDkBMWZM4KCti0MyoMrXDzBByFvCLV9Ymt v4h1FZtBmtA10u+ZCQ9CZ98efwqu+SVPeePg6AXbYeFVN/vXTo8Co/bt5/dQzWSybec2 4BpF6bZQw/JX/9Xm25HjkP11mXu7rZJ0fambjnGWBdbl99ekWAk/qnssIRHFN1QST0C3 //1J+daeBryPwt18zVwucYh/LNFVpgp/WmnbVDTipJGPei8SW4So6oV49UIDwXWrrrsB 35wCHrgmXgV60DU1Tox3trf2si5ADYUaKu4oIx7WRGwrymgwmuZgiCjo+qFOdNRN/DpA BP0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Df6cDEx4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s66si16213403pgs.115.2019.01.24.20.41.16; Thu, 24 Jan 2019 20:41:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Df6cDEx4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728454AbfAYElN (ORCPT + 31 others); Thu, 24 Jan 2019 23:41:13 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:53530 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726259AbfAYElM (ORCPT ); Thu, 24 Jan 2019 23:41:12 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x0P4dtwY005225; Fri, 25 Jan 2019 13:39:58 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x0P4dtwY005225 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1548391199; bh=sYPXqy9zti+00fd+MuJO2yCy2ff9Xfu+cf+PJFW+VJc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Df6cDEx4L2fWprRCY5Pl3W5YMiFirN+Ge1+/1AgtoqpmALIVs7HROKA3f8Fd73rT/ sxGSvPCBU6MlHDM1yok9XDSZi3WbVOdZrvk0J56HQ4e97MwJsfQfInCjHoXcf94xKF +orzFDd/OSpgN9KfKM4jVY95dABg7dGnk9DvImwdEQDmLyA54jrfadxltiFxpvAOUV FQooZj79ZokGjiliefIN7dWwn19+8A943fAcXd2GCjUbCNqAhwfi3+6tHH90asziIH 3zMKvYdkHCnKfXxLXw0TlSH6agSDpD+Zj0Du0iEPEeBRbg01tDf6XCfwkvccqLCGOK HULoLSo+7nb5g== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Jason Gunthorpe , linux-rdma@vger.kernel.org, Doug Ledford Cc: Masahiro Yamada , Jason Gunthorpe , Somnath Kotur , Christian Benvenuti , Nelson Escobar , Sriharsha Basavapatna , Parvi Kaustubhi , Lijun Ou , linux-kernel@vger.kernel.org, Steve Wise , Faisal Latif , Shiraz Saleem , Selvin Xavier , "Wei Hu(Xavier)" , Devesh Sharma Subject: [PATCH 2/2] infiniband: prefix header search paths with $(srctree)/ Date: Fri, 25 Jan 2019 13:39:31 +0900 Message-Id: <1548391171-6407-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548391171-6407-1-git-send-email-yamada.masahiro@socionext.com> References: <1548391171-6407-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, the Kbuild core manipulates header search paths in a crazy way [1]. To fix this mess, I want all Makefiles to add explicit $(srctree)/ to the search paths in the srctree. Some Makefiles are already written in that way, but not all. The goal of this work is to make the notation consistent, and finally get rid of the gross hacks. Having whitespaces after -I does not matter since commit 48f6e3cf5bc6 ("kbuild: do not drop -I without parameter"). [1]: https://patchwork.kernel.org/patch/9632347/ Signed-off-by: Masahiro Yamada --- drivers/infiniband/hw/bnxt_re/Makefile | 2 +- drivers/infiniband/hw/cxgb3/Makefile | 2 +- drivers/infiniband/hw/cxgb4/Makefile | 4 ++-- drivers/infiniband/hw/hns/Makefile | 2 +- drivers/infiniband/hw/i40iw/Makefile | 2 +- drivers/infiniband/hw/ocrdma/Makefile | 2 +- drivers/infiniband/hw/usnic/Makefile | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) -- 2.7.4 Acked-by: Parvi Kaustubhi diff --git a/drivers/infiniband/hw/bnxt_re/Makefile b/drivers/infiniband/hw/bnxt_re/Makefile index 6e3bc25..ee9bb1b 100644 --- a/drivers/infiniband/hw/bnxt_re/Makefile +++ b/drivers/infiniband/hw/bnxt_re/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -ccflags-y := -Idrivers/net/ethernet/broadcom/bnxt +ccflags-y := -I $(srctree)/drivers/net/ethernet/broadcom/bnxt obj-$(CONFIG_INFINIBAND_BNXT_RE) += bnxt_re.o bnxt_re-y := main.o ib_verbs.o \ qplib_res.o qplib_rcfw.o \ diff --git a/drivers/infiniband/hw/cxgb3/Makefile b/drivers/infiniband/hw/cxgb3/Makefile index 66fe091..34bb86a 100644 --- a/drivers/infiniband/hw/cxgb3/Makefile +++ b/drivers/infiniband/hw/cxgb3/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -ccflags-y := -Idrivers/net/ethernet/chelsio/cxgb3 +ccflags-y := -I $(srctree)/drivers/net/ethernet/chelsio/cxgb3 obj-$(CONFIG_INFINIBAND_CXGB3) += iw_cxgb3.o diff --git a/drivers/infiniband/hw/cxgb4/Makefile b/drivers/infiniband/hw/cxgb4/Makefile index 9edd920..31a87d9 100644 --- a/drivers/infiniband/hw/cxgb4/Makefile +++ b/drivers/infiniband/hw/cxgb4/Makefile @@ -1,5 +1,5 @@ -ccflags-y := -Idrivers/net/ethernet/chelsio/cxgb4 -ccflags-y += -Idrivers/net/ethernet/chelsio/libcxgb +ccflags-y := -I $(srctree)/drivers/net/ethernet/chelsio/cxgb4 +ccflags-y += -I $(srctree)/drivers/net/ethernet/chelsio/libcxgb obj-$(CONFIG_INFINIBAND_CXGB4) += iw_cxgb4.o diff --git a/drivers/infiniband/hw/hns/Makefile b/drivers/infiniband/hw/hns/Makefile index 004c88b..e2a7f14 100644 --- a/drivers/infiniband/hw/hns/Makefile +++ b/drivers/infiniband/hw/hns/Makefile @@ -2,7 +2,7 @@ # Makefile for the Hisilicon RoCE drivers. # -ccflags-y := -Idrivers/net/ethernet/hisilicon/hns3 +ccflags-y := -I $(srctree)/drivers/net/ethernet/hisilicon/hns3 obj-$(CONFIG_INFINIBAND_HNS) += hns-roce.o hns-roce-objs := hns_roce_main.o hns_roce_cmd.o hns_roce_pd.o \ diff --git a/drivers/infiniband/hw/i40iw/Makefile b/drivers/infiniband/hw/i40iw/Makefile index 5a8a7a3..8942f82 100644 --- a/drivers/infiniband/hw/i40iw/Makefile +++ b/drivers/infiniband/hw/i40iw/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -ccflags-y := -Idrivers/net/ethernet/intel/i40e +ccflags-y := -I $(srctree)/drivers/net/ethernet/intel/i40e obj-$(CONFIG_INFINIBAND_I40IW) += i40iw.o diff --git a/drivers/infiniband/hw/ocrdma/Makefile b/drivers/infiniband/hw/ocrdma/Makefile index d1bfd4f..e3f20ca 100644 --- a/drivers/infiniband/hw/ocrdma/Makefile +++ b/drivers/infiniband/hw/ocrdma/Makefile @@ -1,4 +1,4 @@ -ccflags-y := -Idrivers/net/ethernet/emulex/benet +ccflags-y := -I $(srctree)/drivers/net/ethernet/emulex/benet obj-$(CONFIG_INFINIBAND_OCRDMA) += ocrdma.o diff --git a/drivers/infiniband/hw/usnic/Makefile b/drivers/infiniband/hw/usnic/Makefile index 94ae7a1..f12a493 100644 --- a/drivers/infiniband/hw/usnic/Makefile +++ b/drivers/infiniband/hw/usnic/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -ccflags-y := -Idrivers/net/ethernet/cisco/enic +ccflags-y := -I $(srctree)/drivers/net/ethernet/cisco/enic obj-$(CONFIG_INFINIBAND_USNIC)+= usnic_verbs.o