diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2022-07-31 15:54:56 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2022-08-08 23:33:41 +0300 |
commit | 0f3e72b5c8cfa0b57dc4fc7703a0a42dbc200ba9 (patch) | |
tree | b2b62ff0a3db33f79e382542224c1053e6cdcc08 /drivers/vfio/Makefile | |
parent | c8a684e2e110376c58f0bfa30fb3855d1e319670 (diff) | |
download | linux-0f3e72b5c8cfa0b57dc4fc7703a0a42dbc200ba9.tar.xz |
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>
Diffstat (limited to 'drivers/vfio/Makefile')
-rw-r--r-- | drivers/vfio/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/vfio/Makefile b/drivers/vfio/Makefile index fee73f3d9480..1a32357592e3 100644 --- a/drivers/vfio/Makefile +++ b/drivers/vfio/Makefile @@ -1,6 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 vfio_virqfd-y := virqfd.o +vfio-y += vfio_main.o + obj-$(CONFIG_VFIO) += vfio.o obj-$(CONFIG_VFIO_VIRQFD) += vfio_virqfd.o obj-$(CONFIG_VFIO_IOMMU_TYPE1) += vfio_iommu_type1.o |