Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1696723
| From | Alexey Kardashevskiy <aik@ozlabs.ru> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH |
| Date | 2017-07-26 04:10 +0200 |
| Message-ID | <u7jVT-2zU-5@gated-at.bofh.it> (permalink) |
| References | <u4EtR-5hK-35@gated-at.bofh.it> <u78xs-3uy-37@gated-at.bofh.it> <u7afU-4DI-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 26/07/17 01:44, Alex Williamson wrote: > [cc +Alexey, David] > > Any comments from the usual suspects for vfio/spapr? Thanks, [trying once again as mailists rejected the previous response due to broken outgoing mail encoding config in my thunderbird] Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Having EEH + VFIO_PCI and not having VFIO_SPAPR_EEH does not make practical sense and won't be seen in the wild so EEH + VFIO should enforce VFIO_SPAPR_EEH but this is for another patch. > > Alex > > On Tue, 25 Jul 2017 10:56:38 -0300 > Murilo Opsfelder Araújo <mopsfelder@gmail.com> wrote: > >> On 07/18/2017 02:22 PM, Murilo Opsfelder Araujo wrote: >>> 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. We need to >>> make use of IS_ENABLED() macro because CONFIG_VFIO_SPAPR_EEH is a tristate >>> option. >>> >>> 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@gmail.com> >>> --- >>> >>> Changes from v1: >>> - Rebased on top of next-20170718. >> >> Hi, Alex. >> >> Are you applying this? >> >> Thanks! >> > -- Alexey
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH Murilo Opsfelder Araujo <mopsfelder@gmail.com> - 2017-07-18 19:30 +0200
Re: [PATCH v2] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH Murilo Opsfelder Araújo <mopsfelder@gmail.com> - 2017-07-25 16:00 +0200
Re: [PATCH v2] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH Alex Williamson <alex.williamson@redhat.com> - 2017-07-25 17:50 +0200
Re: [PATCH v2] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH Alexey Kardashevskiy <aik@ozlabs.ru> - 2017-07-26 04:10 +0200
Re: [PATCH v2] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH David Gibson <david@gibson.dropbear.id.au> - 2017-07-26 05:50 +0200
Re: [PATCH v2] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH Alex Williamson <alex.williamson@redhat.com> - 2017-07-26 21:40 +0200
Re: [PATCH v2] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH Murilo Opsfelder Araújo <mopsfelder@gmail.com> - 2017-07-27 21:40 +0200
csiph-web