[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87a85kf4y4.fsf@concordia.ellerman.id.au>
Date: Wed, 07 Jun 2017 20:49:23 +1000
From: Michael Ellerman <mpe@...erman.id.au>
To: Murilo Opsfelder Araujo <mopsfelder@...il.com>,
linux-kernel@...r.kernel.org
Cc: kvm@...r.kernel.org, Alex Williamson <alex.williamson@...hat.com>,
linuxppc-dev@...ts.ozlabs.org,
Murilo Opsfelder Araujo <mopsfelder@...il.com>
Subject: Re: [PATCH] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH
Murilo Opsfelder Araujo <mopsfelder@...il.com> writes:
> When CONFIG_EEH=y and CONFIG_VFIO_SPAPR_EEH=n, build fails with the
> following:
>
> drivers/vfio/pci/vfio_pci.o: In function `.vfio_pci_release':
> vfio_pci.c:(.text+0xa98): undefined reference to `.vfio_spapr_pci_eeh_release'
> drivers/vfio/pci/vfio_pci.o: In function `.vfio_pci_open':
> vfio_pci.c:(.text+0x1420): undefined reference to `.vfio_spapr_pci_eeh_open'
>
> In this case, vfio_pci.c should use the empty definitions of
> vfio_spapr_pci_eeh_open and vfio_spapr_pci_eeh_release functions.
>
> This patch fixes it by guarding these function definitions with
> CONFIG_VFIO_SPAPR_EEH, the symbol that controls whether vfio_spapr_eeh.c is
> built, which is where the non-empty versions of these functions are.
>
> This issue was found during a randconfig build. Logs are here:
>
> http://kisskb.ellerman.id.au/kisskb/buildresult/12982362/
>
> Signed-off-by: Murilo Opsfelder Araujo <mopsfelder@...il.com>
> ---
> include/linux/vfio.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Acked-by: Michael Ellerman <mpe@...erman.id.au>
Alex I assume you will take this, thanks.
cheers
Powered by blists - more mailing lists