bcm27xx: update 6.1 patches from RPi foundation
[openwrt/staging/xback.git] / target / linux / bcm27xx / patches-6.1 / 950-1260-iommu-bcm2712-don-t-allow-building-as-module.patch
1 From 86450c7dc4df99c3b16677cb00c2d3caf01a40f6 Mon Sep 17 00:00:00 2001
2 From: Ratchanan Srirattanamet <peathot@hotmail.com>
3 Date: Tue, 30 Jan 2024 14:09:00 +0700
4 Subject: [PATCH 1260/1295] iommu/bcm2712: don't allow building as module
5
6 Since bcm2712-iommu{,-cache}.c doesn't have usual module descriptors
7 such as `MODULE_LICENSE`, configuring this as 'M' fails the build with
8 `ERROR: modpost: missing MODULE_LICENSE() in <...>/bcm2712-iommu.o`.
9 Since it seems like the code is not intended to be built as a module
10 anyway (it registers the driver with `builtin_platform_driver()`), don't
11 allow building this code as a module.
12
13 Signed-off-by: Ratchanan Srirattanamet <peathot@hotmail.com>
14 ---
15 drivers/iommu/Kconfig | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/drivers/iommu/Kconfig
19 +++ b/drivers/iommu/Kconfig
20 @@ -507,7 +507,7 @@ config SPRD_IOMMU
21 Say Y here if you want to use the multimedia devices listed above.
22
23 config BCM2712_IOMMU
24 - tristate "BCM2712 IOMMU driver"
25 + bool "BCM2712 IOMMU driver"
26 depends on ARM64 && ARCH_BCM
27 select IOMMU_API
28 help