From patchwork Fri Jan 25 07:57: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: 156560 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp59393jaa; Thu, 24 Jan 2019 23:58:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN6kpD24dmtmmXBOCVHgCucBDrDw85KRee5ixEEeviHtPxQMzkk2oYaJ29e5Uw9oQReMB8NF X-Received: by 2002:a63:78cd:: with SMTP id t196mr9082457pgc.62.1548403128748; Thu, 24 Jan 2019 23:58:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548403128; cv=none; d=google.com; s=arc-20160816; b=ieTPtZXAhaOjPrp/fjvUirC2gxYnUAjKCnehTYuDQkEvgnlF0u9xnjCm9c4YhiOGVI 8oidAw8s+WuR1DVV5xB6jBJ5U8DZxSPU48TByfFjRr/+BzQzwg0Vca2a2YQbVBx2rAAY Q/dItlnN87YVFOn+G6C/tMemdABwOssCilbutMToZO8Iq26o4CHYcEuLx1xXLHk0Ai6D 5br75MdsVxX7kX1jy96BBoe0m8Gjdrg9CWF+mtgso4t/UU80Z4ShXrcGGD9WQAWuFTH0 v/NOYYhsGwoTF+gqBHSY6rc9JgGCPOgNH7rpMhccEjHyW9kHGrsELnhJHx3jh4KU3mfa IetA== 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 w1si23442912pgi.66.2019.01.24.23.58.48; Thu, 24 Jan 2019 23:58:48 -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 S1729096AbfAYH6r (ORCPT + 31 others); Fri, 25 Jan 2019 02:58:47 -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(-) -- 2.7.4 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