Sam Ravnborg
6bf3c3508c
sparc32: Fix section mismatch in leon_pci_grpci
...
[ Upstream commit 24338a6ae13cb743ced77da1b3a12c83f08a0c96 ]
Passing a datastructre marked _initconst to platform_driver_register()
is wrong. Drop the __initconst notation.
This fixes the following warnings:
WARNING: modpost: vmlinux: section mismatch in reference: grpci1_of_driver+0x30 (section: .data) -> grpci1_of_match (section: .init.rodata)
WARNING: modpost: vmlinux: section mismatch in reference: grpci2_of_driver+0x30 (section: .data) -> grpci2_of_match (section: .init.rodata)
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Andreas Larsson <andreas@gaisler.com>
Fixes: 4154bb821f0b ("sparc: leon: grpci1: constify of_device_id")
Fixes: 03949b1cb9f1 ("sparc: leon: grpci2: constify of_device_id")
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Tested-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/20240224-sam-fix-sparc32-all-builds-v2-7-1f186603c5c4@ravnborg.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:22:41 -04:00
..
2024-03-15 10:48:17 -04:00
2024-01-25 14:33:30 -08:00
2024-03-26 18:22:40 -04:00
2024-01-08 11:27:32 +01:00
2023-02-06 07:49:45 +01:00
2023-02-06 07:49:45 +01:00
2023-08-11 11:45:01 +02:00
2023-09-23 10:47:57 +02:00
2023-02-06 07:49:45 +01:00
2024-03-26 18:22:33 -04:00
2023-02-06 07:49:45 +01:00
2023-06-21 15:39:57 +02:00
2023-05-17 11:13:19 +02:00
2024-02-23 08:12:40 +01:00
2024-03-26 18:22:41 -04:00
2023-04-05 11:15:36 +02:00
2024-03-01 13:06:11 +01:00
2023-11-20 10:29:19 +01:00
2024-03-26 18:22:41 -04:00
2024-03-15 10:48:16 -04:00
2024-03-26 18:22:36 -04:00
2023-08-11 11:45:23 +02:00
2023-08-08 19:49:17 +02:00