Message ID | 3225ba4cfe558d9380155e75385954dd21d4e7eb.1665909132.git.geert@linux-m68k.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 4e8ff35878685291978b93543d6b9e9290be770a |
Headers | show |
Series | ASoC: codecs: tlv320adc3xxx: Wrap adc3xxx_i2c_remove() in __exit_p() | expand |
On Sun, Oct 16, 2022 at 10:33:50AM +0200, Geert Uytterhoeven wrote: > If CONFIG_SND_SOC_TLV320ADC3XXX=y: > > `.exit.text' referenced in section `.data' of sound/soc/codecs/tlv320adc3xxx.o: defined in discarded section `.exit.text' of sound/soc/codecs/tlv320adc3xxx.o > > Fix this by wrapping the adc3xxx_i2c_remove() pointer in __exit_p(). Why does this driver need this but most others don't?
Hi Mark, On Mon, Oct 17, 2022 at 1:36 PM Mark Brown <broonie@kernel.org> wrote: > On Sun, Oct 16, 2022 at 10:33:50AM +0200, Geert Uytterhoeven wrote: > > If CONFIG_SND_SOC_TLV320ADC3XXX=y: > > > > `.exit.text' referenced in section `.data' of sound/soc/codecs/tlv320adc3xxx.o: defined in discarded section `.exit.text' of sound/soc/codecs/tlv320adc3xxx.o > > > > Fix this by wrapping the adc3xxx_i2c_remove() pointer in __exit_p(). > > Why does this driver need this but most others don't? Because most drivers don't annotate .remove() functions with __exit? An alternative would be to drop the __exit annotation, at the expense of a slightly larger kernel in the built-in case. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
On Sun, 16 Oct 2022 10:33:50 +0200, Geert Uytterhoeven wrote: > If CONFIG_SND_SOC_TLV320ADC3XXX=y: > > `.exit.text' referenced in section `.data' of sound/soc/codecs/tlv320adc3xxx.o: defined in discarded section `.exit.text' of sound/soc/codecs/tlv320adc3xxx.o > > Fix this by wrapping the adc3xxx_i2c_remove() pointer in __exit_p(). > > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: codecs: tlv320adc3xxx: Wrap adc3xxx_i2c_remove() in __exit_p() commit: 4e8ff35878685291978b93543d6b9e9290be770a All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/sound/soc/codecs/tlv320adc3xxx.c b/sound/soc/codecs/tlv320adc3xxx.c index baab320ef98879d7..a969547708d49676 100644 --- a/sound/soc/codecs/tlv320adc3xxx.c +++ b/sound/soc/codecs/tlv320adc3xxx.c @@ -1449,7 +1449,7 @@ static struct i2c_driver adc3xxx_i2c_driver = { .of_match_table = tlv320adc3xxx_of_match, }, .probe_new = adc3xxx_i2c_probe, - .remove = adc3xxx_i2c_remove, + .remove = __exit_p(adc3xxx_i2c_remove), .id_table = adc3xxx_i2c_id, };
If CONFIG_SND_SOC_TLV320ADC3XXX=y: `.exit.text' referenced in section `.data' of sound/soc/codecs/tlv320adc3xxx.o: defined in discarded section `.exit.text' of sound/soc/codecs/tlv320adc3xxx.o Fix this by wrapping the adc3xxx_i2c_remove() pointer in __exit_p(). Fixes: e9a3b57efd28fe88 ("ASoC: codec: tlv320adc3xxx: New codec driver") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> --- sound/soc/codecs/tlv320adc3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)