Sam Ravnborg
d83d70b25d
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:21:32 -04:00
..
2021-11-18 19:17:00 +01:00
2021-05-07 00:26:34 -07:00
2020-11-27 17:13:42 +11:00
2023-08-08 19:58:31 +02:00
2024-03-26 18:21:32 -04:00
2023-11-08 17:26:42 +01:00
2020-08-23 17:36:59 -05:00
2021-09-02 10:32:06 -07:00
2021-07-29 00:20:56 +02:00
2019-05-21 10:50:46 +02:00
2020-10-21 00:28:53 +09:00
2019-05-30 11:32:33 -07:00
2023-08-08 19:58:31 +02:00
2021-08-16 11:37:21 -04:00
2021-09-03 08:17:20 +09:00