On Tue, Nov 05, 2024 at 07:36:31PM +0100, Geert Uytterhoeven wrote:
As described in the added code comment, a reference to .exit.text is ok for drivers registered via module_platform_driver_probe(). Make this explicit to prevent the following section mismatch warnings WARNING: modpost: drivers/scsi/sun3_scsi: section mismatch in reference: sun3_scsi_driver+0x4 (section: .data) -> sun3_scsi_remove (section: .exit.text) WARNING: modpost: drivers/scsi/sun3_scsi_vme: section mismatch in reference: sun3_scsi_driver+0x4 (section: .data) -> sun3_scsi_remove (section: .exit.text) that trigger on a Sun 3 allmodconfig build. Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxx> Seems I missed that one before posting 7308bf8a2c3d ("modpost: Enable section warning from *driver to .exit.text"). My excuse is that this driver isn't enabled for an ARCH=m68k allmodconfig build. Thanks Uwe
Attachment:
signature.asc
Description: PGP signature