Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3381401imu; Mon, 7 Jan 2019 02:14:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN4bgpSslc4YhzLp6ulkLALgvXO4lvFpJk60mSaq3NbSuegIWqXe3XZZWbSHH6kWUO+Gsd8J X-Received: by 2002:a62:37c3:: with SMTP id e186mr63979481pfa.251.1546856082709; Mon, 07 Jan 2019 02:14:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546856082; cv=none; d=google.com; s=arc-20160816; b=oLxAnqGtSKx4Oe5eQOXTmxZqdzTu1kfENwb5eBj371fkVb2HW0CsnxnRLHHRRthPBG xuaNI3hUmtBCMMUf4qcBq5gG8upv4UohW/C1U2XbHYDUmfz59R9mYK5J/uxDAoxp95JE KJoig9U1qjTEDKXVtnPxBQV+9FqwwQ/u5Ia+y4DkOY8hFH01/yG3reSCHmjD6BMBPjnp CTlg9z14C83h/3GwKzger+clH9pmFfCPJ3U9c+t7yqpXMECmaBjRW7a6CyQC1GU1eAux +9oq/VZ5Ih3gx2BfyraMNdaNbn2BzQrAf51cyNuEJF7Xy6UsNi2xdAQRF/OY3at+t9bI DVhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=u9TU8/l/Cfrv+vLf0dS/Oj1MbzOzDK4gjlbMirfG1CM=; b=hzbSSssE1EcnJcaC4BdXQ+Sr5QQGVsZO3+Zet0PNe65PwWfL1xeQW0XEdkjBzEtyUm OShHL9VJ5LF5il/xkAfidMxYNy/o8UE7tPsmdxlIPqUaS8haLJRsilGDdyb+6JsgCsfe h1hnOQ0CPLZtE5R+0BVUBMHlvTYuG+6s/irkTRSRxbqRzgQaAMahWrZMTF7P0shHZriK Ll6CGn6tyKNxdMHAJCLoxgkzzxZJ7jrs6e8r4KcvGBTClqxieexRuX99rI6nTvWTwEyA SaTFWifb/IczxhSvAGMk7pTUauTWhLkiaXWBzKYEywwZoQlTR5SJzr2K+HmLfFksM9Dt vXGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=WuU8zn25; 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 a13si7654417pgh.561.2019.01.07.02.14.27; Mon, 07 Jan 2019 02:14:42 -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=WuU8zn25; 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 S1726853AbfAGKNM (ORCPT + 99 others); Mon, 7 Jan 2019 05:13:12 -0500 Received: from conssluserg-01.nifty.com ([210.131.2.80]:26054 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726749AbfAGKNM (ORCPT ); Mon, 7 Jan 2019 05:13:12 -0500 Received: from mail-ua1-f51.google.com (mail-ua1-f51.google.com [209.85.222.51]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x07ACl75007961; Mon, 7 Jan 2019 19:12:47 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x07ACl75007961 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1546855968; bh=u9TU8/l/Cfrv+vLf0dS/Oj1MbzOzDK4gjlbMirfG1CM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WuU8zn25qVLSuJTyGnhuqWNEB3JHHOVVx9VEZsQjXXB8Oe9oTHshcVXH+iWTdntf9 tr+sHdsV6Z5gJ410Gy2VkPIycNe93bve4ADCnHOI69At7X74B3Cxt8FME97CZCbGj4 ggFgRODe/PbQUsf7MpaLPENopmcOd6FoFDDONAc9rS5rirkp71VnbQ6figoaM9Yx5f 4Ityh6mVMzW9xy4XOg+38ULp70lYZyQav9JzgIbv0guXYpyhDNweQ7QQG8/8yWI+3E 6xzd98fQTT6s7P4eL438dZ55c6ygTaucBLhnQ+/OGvPULDwvPI1N+qOX7gUpZwix/4 MhkZYOjvkHl9g== X-Nifty-SrcIP: [209.85.222.51] Received: by mail-ua1-f51.google.com with SMTP id j3so13985680uap.3; Mon, 07 Jan 2019 02:12:47 -0800 (PST) X-Gm-Message-State: AJcUukd8j5InxO4J1XdcD91luBUdyXSmWn6obrDVZt2r6MUt88AjdUjN MMZ+sAqrbK9IbIIDMezjDn8BkdYayIBuUBmBOUY= X-Received: by 2002:a9f:3f41:: with SMTP id i1mr21599624uaj.42.1546855966538; Mon, 07 Jan 2019 02:12:46 -0800 (PST) MIME-Version: 1.0 References: <20190104195714.30045-1-labbott@redhat.com> <874lakc09x.fsf@concordia.ellerman.id.au> In-Reply-To: <874lakc09x.fsf@concordia.ellerman.id.au> From: Masahiro Yamada Date: Mon, 7 Jan 2019 19:12:10 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] vfio_pci: Add local source directory as include To: Michael Ellerman Cc: Laura Abbott , Alexey Kardashevskiy , Alex Williamson , kvm@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 7, 2019 at 6:18 PM Michael Ellerman wrote: > > Laura Abbott writes: > > Commit 7f92891778df ("vfio_pci: Add NVIDIA GV100GL [Tesla V100 SXM2] > > subdriver") introduced a trace.h file in the local directory but > > missed adding the local include path, resulting in compilation > > failures with tracepoints: > > > > In file included from drivers/vfio/pci/trace.h:102, > > from drivers/vfio/pci/vfio_pci_nvlink2.c:29: > > ./include/trace/define_trace.h:89:42: fatal error: ./trace.h: No such file or directory > > #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) > > > > Fix this by adjusting the include path. > > > > Fixes: 7f92891778df ("vfio_pci: Add NVIDIA GV100GL [Tesla V100 SXM2] subdriver") > > Signed-off-by: Laura Abbott > > --- > > I'd still like to echo my sentiment that this should not be a def_bool. > > We hit this error on our internal testing and we couldn't even turn > > off the driver until we fixed this. > > I assume there's some reason you can't commit a patch to your tree to > change it to bool, or turn it off entirely? That would change the SHA > which is perhaps reason enough. > > In general we have far too many options and most of them never get > turned off (or on), so it just creates testing/bug surface for not much > benefit. This is one that will probably be turned on in all distro > kernels for example. > > But I have no real objection to making it user configurable. > > > Alex I assume you'll merge this fix via the vfio tree? > > cheers > > > diff --git a/drivers/vfio/pci/Makefile b/drivers/vfio/pci/Makefile > > index 9662c063a6b1..08d4676a8495 100644 > > --- a/drivers/vfio/pci/Makefile > > +++ b/drivers/vfio/pci/Makefile > > @@ -1,3 +1,4 @@ > > +ccflags-y += -I$(src) > > > > vfio-pci-y := vfio_pci.o vfio_pci_intrs.o vfio_pci_rdwr.o vfio_pci_config.o > > vfio-pci-$(CONFIG_VFIO_PCI_IGD) += vfio_pci_igd.o > > -- > > 2.20.1 Hi. If I correctly understand the usage of TRACE_INCLUDE_PATH, the correct fix should be like follows: diff --git a/drivers/vfio/pci/trace.h b/drivers/vfio/pci/trace.h index 228ccdb..4d13e51 100644 --- a/drivers/vfio/pci/trace.h +++ b/drivers/vfio/pci/trace.h @@ -94,7 +94,7 @@ TRACE_EVENT(vfio_pci_npu2_mmap, #endif /* _TRACE_VFIO_PCI_H */ #undef TRACE_INCLUDE_PATH -#define TRACE_INCLUDE_PATH . +#define TRACE_INCLUDE_PATH ../../drivers/vfio/pci #undef TRACE_INCLUDE_FILE #define TRACE_INCLUDE_FILE trace -- Best Regards Masahiro Yamada