summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/a4000t.c
diff options
context:
space:
mode:
authorMaxime Ripard <mripard@kernel.org>2024-05-27 11:08:31 +0200
committerMaxime Ripard <mripard@kernel.org>2024-05-27 11:08:31 +0200
commit375c4d1583948cf2439833e4a85d5a0aee853895 (patch)
tree821f494e7df09af36887f710cfce1fb89600e666 /drivers/scsi/a4000t.c
parentdma-buf/fence-array: Add flex array to struct dma_fence_array (diff)
parentLinux 6.10-rc1 (diff)
downloadlinux-375c4d1583948cf2439833e4a85d5a0aee853895.tar.xz
linux-375c4d1583948cf2439833e4a85d5a0aee853895.zip
Merge drm/drm-next into drm-misc-next
Let's start the new release cycle. Signed-off-by: Maxime Ripard <mripard@kernel.org>
Diffstat (limited to 'drivers/scsi/a4000t.c')
-rw-r--r--drivers/scsi/a4000t.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/scsi/a4000t.c b/drivers/scsi/a4000t.c
index e435fc06a624..d9103adc87fe 100644
--- a/drivers/scsi/a4000t.c
+++ b/drivers/scsi/a4000t.c
@@ -108,7 +108,13 @@ static void __exit amiga_a4000t_scsi_remove(struct platform_device *pdev)
release_mem_region(res->start, resource_size(res));
}
-static struct platform_driver amiga_a4000t_scsi_driver = {
+/*
+ * amiga_a4000t_scsi_remove() lives in .exit.text. For drivers registered via
+ * module_platform_driver_probe() this is ok because they cannot get unbound at
+ * runtime. So mark the driver struct with __refdata to prevent modpost
+ * triggering a section mismatch warning.
+ */
+static struct platform_driver amiga_a4000t_scsi_driver __refdata = {
.remove_new = __exit_p(amiga_a4000t_scsi_remove),
.driver = {
.name = "amiga-a4000t-scsi",