Re: [PATCH v2 resend] pcmcia: omap_cf: Mark driver struct with __refdata to prevent section mismatch
From: Uwe Kleine-König
Date: Thu Aug 14 2025 - 01:13:33 EST
Hello Geert,
On Wed, Aug 13, 2025 at 05:50:14PM +0200, Geert Uytterhoeven wrote:
> As described in the added code comment, a reference to .exit.text is ok
> for drivers registered via platform_driver_probe(). Make this explicit
> to prevent the following section mismatch warning
>
> WARNING: modpost: drivers/pcmcia/omap_cf: section mismatch in reference: omap_cf_driver+0x4 (section: .data) -> omap_cf_remove (section: .exit.text)
>
> that triggers on an omap1_defconfig + CONFIG_OMAP_CF=m build.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
> Acked-by: Aaro Koskinen <aaro.koskinen@xxxxxx>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature