Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5133462imu; Tue, 8 Jan 2019 12:07:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN64whLbAU2uRjG7IuiNrBRYx9+w6P2mYpuh3KZs+Wm7pBruzqmgnxpDsX/60MFEHZP75xXI X-Received: by 2002:a63:8d44:: with SMTP id z65mr2767691pgd.57.1546978036922; Tue, 08 Jan 2019 12:07:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546978036; cv=none; d=google.com; s=arc-20160816; b=GNngMvZVzFh8clD5ct/G8t9nczSIPPUk/P+y6jayFKUDBP06Uo0DiJQOjc03VjUTnh lAjek03WrEGKZoE8GLYwDPS48QJu975rG5+QL6Z+UrxACdoPYdIqiEBv2Ej2J/o31Nr1 YpBL0C7VTmTMQYY/bBwlM4WkZUEhUDYiQ2unjxwoBbFSj/GKugKaL//vyPVKSZ8z/XPx TAk/XGgZjK2dgbdBV3rla3QabfK4ayABn+13QNuYvSxdgIaB49sssjGkG+41Ml83SaPI Ztasvvg2P55CLzm2L6gb0ehV+E56jBZ8jSdDXSBt4XUDJQlzi47OtAfCjCEq4IUeG7HS /59A== 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=0GgOes6mdJcZ269/sbxEdEK92dO3RSuvaIgmdXSx+sc=; b=ogcNqgg7PgbxJPM+KkohttWsNiWdeocEiKW8lYLPz3D9L7hg2qmYCF3io9p8Ty+75Z NeZe2FLn8P5yLBypR/6iqg1nAUXMmD3AUChalGlRQ2IIFtU3KkAsoDO42VTsUONweevg emSjXuxb28G0I68ZK1YNfQWs+WFhCMJNrzq58lLw3Yj3VC+dJi2nK5K/nMJeo9kzOXj7 m56Xwu3NxWUcfFXTxaE+6bOjTTBImvokbo8rurIwY5vLZXY1hGHv1C14ggsrdZIl+It/ A5CGnvbpj/mgMtX/lbLFptJzNkY+EB24FqWBIwNetE4Xv+La3tRzazwKWZEUYXOW5gfB 3jNw== 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 v2si20947252plz.53.2019.01.08.12.07.01; Tue, 08 Jan 2019 12:07:16 -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 S1732053AbfAHUDr (ORCPT + 99 others); Tue, 8 Jan 2019 15:03:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47506 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730099AbfAHT2g (ORCPT ); Tue, 8 Jan 2019 14:28:36 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5E7BF89AD1; Tue, 8 Jan 2019 19:28:36 +0000 (UTC) Received: from x1.home (ovpn-116-25.phx2.redhat.com [10.3.116.25]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3DB17601A3; Tue, 8 Jan 2019 19:28:35 +0000 (UTC) Date: Tue, 8 Jan 2019 12:28:34 -0700 From: Alex Williamson To: Masahiro Yamada Cc: kvm@vger.kernel.org, Laura Abbott , Alexey Kardashevskiy , Michael Ellerman , Cornelia Huck , linux-kernel@vger.kernel.org Subject: Re: [PATCH] vfio_pci: set TRACE_INCLUDE_PATH to fix the build error Message-ID: <20190108122834.5097a189@x1.home> 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 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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 08 Jan 2019 19:28:36 +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 > --- Thanks for posting this, it's my preferred fix. I'll give it another day to collect reviews/objections then pop it into my for-linus branch for rc2. Thanks! Alex > 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 >