From patchwork Fri Jan 25 07:09:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 156552 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp23821jaa; Thu, 24 Jan 2019 23:09:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN7I6jL9QBloVSVd+AsRzk7Tu5Aj+5sqiQELjdarvcaxoki990765EfiQfr/zwQuZWZ+2ECw X-Received: by 2002:a62:33c1:: with SMTP id z184mr9742295pfz.104.1548400183061; Thu, 24 Jan 2019 23:09:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548400183; cv=none; d=google.com; s=arc-20160816; b=KLncSMrHQJXRTQ/6yqX74HrhKNNBv1nN50S9ysWKToEQ8+H4rkN7F0aspHzGEr7znL 6M0dOIHYYCY42VAzqVQh3XNrlKkLjlGdAHAR3KvQq1erVrEzcRhrtj20A3VMC7o+kaAs ik45klRMQLuOvuT1zfhDv8DnqxZW1F7JQWoKQwyjNe7mear8AuMAFy3UQ/auHlcRX8jZ LKOLhH8IGTU7fg7Fu0fplRM2BsbIzOjLIutUus69hnZ7HVKTi6z0BX2blsJ2P8HSp2sc FHvikTkY6VTo0+iCd6zChTpVjne6HvmDwpiFUUtOzEOdpVtmCovuXy0RQJt210JTNDT0 e60g== 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=WRJv1jJ47KBMznet3o5QY0xF48L7ExBwayWhvperHXQ=; b=uMNBwvmLovIixnbJRXtRK1nADpKCLV8FjN/f8rno6DzVe9zjFMez1L5JuywVlpOplJ iWY3ehPTwZ2Xs/8ii1GiOfJ1wlSb0Q4DxF5YbeoPqZ5Z5mv04WmAUrdlhPY07DW/bKgj 2LCRBfq1JYB5FXl/QKzpyUf/Ho76+7uyukdoFIyGMwJ/uVrozD2qD3BwNm3vvnODdHUS JoVpeIjawZVL7fMPfYSeodyK05BbHsAQuHuzZXjlYp25txmir5G9qIe05wTipPOFITwj t5FCxAY8yvAcd36nZ157yPxYJqsxDkR0Rqc9u8AQCvRshMzCt0e9AIuFMAWcmP9PLljs f/UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=pCOpj7QU; 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 q13si23358826pgj.86.2019.01.24.23.09.42; Thu, 24 Jan 2019 23:09:43 -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=pCOpj7QU; 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 S1728315AbfAYHJl (ORCPT + 31 others); Fri, 25 Jan 2019 02:09:41 -0500 Received: from conuserg-12.nifty.com ([210.131.2.79]:49398 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbfAYHJk (ORCPT ); Fri, 25 Jan 2019 02:09:40 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id x0P79685005418; Fri, 25 Jan 2019 16:09:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com x0P79685005418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1548400149; bh=WRJv1jJ47KBMznet3o5QY0xF48L7ExBwayWhvperHXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pCOpj7QU2RPJ6WtncXSvWLMZ7HSyPD4llCORnpgfS9JvOkOv0A5hgd02rgcODAeTu BjNGZpVgEwAM5Qbu1OB1mUCM5+W+z7999KORNAd/YOcUgRC+mlG9CfgvuaFZulPXcW XQa9NAHlR0ai2KWNxvVYTqztvOFCz6UuqudequCu3SY71QJD1KvGoDCeBfkLec4/MU MwRcf7f5a+tHKeG0mCJFGsMW1bSGsT655VqRAGcRp6Jcsvcy8qp7zMMyC0BmUjn+DI jLQzxjvOXXHpZt7ROOqVS3iPG/M2c1mAorKeS7gMWhAjYd2c5RPmJbaDvf40GDf6yh 26NBrMpI1UDMg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org Cc: Masahiro Yamada , Don Brace , esc.storagedev@microsemi.com, Hannes Reinecke , linux-kernel@vger.kernel.org, Adaptec OEM Raid Solutions Subject: [PATCH 1/2] scsi: remove unneeded header search paths Date: Fri, 25 Jan 2019 16:09:03 +0900 Message-Id: <1548400144-22513-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548400144-22513-1-git-send-email-yamada.masahiro@socionext.com> References: <1548400144-22513-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 I was able to build without these extra header search paths. Especially, the header search path -I. in kernel Makefiles is always suspicious; it allows the compiler to search for headers in the top of $(srctree), where obviously no header file exists. Signed-off-by: Masahiro Yamada --- drivers/scsi/aacraid/Makefile | 2 -- drivers/scsi/aic7xxx/Makefile | 1 - drivers/scsi/smartpqi/Makefile | 1 - 3 files changed, 4 deletions(-) -- 2.7.4 diff --git a/drivers/scsi/aacraid/Makefile b/drivers/scsi/aacraid/Makefile index 1bd9fd1..3893b95 100644 --- a/drivers/scsi/aacraid/Makefile +++ b/drivers/scsi/aacraid/Makefile @@ -4,5 +4,3 @@ obj-$(CONFIG_SCSI_AACRAID) := aacraid.o aacraid-objs := linit.o aachba.o commctrl.o comminit.o commsup.o \ dpcsup.o rx.o sa.o rkt.o nark.o src.o - -ccflags-y := -Idrivers/scsi diff --git a/drivers/scsi/aic7xxx/Makefile b/drivers/scsi/aic7xxx/Makefile index c15be25..e0188ec 100644 --- a/drivers/scsi/aic7xxx/Makefile +++ b/drivers/scsi/aic7xxx/Makefile @@ -34,7 +34,6 @@ aic79xx-y += aic79xx_osm.o \ aic79xx_proc.o \ aic79xx_osm_pci.o -ccflags-y += -Idrivers/scsi ifdef WARNINGS_BECOME_ERRORS ccflags-y += -Werror endif diff --git a/drivers/scsi/smartpqi/Makefile b/drivers/scsi/smartpqi/Makefile index e6b7799..a03a6ed 100644 --- a/drivers/scsi/smartpqi/Makefile +++ b/drivers/scsi/smartpqi/Makefile @@ -1,3 +1,2 @@ -ccflags-y += -I. obj-$(CONFIG_SCSI_SMARTPQI) += smartpqi.o smartpqi-objs := smartpqi_init.o smartpqi_sis.o smartpqi_sas_transport.o From patchwork Fri Jan 25 07:09:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 156551 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp23611jaa; Thu, 24 Jan 2019 23:09:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN5wsr50H2NHX6Edn8mRbG5Npixe9N8SGN53FILum3+kSkW8jU3hX+qwQxg53vxeFq9PTtw9 X-Received: by 2002:a63:cd11:: with SMTP id i17mr8973727pgg.345.1548400167095; Thu, 24 Jan 2019 23:09:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548400167; cv=none; d=google.com; s=arc-20160816; b=t7Wz/gb62X0q6+7YrBXgCKXu9UCkQ4JsJqYnjMzma0JE0rCvtPJ6QZ2Br8CUJZeUoz j+v5mc2pyk2RMaeCePxvYAe2AVxPm8JOaX3A4fThm3CaWtNQkHq2Bi5VTnSFxjBdtUHE Lyip3ZhTFVq06OH2jUfcWhQRZoLGVH3m3nlcL/9biebRES4Hs0t35HUQ6lUtphR1i7HE CqDHyvdhwwkLXOJIbmpT9KNBX8xSJ9HYIDNiQkR0Ar2UISkBWg5+EZceHBVtG0ARVr9d OUxxt39JHK/Ol8C7KYUflr9rhXRhVaa/n6oL97+D9bmTR7Fi2sSQgGSuVkh5dKClEQmd viUg== 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=Vpn6bjURzAVS1rpEMtJUUe+enwqt45OopaWYKJnvavg=; b=Eo3T3boB45i8zJLH0HJQCpr/3pzrpRBprfo5pjO7GcTVyS6lvyYcLlq5ha/Yq2tJ8E O+yuumkpxrlXhGtxNkM3p437dD4nO9ngF9UdrQ7UfaoFEZe2fGlKiU4E5CpuNdicMDNm nYlYRLWKCrxAYJFaMDvwIKf58Y3V6qeOfZTGmDffjrmrvRsYfu5ysG3MK+ak2NFackWf Ystx28+ZF7NYBv7fDGauVieBGXUhYCvQl1DP/t/hgjO3yB+hgxfJW7rH6Hv3C5CmurVN cDG+0ZlOf/kVqtIjlM4DsaG/5XJuFt30vQHbyYF0ESwkfx1o/0ewB596HXQwMjwpVHtc dZyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=MQHU+TxI; 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 q16si23858409pgh.185.2019.01.24.23.09.26; Thu, 24 Jan 2019 23:09:27 -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=MQHU+TxI; 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 S1728236AbfAYHJY (ORCPT + 31 others); Fri, 25 Jan 2019 02:09:24 -0500 Received: from conuserg-12.nifty.com ([210.131.2.79]:48923 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbfAYHJY (ORCPT ); Fri, 25 Jan 2019 02:09:24 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id x0P79686005418; Fri, 25 Jan 2019 16:09:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com x0P79686005418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1548400150; bh=Vpn6bjURzAVS1rpEMtJUUe+enwqt45OopaWYKJnvavg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MQHU+TxIv4+a+PFQXAx/U8YFlpzc983Q1mO8xetF1ENicMLFvTRGj5A84sKjfb7o4 DslC9k8hGY1RjVcTM3qxvM5za9eyTJ/w6XIDIYbBEcyYtCvb11EN0RYLFpKhp3T5QB fNYD3lNEoiQflLz+fCXlU4LoMTUEPsxVqdFOBz1w4igO+g4MDRya73nHwKbAdM1m3P rXDXt+6KhZgxvBG156IRFVQAP/6A6qhv44g3nX7Eb/eYeVCANLM5zdocx9U8P3GXQ3 g9zkyc9Rk9sHBoJ9XPRJwuBxXczncPiy+bahuHR+kIRbMtWWRcEXcb0nNWxrR2+bzf gLjqYahSutU9w== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] scsi: prefix header search paths with $(srctree)/ Date: Fri, 25 Jan 2019 16:09:04 +0900 Message-Id: <1548400144-22513-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548400144-22513-1-git-send-email-yamada.masahiro@socionext.com> References: <1548400144-22513-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/scsi/cxgbi/Makefile | 2 +- drivers/scsi/pcmcia/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/scsi/cxgbi/Makefile b/drivers/scsi/cxgbi/Makefile index a73781a..f78c9cc 100644 --- a/drivers/scsi/cxgbi/Makefile +++ b/drivers/scsi/cxgbi/Makefile @@ -1,4 +1,4 @@ -ccflags-y += -Idrivers/net/ethernet/chelsio/libcxgb +ccflags-y += -I $(srctree)/drivers/net/ethernet/chelsio/libcxgb obj-$(CONFIG_SCSI_CXGB3_ISCSI) += libcxgbi.o cxgb3i/ obj-$(CONFIG_SCSI_CXGB4_ISCSI) += libcxgbi.o cxgb4i/ diff --git a/drivers/scsi/pcmcia/Makefile b/drivers/scsi/pcmcia/Makefile index faa87a4..a5a24dd 100644 --- a/drivers/scsi/pcmcia/Makefile +++ b/drivers/scsi/pcmcia/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -ccflags-y := -Idrivers/scsi +ccflags-y := -I $(srctree)/drivers/scsi # 16-bit client drivers obj-$(CONFIG_PCMCIA_QLOGIC) += qlogic_cs.o