Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4535904imu; Tue, 8 Jan 2019 01:49:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN5togj7vHVoWY0vkvVRY5Zq5ma/oyLsfNikJ8xsDkh5yMMYK7mdhmrn/Ad6Ev6E+qoJ4S3B X-Received: by 2002:a17:902:7296:: with SMTP id d22mr1064559pll.265.1546940940677; Tue, 08 Jan 2019 01:49:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546940940; cv=none; d=google.com; s=arc-20160816; b=CD5a1jdL1CyXZq84j0tOw/N24oB02aLfFfqXDRs1zYp8gOULb2AxL4K+JN9KdbBZnF A7BMms3iRpldEVuZGhZZeSJme4e5LcfJ6+7lusBkLbLJznsjQbGx9H3Xc9Iu5S7zlC32 BByAElNBkntshBYdat41d2DHLi9Zixtj5jQr8aif2bmP+7d6Gd0dw/D7HWcjvjQzcbLq QOaf8S8zGxcOIBK284wSCKFSAxrbqy8g/rxCH2d3JQtyBrr7SDgIq8EoK4Z5nYF/fJpj yBMI4eJTzweDgFzm8+3GE9UlzzOX6IwRsk7dCVoyliC/KeqHe8DkLe56qVyncHmXCsz+ 2kqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=KJiOSjhTMeTeBzxkAkbvavMbM4lTxLYO96b+tsA2/Vw=; b=ET/nF8qDAEB80Tt7d8ABtQlUVSiQzhKfmfPnIbf1yEdxNkLmapESX/tN3wYnaMucif Xv3BqHr4SDKXv6EfZo+1qsAdBCtZ9XUljfzcKxJuHang7wNnUutdsYa+uZawZ4ZqluYK 9SxYYd6TxZzM7XEK/lPFJIhY6JLxru703Ej92nQ5mVt+3RYmv0FFR/F5wApqP/oWkaLQ 9BMQOunkq0OFcj+54gbauN1LEIBUISWNq6ckmsH8yO2SGlVP+Qcu1YBydbpmMYu2Eq5P lCUgvoyOkxUM83JKWaWgopQc3DLqc9lxY6bW4ph4+zn3yGEgGYtxHDOO3zDBlR4aOT1e WwTw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 76si10031741pfw.66.2019.01.08.01.48.45; Tue, 08 Jan 2019 01:49:00 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728167AbfAHJrj (ORCPT + 99 others); Tue, 8 Jan 2019 04:47:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60289 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727001AbfAHJrh (ORCPT ); Tue, 8 Jan 2019 04:47:37 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F1F4BF87A6; Tue, 8 Jan 2019 09:47:36 +0000 (UTC) Received: from gondolin (dhcp-192-222.str.redhat.com [10.33.192.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id 310807ED7F; Tue, 8 Jan 2019 09:47:35 +0000 (UTC) Date: Tue, 8 Jan 2019 10:47:32 +0100 From: Cornelia Huck To: Masahiro Yamada Cc: Alex Williamson , kvm@vger.kernel.org, Laura Abbott , Alexey Kardashevskiy , Michael Ellerman , linux-kernel@vger.kernel.org Subject: Re: [PATCH] vfio_pci: set TRACE_INCLUDE_PATH to fix the build error Message-ID: <20190108104732.42c1e2a9.cohuck@redhat.com> In-Reply-To: <1546916883-25911-1-git-send-email-yamada.masahiro@socionext.com> References: <1546916883-25911-1-git-send-email-yamada.masahiro@socionext.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 08 Jan 2019 09:47:37 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Jan 2019 12:08:03 +0900 Masahiro Yamada wrote: > drivers/vfio/pci/vfio_pci_nvlink2.c cannot be compiled for in-tree > building. > > CC drivers/vfio/pci/vfio_pci_nvlink2.o > 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) > ^ > compilation terminated. > make[1]: *** [scripts/Makefile.build;277: drivers/vfio/pci/vfio_pci_nvlink2.o] Error 1 > > To fix the build error, let's tell include/trace/define_trace.h the > location of drivers/vfio/pci/trace.h > > Fixes: 7f92891778df ("vfio_pci: Add NVIDIA GV100GL [Tesla V100 SXM2] subdriver") > Reported-by: Laura Abbott > Signed-off-by: Masahiro Yamada > --- > > drivers/vfio/pci/trace.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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 > I think both this and the other fix option via the Makefile are fine (even though I still slightly prefer the latter), so I'll leave the choice to the maintainer. Reviewed-by: Cornelia Huck