Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp143128imu; Thu, 10 Jan 2019 20:18:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN77+5YeaiaHhjeQrzRegI+AApmtDX5pL7xQvXNY6lJd+/cu5k6nuH1Z0WBVznod37sLF3xA X-Received: by 2002:a63:e40c:: with SMTP id a12mr12059598pgi.28.1547180310120; Thu, 10 Jan 2019 20:18:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547180310; cv=none; d=google.com; s=arc-20160816; b=qB3wcNqusvX1dNEifObhAm+JXuZQFegW0N3oJoyEyhS5u7hqnILz5ZxoBLxAUyx7OD NWmRYNOO9EaS5yHgP4Zx7STrpE53oU+D/BLRCehnyP0rA1JhOPXjRzTMff7kMW6r42lB DdMuQbv8yz6QvYBHgs6BVhKXhflWfxvZsoQWB/M1328Lf/rMPqoDkirKTwiL8iiTZrtS l4jbkJ6h4/0FxSWQjsCwRzM0NlqkURlykNaUK6caNoavQdqXw+lFbvkRq4w3BO0Uc7l/ ZADlXttODmuV9Ofs6ux0S7lLxk4QnjPqlN4VFWks58RQV8hO+ru1jJYrc9r/Jk+0lrmO NH0w== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=wl59dE13mqnDlP8l5To3XH/bmx2Fsm6VjUGU3MmX4p4=; b=ArbtyErGnFbQrJpGH079kLyiVnOm1rje2/zfglKbl6mqQm8qbvo3MoCxWVVNIMuF+G oyrFeE0PAaZqPL3QgetAygD+HN2zxO1Fv5ylR1JxESNcJl1oz9c4OBmfZ8tV7KOUYkMa r2LLF15/ronE1TwY2r3822bnsQ7k0D8vfYPLsTnl+a5zi6GCurWz2WMKzHYT0HZ9MvZN 9MN3KsiqRg9q+6vN/XOdiJqwNm/a31Rmm5NFrGIJmZTEUvxeq3DP2zAhZnqLrxoWS2mg MFZTDORT3Og8roQ/d3pD8fn9xVEdqPmSL+sQ55F71Pa31FM/9VLSSd+HsWEMRpRlj/GE FYUg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x128si2593302pfb.128.2019.01.10.20.18.01; Thu, 10 Jan 2019 20:18:30 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729502AbfAKBtT (ORCPT + 99 others); Thu, 10 Jan 2019 20:49:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:33372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727750AbfAKBtT (ORCPT ); Thu, 10 Jan 2019 20:49:19 -0500 Received: from vmware.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7FB52206B7; Fri, 11 Jan 2019 01:49:17 +0000 (UTC) Date: Thu, 10 Jan 2019 20:49:15 -0500 From: Steven Rostedt To: Alexey Kardashevskiy Cc: Masahiro Yamada , Alex Williamson , kvm@vger.kernel.org, Laura Abbott , 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: <20190110204915.1cab2b78@vmware.local.home> In-Reply-To: <9b1c9668-98cb-2a30-2fb0-b797b47aa9b6@ozlabs.ru> References: <1546916883-25911-1-git-send-email-yamada.masahiro@socionext.com> <20190110144701.ah3hmedqmyqf5uzt@home.goodmis.org> <9b1c9668-98cb-2a30-2fb0-b797b47aa9b6@ozlabs.ru> X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 11 Jan 2019 12:13:35 +1100 Alexey Kardashevskiy wrote: > > The words in TRACE_INCLUDE_PATH can be updated by C preprocessor defines. For > > example, if for some reason you had: > > > > #define pci special_pci > > > > The above would turn into: > > > > ../../drivers/vfio/special_pci > > > > and it wont build, and you will be left scratching your head wondering why. > > Lovely :) imho it is +1 for > CFLAGS_vfio_pci_nvlink2.o += -I$(src) > and a comment. A more realistic example is: #define pci 1 which I hit when I first tried to do it this way when I first implemented this code (not with "pci" but a similar word). I'll leave this up to the maintainers of the code to decide which way they want to do it, as they are the ones that have to deal with the fallout if something goes wrong ;-) -- Steve