From patchwork Fri Jan 25 07:32:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 156557 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp42053jaa; Thu, 24 Jan 2019 23:34:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN4GrvtAYEurR8PSAqAhww45zyyhlnS9Lf881labHZe7X7/utp2cE9nN6Up6gBz7irxwjDQh X-Received: by 2002:a17:902:bd46:: with SMTP id b6mr9822105plx.231.1548401649938; Thu, 24 Jan 2019 23:34:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548401649; cv=none; d=google.com; s=arc-20160816; b=ARpiHjOMQ4bwCTlLxEKSWO2ciRHkDBV9cKWFOD2zESGVPsPp7q38eymqMQQEoxUI4n BkSF0CE9upcWAk8NgqtZ7e4do0Z7mbJ/IffPJJSP06d+H3vcwqdKOATV0nMQMERX4hGB ugIo9EV3ub1skhA6VhjlzXL7+4tLaDpuHZ/odFeGqPuHQu6BABAnOVVmt8RWArZCc6pf Ggy8iY7HgiSimpVJ0ueROaT0ZQtf2RzEWA0hY15zQLST8z+bl80ts7zKuKRcLCG9pKVo x1c4gGIO+a9Cn2QrDddlaGfbhu9jqaAXI0O5lQgDXjSr21TPvJHlwQl36joj9jUppVg0 8HWw== 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=tbbuiCD7IbfQSxtcRUBQrQMr2BXXvMyScGRF6PcyoDI=; b=M1sUdYZt1OJ7FX+cotd4O1PeP3GcscXeGtnzifCkjCpWrwtATtRIS05W6cRtIHR2yQ tqiIAbZbQ/ML5dxEcP+TtX/apxt5M+AXd7hjp9vw8kPVxNFpBa/WZSeRjip1SNrjzvOc KhNLHx/gFxYGekn2Q4guiu3+kQXj6S70Z87Ak7jjQx53N26LpvygXqwv4H1P+KfzGJSj Z1kmPcT5GXsdTZGG54bEMXB6rJfqYi5R8+6ybJAo8+W95TlPvtDsE2Ma+mAIkzvPXDRf x6916aLF4XLAyPzvmTYx3oMCiPpQ2pcBkD+HmueHoc5dwwBJSlugeDOUJtp25lPdyOKZ 428g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Fs7U81Zl; 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 d7si2034441pfo.108.2019.01.24.23.34.09; Thu, 24 Jan 2019 23:34:09 -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=Fs7U81Zl; 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 S1728283AbfAYHeF (ORCPT + 31 others); Fri, 25 Jan 2019 02:34:05 -0500 Received: from conuserg-10.nifty.com ([210.131.2.77]:33570 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726271AbfAYHeF (ORCPT ); Fri, 25 Jan 2019 02:34:05 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id x0P7WwQf018950; Fri, 25 Jan 2019 16:32:58 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x0P7WwQf018950 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1548401579; bh=tbbuiCD7IbfQSxtcRUBQrQMr2BXXvMyScGRF6PcyoDI=; h=From:To:Cc:Subject:Date:From; b=Fs7U81ZlT9/ijMJkA921Qgf2+hkeTHQPFvNKWazjFiV2i64ReRYAgaY1URp4xx3+U oRXca2uYQbWPpnKUMdsy2Huck4jER7fP0BGMUG6amKoM3Y4Kk3ueOSi+Bs769SO07i IG1jsTx4+yZEKRnInnT0U6S9cxmShjGpkHHDYxsAwQ0vJTk2pV0cLxDp8FAlN/3TDd ycbz9ckYkq1+VvivmVM6coI+gs8f+RA4ir1Kf7XB/Y0Ibtn7hZq9x8Bc5o5uRr0jpO ewfK8yc96SpwcS4B9mYXmOch1kBsJ1TUEqpahZYUfVxFC1w/6tAJXTXdKBJaG6U8UT yFlEJp40zbxjA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Paolo Bonzini , Radim Kr???m?????? , kvm@vger.kernel.org Cc: Masahiro Yamada , "H. Peter Anvin" , Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar Subject: [PATCH] KVM: x86: fix TRACE_INCLUDE_PATH and remove -I. header search paths Date: Fri, 25 Jan 2019 16:32:46 +0900 Message-Id: <1548401566-29835-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 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. The reason of having -I. here is to make the incorrectly set TRACE_INCLUDE_PATH working. As the comment block in include/trace/define_trace.h says, TRACE_INCLUDE_PATH should be a relative path to the define_trace.h Fix the TRACE_INCLUDE_PATH, and remove the iffy include paths. Signed-off-by: Masahiro Yamada --- arch/x86/kvm/Makefile | 4 ---- arch/x86/kvm/trace.h | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) -- 2.7.4 diff --git a/arch/x86/kvm/Makefile b/arch/x86/kvm/Makefile index 69b3a7c..31ecf7a 100644 --- a/arch/x86/kvm/Makefile +++ b/arch/x86/kvm/Makefile @@ -2,10 +2,6 @@ ccflags-y += -Iarch/x86/kvm -CFLAGS_x86.o := -I. -CFLAGS_svm.o := -I. -CFLAGS_vmx.o := -I. - KVM := ../../../virt/kvm kvm-y += $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o \ diff --git a/arch/x86/kvm/trace.h b/arch/x86/kvm/trace.h index 705f40a..6432d08 100644 --- a/arch/x86/kvm/trace.h +++ b/arch/x86/kvm/trace.h @@ -1465,7 +1465,7 @@ TRACE_EVENT(kvm_hv_send_ipi_ex, #endif /* _TRACE_KVM_H */ #undef TRACE_INCLUDE_PATH -#define TRACE_INCLUDE_PATH arch/x86/kvm +#define TRACE_INCLUDE_PATH ../../arch/x86/kvm #undef TRACE_INCLUDE_FILE #define TRACE_INCLUDE_FILE trace