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

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Fri Nov 10 08:57:18 UTC 2023


Hello,

On Fri, Nov 10, 2023 at 08:58:37AM +0100, Geert Uytterhoeven wrote:
> 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?

Do you have f177cd0c15fcc7bdbb68d8d1a3166dead95314c8 in your tree? And
note it's only there if you compile the driver as a module and it is
only emitted once you completed the whole build.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20231110/4fdbb647/attachment.sig>


More information about the dri-devel mailing list