Re: [PATCH] OSS: dmasound/paula: Mark driver struct with __refdata to prevent section mismatch

Takashi Iwai
2024-04-01T11:47:40Z

On Fri, 29 Mar 2024 22:54:42 +0100,
Uwe Kleine-König 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 warning
>
> WARNING: modpost: sound/oss/dmasound/dmasound_paula: section mismatch in reference: amiga_audio_driver+0x8 (section: .data) -> amiga_audio_remove (section: .exit.text)
>
> that triggers on an allmodconfig W=1 build.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Thanks, applied.

Takashi