[PATCH 1/2] fb: amifb: Mark driver struct with __refdata to prevent section mismatch warning

Geert Uytterhoeven geert at linux-m68k.org
Fri Nov 10 07:58:37 UTC 2023


Hi Uwe,

On Thu, Nov 9, 2023 at 11:02 PM Uwe Kleine-König
<u.kleine-koenig at pengutronix.de> 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 a section mismatch warning.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Thanks for your patch!
Why am I not seeing the actual section mismatch warning, not even
with W=1?

Reviewed-by: Geert Uytterhoeven <geert at linux-m68k.org>

Gr{oetje,eeting}s,

                        Geert


--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds


More information about the dri-devel mailing list