Skip to content

Commit 0f3e72b

Browse files
jgunthorpeAlex Williamson
authored andcommitted
vfio: Move vfio.c to vfio_main.c
If a source file has the same name as a module then kbuild only supports a single source file in the module. Rename vfio.c to vfio_main.c so that we can have more that one .c file in vfio.ko. Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://lore.kernel.org/r/20220731125503.142683-5-yishaih@nvidia.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
1 parent c8a684e commit 0f3e72b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/vfio/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# SPDX-License-Identifier: GPL-2.0
22
vfio_virqfd-y := virqfd.o
33

4+
vfio-y += vfio_main.o
5+
46
obj-$(CONFIG_VFIO) += vfio.o
57
obj-$(CONFIG_VFIO_VIRQFD) += vfio_virqfd.o
68
obj-$(CONFIG_VFIO_IOMMU_TYPE1) += vfio_iommu_type1.o

0 commit comments

Comments
 (0)