From patchwork Fri Jan 25 07:57:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 156561 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp59425jaa; Thu, 24 Jan 2019 23:58:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN799NxcgXAQEaNkmdo0LeE6qHmP3YxaPakk7FXDojwzv0Lwz4ZLeAaUYyn78QnZfzlvL7te X-Received: by 2002:a17:902:4025:: with SMTP id b34mr10046268pld.181.1548403132249; Thu, 24 Jan 2019 23:58:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548403132; cv=none; d=google.com; s=arc-20160816; b=C+0Cm1A6B1TjJbQCV/42Hp2c0F9BfWYDj2VuFAFRvpF4W2GMgzt49OvSgM+wHV21zE yvmdLXOzRTcFWPu/d+qxOqYb9NJNxwj6P1au3VfWMD0ebmgXtTu0zhefbW89HHLy2Df6 kdqIReU7DJ5CDjSs02M7Z8anvT3EpLmZelj6j26IToOsYDIoiVgOGYF+O+KzneqP87EQ 7jNHUvKCQs/E3WipojdH+nOtoE4MwGVUMEv1e6tvFpbKKHlfiLu38I1aSdDfYT5O7vaZ hYreefw/LGuh6DcCqPBqBTj8wBJ+Xh7XBas/UAZ+CnKG7rlOJe6BbwUEwHkaQrqEA8xj uxyA== 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=sQk/Dl7wT+orikM5quGi46hn80YeahxI8cR8k21DNNg=; b=R/lTlr58fj8jdN9wi1A+AVDDwrWOaJ0Sll0dS1d55M+N+TzTa8uhcwtF6/a4M78xC4 MFnubdUszWQSiRpYppZosyXjAB1GDgmqaHDDFLvBjY7YdkGEdiM9AGTyjd8Y6jlrljHJ 3VBse3Bysj/QkbRBrOzPAl0EgA8rgebkr8SJLKDsr8LmBzdfHZHUfxsc+L8NFneuPHjm fPHAMwHpFLka6I12ZEiY1Vg2g/A0zc2aWHu5IgCLTFIfokp1xrzpM8eRD+Q0bXYEsPJT ZXRXcWOVRRYzSsmwOG6E5DxxdJjhHcJ2NDTi1s5xwwlZw2yB+P8ICxVxenvumQRvuev0 TdUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ldiW9XVU; 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 m28si25716272pgn.273.2019.01.24.23.58.51; Thu, 24 Jan 2019 23:58:52 -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=ldiW9XVU; 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 S1729073AbfAYH6p (ORCPT + 31 others); Fri, 25 Jan 2019 02:58:45 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:17313 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728988AbfAYH6n (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 x0P7vbeQ015362; Fri, 25 Jan 2019 16:57:38 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x0P7vbeQ015362 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1548403059; bh=sQk/Dl7wT+orikM5quGi46hn80YeahxI8cR8k21DNNg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ldiW9XVUC/PtcuxprwPTitYPJcLNuct06cwidyKmc3cWNRozxN49E0CzZyTHjHuEM LxEk+58t1/ttcZ0ek4p8twvltL6Eu/rxjoQH2zC9c3Ev7laYbbQMmSi8OFh9so3qaU 9YOqe1QdnuN1oqqW4NMbIMLcBpbk2kOOt84Zhbjo5iXNzPCBL6ccaP+7ybA35fK3ot j9IGhVlAc+LCzgv1Cfu5SIJzwcr1okRmA4QjCxCJlJ/0KRcf4hseJaalozg/3REkve Uw2VzNR2D6nwa1AGaCMaEFdG3sxiRRpKimjwdl8KDceMvCJEl1Mkxiw6q2qH8AU6/z WtnlUbPBpAt8Q== 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 2/3] KVM: arm/arm64: remove -I. header search paths Date: Fri, 25 Jan 2019 16:57:29 +0900 Message-Id: <1548403050-6585-3-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 The header search path -I. in kernel Makefiles is very suspicious; it allows the compiler to search for headers in the top of $(srctree), where obviously no header file exists. I was able to build without these extra header search paths. Signed-off-by: Masahiro Yamada --- arch/arm/kvm/Makefile | 3 +-- arch/arm64/kvm/Makefile | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) -- 2.7.4 diff --git a/arch/arm/kvm/Makefile b/arch/arm/kvm/Makefile index 48de846..bca775e 100644 --- a/arch/arm/kvm/Makefile +++ b/arch/arm/kvm/Makefile @@ -9,8 +9,7 @@ ifeq ($(plus_virt),+virt) endif ccflags-y += -Iarch/arm/kvm -Ivirt/kvm/arm/vgic -CFLAGS_arm.o := -I. $(plus_virt_def) -CFLAGS_mmu.o := -I. +CFLAGS_arm.o := $(plus_virt_def) AFLAGS_init.o := -Wa,-march=armv7-a$(plus_virt) AFLAGS_interrupts.o := -Wa,-march=armv7-a$(plus_virt) diff --git a/arch/arm64/kvm/Makefile b/arch/arm64/kvm/Makefile index 0f2a135..3089b31 100644 --- a/arch/arm64/kvm/Makefile +++ b/arch/arm64/kvm/Makefile @@ -4,8 +4,6 @@ # ccflags-y += -Iarch/arm64/kvm -Ivirt/kvm/arm/vgic -CFLAGS_arm.o := -I. -CFLAGS_mmu.o := -I. KVM=../../../virt/kvm