Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp178410imu; Thu, 24 Jan 2019 23:59:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN4wrQP/ttWeZuO7Owk60kNeH+hL/aY8jj4TfA6ST32mLcr/LmSz7z0sleWFGedJ48hmjGC5 X-Received: by 2002:a17:902:4d46:: with SMTP id o6mr9507289plh.302.1548403156913; Thu, 24 Jan 2019 23:59:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548403156; cv=none; d=google.com; s=arc-20160816; b=ZE6qcsqwvicrxt2KxH6hC5T7jt++0iaN7hGQrvE3FAgaxQMdqvdJACpCAYQ73nMYWA hYo7achK8ckoTdWWEWjhIKrp2fuZFOpKkoNrkdO9PK0kWEFgHh9asqitf2aH+7nuRVRZ jHWzWDbWFgT9JsW7lBIbJKCpWtI3itLE6N+0NV/7MLzRuWKQyNIFnEFSjVqi0n24lQIi 2hwxhzCoAOZWFHYe5R2wguUHWW/ozI4d/7c5vyifDdmLA83vMGLbtahKIYGd6HejIetr avdSK2UkXuiedz3BUxbiH+yzEzhEZJzPnrbLa5WuNRuth+DoBgEiymwL2YI7XxBWc4LT QxsQ== 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=2HM1Z4UoltBcG6m5akSE3Nja5SNuDxs/Gfy4F46J0AU=; b=Ip9gznH7AzZ3+fODcTkwvucVFkQYEZ16dVD79Nl4OhrLRtZkfpm1DyvtkQYbTJ2WBb 9jJcTPH5ieEPRJhl7Wo6yjQ30BaPS2WYTUuu/AcbLqMLvThx678QnaaQrQaoX5tbF3mj tlPdmk4DKdtYHWcIPr/y0tBRRmSo512NtZXlyocuR+sr9lrp1ercKjpOCmb+JU43vmyh dYDZyZK09l/oepmtg8LuIr+eAXzfpSBaSGlfZzEC7EgPdigmIAXrFQy+UZDP3UuZvBvL IZ4R+hLUCJfIXSwBmGd2nDqYSnnnBemq8Mn22qs3XovCrqki20hbAuUZTDbmMe5rGnWr n08w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="h/IXMmFm"; 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 t4si24293192pfj.183.2019.01.24.23.59.02; Thu, 24 Jan 2019 23:59:16 -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="h/IXMmFm"; 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 S1729088AbfAYH6q (ORCPT + 99 others); Fri, 25 Jan 2019 02:58:46 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:17310 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbfAYH6n (ORCPT ); Fri, 25 Jan 2019 02:58:43 -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 x0P7vbeR015362; Fri, 25 Jan 2019 16:57:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x0P7vbeR015362 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1548403060; bh=2HM1Z4UoltBcG6m5akSE3Nja5SNuDxs/Gfy4F46J0AU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h/IXMmFm+9OnIPhRk4tFU3LDe7yJEDBb7rSxT0j3Z8E9028pAw9gqyVrsefaErwNy DU/2Q8FDXYawfr1e2nqiQ+2HKZGBSaLS1g4rvG91QDaLeZhlxq8oPzaeAyyyaQ7Y+z kYape/qx01MsQjvKIMPG0x36KT5AG0dk/AQSEpUx96FA+1UyevV/8AtqLdGvZ40q3p hrmZerrjQ/jCsa4njzzMZJEmYY1GDSlbVxddZ3znDdohhtIHiCsVkSCTqlP82Gs145 CzD8ATpisM8omTnmfX7IwIOrQlFUjK5WpIL1x4be0V6IrMwJ8J8l+lr336k07bivBw 9iHNO4D9jRLQQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Marc Zyngier , Christoffer Dall Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, Masahiro Yamada , linux-kernel@vger.kernel.org, Russell King , Will Deacon , Catalin Marinas Subject: [PATCH 3/3] KVM: arm/arm64: prefix header search paths with $(srctree)/ Date: Fri, 25 Jan 2019 16:57:30 +0900 Message-Id: <1548403050-6585-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548403050-6585-1-git-send-email-yamada.masahiro@socionext.com> References: <1548403050-6585-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 --- arch/arm/kvm/Makefile | 2 +- arch/arm64/kvm/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/kvm/Makefile b/arch/arm/kvm/Makefile index bca775e..531e59f 100644 --- a/arch/arm/kvm/Makefile +++ b/arch/arm/kvm/Makefile @@ -8,7 +8,7 @@ ifeq ($(plus_virt),+virt) plus_virt_def := -DREQUIRES_VIRT=1 endif -ccflags-y += -Iarch/arm/kvm -Ivirt/kvm/arm/vgic +ccflags-y += -I $(srctree)/$(src) -I $(srctree)/virt/kvm/arm/vgic CFLAGS_arm.o := $(plus_virt_def) AFLAGS_init.o := -Wa,-march=armv7-a$(plus_virt) diff --git a/arch/arm64/kvm/Makefile b/arch/arm64/kvm/Makefile index 3089b31..690e033 100644 --- a/arch/arm64/kvm/Makefile +++ b/arch/arm64/kvm/Makefile @@ -3,7 +3,7 @@ # Makefile for Kernel-based Virtual Machine module # -ccflags-y += -Iarch/arm64/kvm -Ivirt/kvm/arm/vgic +ccflags-y += -I $(srctree)/$(src) -I $(srctree)/virt/kvm/arm/vgic KVM=../../../virt/kvm -- 2.7.4