From patchwork Tue Jan 8 03:08:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 10751339 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CCC05746 for ; Tue, 8 Jan 2019 03:09:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3760288BF for ; Tue, 8 Jan 2019 03:09:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5684288CD; Tue, 8 Jan 2019 03:09:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1906F288BF for ; Tue, 8 Jan 2019 03:09:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727390AbfAHDJO (ORCPT ); Mon, 7 Jan 2019 22:09:14 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:17859 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727030AbfAHDJO (ORCPT ); Mon, 7 Jan 2019 22:09:14 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x0838WCh015986; Tue, 8 Jan 2019 12:08:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x0838WCh015986 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1546916913; bh=m5WV52/VwpLTcERxr6/ZtnxvtYDgEHjN4n2QvQD/Zi0=; h=From:To:Cc:Subject:Date:From; b=uhGTmSE8yLGEYT0nMFVMoLymcidbDud4eTVfZKj+gCrVRFNs19hU0eLItim0sJTtg 39i1mwrX7+dBuYugVn5pQqZW1Xy7Cqgk73G1JnpAVNcA6ObNykJF0Dm6joWWktHdLV teioFZqFqAbSfZIB+UHxYx4hXYD9Vt4+1vO5fjqYrOLN+m4cA6mAo3K4eXGn2YGCgE hirR82stTjemdYY1nZHM3cjbdzSizganSvZy+HsIHvcuaECOLxYoL+XXCqgxCTO162 Yjf1REUmXOyChhAXtUkQH5RwXgrxwgsmIdmI+scANTvbGfZ6gqYxb/biLTlaX9+vUD rdKPU5izt0Deg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Alex Williamson , kvm@vger.kernel.org Cc: Laura Abbott , Alexey Kardashevskiy , Michael Ellerman , Cornelia Huck , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] vfio_pci: set TRACE_INCLUDE_PATH to fix the build error Date: Tue, 8 Jan 2019 12:08:03 +0900 Message-Id: <1546916883-25911-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Cornelia Huck --- 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