From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Rostedt Subject: Re: [PATCH] vfio_pci: set TRACE_INCLUDE_PATH to fix the build error Date: Thu, 10 Jan 2019 20:49:15 -0500 Message-ID: <20190110204915.1cab2b78@vmware.local.home> References: <1546916883-25911-1-git-send-email-yamada.masahiro@socionext.com> <20190110144701.ah3hmedqmyqf5uzt@home.goodmis.org> <9b1c9668-98cb-2a30-2fb0-b797b47aa9b6@ozlabs.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Masahiro Yamada , Alex Williamson , kvm@vger.kernel.org, Laura Abbott , Michael Ellerman , Cornelia Huck , linux-kernel@vger.kernel.org To: Alexey Kardashevskiy Return-path: In-Reply-To: <9b1c9668-98cb-2a30-2fb0-b797b47aa9b6@ozlabs.ru> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.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