iommu/bcm2712: don't allow building as module
authorRatchanan Srirattanamet <peathot@hotmail.com>
Tue, 30 Jan 2024 07:09:00 +0000 (14:09 +0700)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:34 +0000 (11:35 +0000)
Since bcm2712-iommu{,-cache}.c doesn't have usual module descriptors
such as `MODULE_LICENSE`, configuring this as 'M' fails the build with
`ERROR: modpost: missing MODULE_LICENSE() in <...>/bcm2712-iommu.o`.
Since it seems like the code is not intended to be built as a module
anyway (it registers the driver with `builtin_platform_driver()`), don't
allow building this code as a module.

Signed-off-by: Ratchanan Srirattanamet <peathot@hotmail.com>
drivers/iommu/Kconfig

index c393780..12afbbd 100644 (file)
@@ -495,7 +495,7 @@ config SPRD_IOMMU
          Say Y here if you want to use the multimedia devices listed above.
 
 config BCM2712_IOMMU
-       tristate "BCM2712 IOMMU driver"
+       bool "BCM2712 IOMMU driver"
        depends on ARM64 && ARCH_BCM
        select IOMMU_API
        help