From patchwork Fri Jan 25 07:18:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 156554 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp30788jaa; Thu, 24 Jan 2019 23:18:45 -0800 (PST) X-Google-Smtp-Source: ALg8bN7jVg3QAZI9QiVT5TywRGUJUW0lyKKolVOP3MzD/XiumQEyoTsOuFkjoP+gu+6+1zAyXE4s X-Received: by 2002:a63:c42:: with SMTP id 2mr8973244pgm.372.1548400725709; Thu, 24 Jan 2019 23:18:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548400725; cv=none; d=google.com; s=arc-20160816; b=fBLQK6UxSyUHfs8cjBfGDNTPmcBR5uLXcgpL2vWUTZB5fOt+8e3U8kH8JEsj0/YnIV 7H2Ej2xIHos2SemZt3yrDn1ST05ZXOuH0TX5XBu93o8ug5BtjkFKRLPtXR1ixPa22Lmy Ml03AA4tSWSbG7NxJGxj/tZWToyXanG40HaAZTP24xHQbrtDGmz+7y0qMqTAmrdZisNI PTRcZ1D5EfgfuUh0twtCBChY6jYYVzqCwefSAe3ntCckpVy3P9qpbnvDaE6KrTynRWJr 1ZooklDnx+epHsxwdrtoI/rPG0GQccr1FHpp0j8UUkXXWaCwpqS0c5zDEQlq1nPeNXbI p/Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=XzsxAZHYqTAS12ivpw+HakzvG9opm9+thYMc7c7ckAc=; b=V7ghQFmgbzQfigmxKWxq9TKlCyp43RnYyQ4ggK27e2eOuOKnCNsY/QKe1CyTzIJclX 8iolLqz7dFLRGctRF+p46miZBS7Tz5Y8FSlply0Kw58QEArWQfNOvcaBF5ZGQqqmKLYG fnqxkwFo8CFjt1KRB4FLF3egTIzKnAyEBUuaQqgKvNPk6WHEaG2XdP6/AhFHjPBBeLku SqfjjdR42TmwI4L7AM26MlpTRy2b83hsE3b893PNxn/TVjIX+S6XmE5O59tZSZupKAlz 8Gkvs3E7uQgehQaDoeVeMTS+Lt+wBTlwyOfGGOW7u3k2/guGDJMw8TekBuoN2Nx46T2x TcaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=bJFBt64K; 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 v10si24020870plp.183.2019.01.24.23.18.44; Thu, 24 Jan 2019 23:18:45 -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=bJFBt64K; 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 S1728366AbfAYHSm (ORCPT + 31 others); Fri, 25 Jan 2019 02:18:42 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:38370 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726271AbfAYHSm (ORCPT ); Fri, 25 Jan 2019 02:18:42 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x0P7ITwf009505; Fri, 25 Jan 2019 16:18:29 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x0P7ITwf009505 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1548400709; bh=XzsxAZHYqTAS12ivpw+HakzvG9opm9+thYMc7c7ckAc=; h=From:To:Cc:Subject:Date:From; b=bJFBt64Kae1qEdO7lwMdL5hSS0oEK5DJtp5SFkPn3SlLmsXbGUM2DoBIBoSNc6AxC xGGc71jnwkkH+q6XygzL52t0/StBBCJPmqjB2vyvRPmfqIJUt0pU5RZ84L/5Et+H+3 GBy4m/eS1/2XtfxypDIzritPd1XUGqjVuJTs16K3hgq/mCwFZSfw4ZQGubGPFAjoUv 1tha64TOxHum31Fy4c5RyEOAnZ1RJEsw1KvRzsvVIeTRMWZzAhCOz8gBqA/F1VerrL ULKp1cJfACl7JIMW7yj66mhtpHCOPX9wXeoeuabnqX5X1gQD9HJGvjxlKxZ4UZWsd+ V57uaTugUk9kQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] ia64: prefix header search path with $(srctree)/ Date: Fri, 25 Jan 2019 16:18:23 +0900 Message-Id: <1548400703-27945-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 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"). I removed some header search paths because I was able to build ia64 without them. [1]: https://patchwork.kernel.org/patch/9632347/ Signed-off-by: Masahiro Yamada --- arch/ia64/sn/kernel/Makefile | 2 +- arch/ia64/sn/kernel/sn2/Makefile | 2 -- arch/ia64/sn/pci/Makefile | 2 -- arch/ia64/sn/pci/pcibr/Makefile | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/arch/ia64/sn/kernel/Makefile b/arch/ia64/sn/kernel/Makefile index d27df1d..9c349dd 100644 --- a/arch/ia64/sn/kernel/Makefile +++ b/arch/ia64/sn/kernel/Makefile @@ -7,7 +7,7 @@ # Copyright (C) 1999,2001-2006,2008 Silicon Graphics, Inc. All Rights Reserved. # -ccflags-y := -Iarch/ia64/sn/include +ccflags-y := -I $(srctree)/arch/ia64/sn/include obj-y += setup.o bte.o bte_error.o irq.o mca.o idle.o \ huberror.o io_acpi_init.o io_common.o \ diff --git a/arch/ia64/sn/kernel/sn2/Makefile b/arch/ia64/sn/kernel/sn2/Makefile index 3d09108..170bde4 100644 --- a/arch/ia64/sn/kernel/sn2/Makefile +++ b/arch/ia64/sn/kernel/sn2/Makefile @@ -9,7 +9,5 @@ # sn2 specific kernel files # -ccflags-y := -Iarch/ia64/sn/include - obj-y += cache.o io.o ptc_deadlock.o sn2_smp.o sn_proc_fs.o \ prominfo_proc.o timer.o timer_interrupt.o sn_hwperf.o diff --git a/arch/ia64/sn/pci/Makefile b/arch/ia64/sn/pci/Makefile index df2a901..321576b 100644 --- a/arch/ia64/sn/pci/Makefile +++ b/arch/ia64/sn/pci/Makefile @@ -7,6 +7,4 @@ # # Makefile for the sn pci general routines. -ccflags-y := -Iarch/ia64/sn/include - obj-y := pci_dma.o tioca_provider.o tioce_provider.o pcibr/ diff --git a/arch/ia64/sn/pci/pcibr/Makefile b/arch/ia64/sn/pci/pcibr/Makefile index 396bcae..712f6af 100644 --- a/arch/ia64/sn/pci/pcibr/Makefile +++ b/arch/ia64/sn/pci/pcibr/Makefile @@ -7,7 +7,7 @@ # # Makefile for the sn2 io routines. -ccflags-y := -Iarch/ia64/sn/include +ccflags-y := -I $(srctree)/arch/ia64/sn/include obj-y += pcibr_dma.o pcibr_reg.o \ pcibr_ate.o pcibr_provider.o