mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
32a2d71c4e
To prepare for vfio platform reset rework let's build vfio_platform_common.c and vfio_platform_irq.c in a separate module from vfio-platform and vfio-amba. This makes possible to have separate module inits and works around a race between platform driver init and vfio reset module init: that way we make sure symbols exported by base are available when vfio-platform driver gets probed. The open/release being implemented in the base module, the ref count is applied to the parent module instead. Signed-off-by: Eric Auger <eric.auger@linaro.org> Suggested-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
13 lines
390 B
Makefile
13 lines
390 B
Makefile
vfio-platform-base-y := vfio_platform_common.o vfio_platform_irq.o
|
|
vfio-platform-y := vfio_platform.o
|
|
|
|
obj-$(CONFIG_VFIO_PLATFORM) += vfio-platform.o
|
|
obj-$(CONFIG_VFIO_PLATFORM) += vfio-platform-base.o
|
|
obj-$(CONFIG_VFIO_PLATFORM) += reset/
|
|
|
|
vfio-amba-y := vfio_amba.o
|
|
|
|
obj-$(CONFIG_VFIO_AMBA) += vfio-amba.o
|
|
obj-$(CONFIG_VFIO_AMBA) += vfio-platform-base.o
|
|
obj-$(CONFIG_VFIO_AMBA) += reset/
|