Message ID | 3225ba4cfe558d9380155e75385954dd21d4e7eb.1665909132.git.geert@linux-m68k.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1078513wrs; Sun, 16 Oct 2022 09:27:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6GZziHJ0oAYF4XiYRegUKbrqRSK5kCUlH/nvT/SPk6xgC8mh/dUVn9BC3XuKtZlWgpE17H X-Received: by 2002:a17:902:dad2:b0:17f:8290:fce0 with SMTP id q18-20020a170902dad200b0017f8290fce0mr7643786plx.168.1665937625804; Sun, 16 Oct 2022 09:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665937625; cv=none; d=google.com; s=arc-20160816; b=zAo7NyYUGOmj8KDdSWBDXpmlz2NDCQR+5pjrK/ecg3lbwi5orPHgYlLiQj6zPpbjx4 XtZcxAq7T5aFkM7fdOXKC88CcaUGWPPw+eGflFTpY7emr5GdyFBNFn3LT97GM2rjDY4/ PGjMESV7vGfjB5Olorhi7hg7CyPc9XMJ33kIQ0Qxdr5SZShRfPvJqF9u7EeUUxpNrRTE N+8uImwVVvLnyZ8qlIW5huuf4EHchtZzALzABmiejJMKVYPk2c330suGjHuEA+7U46lB U6//i+CxLF38ouUe3wl6V8yqXdJpFcZJaq70dLbVt55jsgxKuKnswIM+d8eqtmkIxakX 6rhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=BbXzTk3SlYERL9wwTZE0MMSbE7/DuhNKIWgd9UzJuBE=; b=TAsnPhWSe9UkcK8HvTwu5wPNH12jktSrUE4adhrJ3Eq/5YkL0stcMpzNWqYGinNJ+a Gug76n4oGw1hbns+SzFsRj2lTsYqXLrXXQna6aG205JPYMaX2g8izdFATuIPCfZelfUz ZkGSrPwmllPVkpCEjLBs2a5aXP9pSSIEsOdXjfBqbXVfGWmI3KVuv0yM65qK9ANZOfBp q3DJ2DGzSzz8f4mQttZPyZAH8W3oMKHLOF1ZrytJlUi9h83Mp1NJSpUxiEOx5cYYvlq1 1PxRvES70ZnHoat5iX2E34Q7hn9qsP7FI5BnbR9Midesn8we4Cci1B0ixuYQxHg4PJKg AihQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 7-20020a17090a098700b0020a61adc286si12825454pjo.25.2022.10.16.09.26.52; Sun, 16 Oct 2022 09:27:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229979AbiJPQ02 (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Sun, 16 Oct 2022 12:26:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230052AbiJPQ0L (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 16 Oct 2022 12:26:11 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 772153C8C5 for <linux-kernel@vger.kernel.org>; Sun, 16 Oct 2022 09:25:17 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed50:166:9ae8:9d22:15bc]) by albert.telenet-ops.be with bizsmtp id YgRB280021KXA1b06gRBlU; Sun, 16 Oct 2022 18:25:11 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from <geert@linux-m68k.org>) id 1ok6Rq-001oFR-IZ; Sun, 16 Oct 2022 18:25:10 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from <geert@linux-m68k.org>) id 1ojz5j-000MFM-DJ; Sun, 16 Oct 2022 10:33:51 +0200 From: Geert Uytterhoeven <geert@linux-m68k.org> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Ricard Wanderlof <ricardw@axis.com> Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven <geert@linux-m68k.org> Subject: [PATCH] ASoC: codecs: tlv320adc3xxx: Wrap adc3xxx_i2c_remove() in __exit_p() Date: Sun, 16 Oct 2022 10:33:50 +0200 Message-Id: <3225ba4cfe558d9380155e75385954dd21d4e7eb.1665909132.git.geert@linux-m68k.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746862211956017493?= X-GMAIL-MSGID: =?utf-8?q?1746862211956017493?= |
Series |
ASoC: codecs: tlv320adc3xxx: Wrap adc3xxx_i2c_remove() in __exit_p()
|
|
Commit Message
Geert Uytterhoeven
Oct. 16, 2022, 8:33 a.m. UTC
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(-)
Comments
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, };