Message ID | 20221127193441.0b54484d@endymion.delvare |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5242026wrr; Sun, 27 Nov 2022 10:38:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf6by6YvvJkAprl+diCx/jtZPRjwZLqzTj2+RpoWh2Ceer6hLGdrvxGLL5bzaXPpYeOcS7ID X-Received: by 2002:a63:140e:0:b0:477:b461:3a3b with SMTP id u14-20020a63140e000000b00477b4613a3bmr20988594pgl.623.1669574321205; Sun, 27 Nov 2022 10:38:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669574321; cv=none; d=google.com; s=arc-20160816; b=Neh+OzoyFBxKh6/XbG75hjzG4kyEjq0lb0wWNf/y76s1H3hNopPlaSI6NyX8FS44ou i6/dHzIOUZqeFTUkWduuKvUjypiL+caFs5nUa+A4Xyaz3U49bbbKQLOkKrgEvcb1FbTl /bEvGRbvU+gdgGGhHA6yxpP0/kN/IJ/8WF/Ip+m3f7tNr1o6OIXAEpqiOkBbISMXDWqg v6uiWgFnI52gDJmRQDcBh1ozNNTsaQ1id8HY/YJk2X/syKsRdKwh4WlMf/zQ0zDG7d4P mAyWaSU9U5DdLtygvhqLlMrI6Bw2HBinx6jM95r1QHBEY3aL2mMnBYOyG7UIMCMZnQYu VwVg== 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 :organization:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=EM3IWTZffE0t8mqrk8ap1Lagq6Nmt4pMyd/upq1uheM=; b=mUmNQtyx2N5ESqsdxxkfi2W5tgSzQlQ0l3T26Mx7bD2yp12OFmoIkYbDQrADk3jPvz CskrTyQDnV8nbTxeQ+6RAxTW9fDpRBcJI0DsdAZsbVb86W+owZFasj0yl6VRnzmdH+5f SNwKYM4127L6FHpQyg1Kgb7DrOfmEAzesCIh/HfDB/xmgKCKMsQPG+aUOihFjrqYsAw7 g4tk6SqA5Spb6VWqo4+6WlJLM4spvnoiiLDpjJAMH7sPfDpWKreJLz86YFHAAGVS0jjE qXFufoCt5UdhHwzn9cuuGZFJ1lHXsR9o6zd9dSFn/DSSVcp7QsptyUjipcIFCqghSdeM 7yZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=0gY7yVDA; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mw11-20020a17090b4d0b00b002187105ec3dsi14423568pjb.43.2022.11.27.10.38.28; Sun, 27 Nov 2022 10:38:41 -0800 (PST) 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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=0gY7yVDA; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229540AbiK0Seq (ORCPT <rfc822;gah0developer@gmail.com> + 99 others); Sun, 27 Nov 2022 13:34:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiK0Seo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 27 Nov 2022 13:34:44 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9694E69 for <linux-kernel@vger.kernel.org>; Sun, 27 Nov 2022 10:34:43 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 8BA7D21B70; Sun, 27 Nov 2022 18:34:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1669574082; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EM3IWTZffE0t8mqrk8ap1Lagq6Nmt4pMyd/upq1uheM=; b=0gY7yVDAExkCGPb1nMKKT/K1SKWvNXSv91vB0s55scByPOWOPg2O6tvnSX0OfGhnvnEUrg mTw4sDVQW3qe40/g2DKKn9Emf80Z3bN4FXx9xTNqrTWHVy1tU+JK9eqDRW5aEU4M0QBImX bHa16gvaXsAxrYuKUA0flUWSeYy7mIo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1669574082; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EM3IWTZffE0t8mqrk8ap1Lagq6Nmt4pMyd/upq1uheM=; b=U/QJVF5a18X+Jhlfq4j3hXQpjyGAWtq+w8VxfxqEGuIODC9AjrsWzsugXVGPJPyZ0byr6L RE31NKVP/iMf4sCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 50AEF134CE; Sun, 27 Nov 2022 18:34:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id WXIFEsKtg2P8HAAAMHmgww (envelope-from <jdelvare@suse.de>); Sun, 27 Nov 2022 18:34:42 +0000 Date: Sun, 27 Nov 2022 19:34:41 +0100 From: Jean Delvare <jdelvare@suse.de> To: LKML <linux-kernel@vger.kernel.org> Cc: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com> Subject: [PATCH] ASoC: rsnd: Drop obsolete dependency on COMPILE_TEST Message-ID: <20221127193441.0b54484d@endymion.delvare> Organization: SUSE Linux X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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?1750675563429445964?= X-GMAIL-MSGID: =?utf-8?q?1750675563429445964?= |
Series |
ASoC: rsnd: Drop obsolete dependency on COMPILE_TEST
|
|
Commit Message
Jean Delvare
Nov. 27, 2022, 6:34 p.m. UTC
Since commit 0166dc11be91 ("of: make CONFIG_OF user selectable"), it
is possible to test-build any driver which depends on OF on any
architecture by explicitly selecting OF. Therefore depending on
COMPILE_TEST as an alternative is no longer needed.
It is actually better to always build such drivers with OF enabled,
so that the test builds are closer to how each driver will actually be
built on its intended target. Building them without OF may not test
much as the compiler will optimize out potentially large parts of the
code. In the worst case, this could even pop false positive warnings.
Dropping COMPILE_TEST here improves the quality of our testing and
avoids wasting time on non-existent issues.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
---
sound/soc/sh/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Sun, Nov 27, 2022 at 07:34:41PM +0100, Jean Delvare wrote: > It is actually better to always build such drivers with OF enabled, > so that the test builds are closer to how each driver will actually be > built on its intended target. Building them without OF may not test > much as the compiler will optimize out potentially large parts of the > code. In the worst case, this could even pop false positive warnings. > Dropping COMPILE_TEST here improves the quality of our testing and > avoids wasting time on non-existent issues. As ever building without OF does not preclude building with OF.
Hi Mark, On Mon, 28 Nov 2022 12:33:35 +0000, Mark Brown wrote: > On Sun, Nov 27, 2022 at 07:34:41PM +0100, Jean Delvare wrote: > > It is actually better to always build such drivers with OF enabled, > > so that the test builds are closer to how each driver will actually be > > built on its intended target. Building them without OF may not test > > much as the compiler will optimize out potentially large parts of the > > code. In the worst case, this could even pop false positive warnings. > > Dropping COMPILE_TEST here improves the quality of our testing and > > avoids wasting time on non-existent issues. > > As ever building without OF does not preclude building with OF. I'm sorry, I'm not sure I understand what point you are trying to make here. Of course you can build a kernel with and without OF, and without my patch, you could build the driver with and without OF. My point is that there is no value in allowing that. There are 2 use cases for COMPILE_TEST. The first use case is kernel developers who make changes to a driver and want to be able to test-build it. Now they can just enable OF and they will be able to test-build the driver (and a better version of it, as explained in my patch description). It is no different from enabling I2C if you need to test-build an I2C driver, or enabling SPI if you need to test-build an SPI driver, etc. The second use case is the compilation farms. These will typically run pre-defined real kernel configurations or allmodconfig or randconfig. The first two options are not really affected by this change, only randconfig is. For randconfig, the limiting factor is the build power of the farm. So, in a way, yes building without OF does preclude building with OF, because you can test only one combination of options at once. Whenever you build your driver without OF, you are wasting an opportunity to build it with OF instead, which would test the code as it will actually be used on its intended target, and thus is a better test. You may argue that statistically, randconfig will select the driver more often if it depends on OF || COMPILE_TEST rather than just OF. That's true, but it's a matter of quantity versus quality. Would you rather test build the code twice in its crippled form, which may trigger false-positive warnings or hide actual warnings, or just once in its proper form, where all warnings and build failures are real? I definitely believe the latter is a better use of our resources. Thanks,
On Sun, 27 Nov 2022 19:34:41 +0100, Jean Delvare wrote: > Since commit 0166dc11be91 ("of: make CONFIG_OF user selectable"), it > is possible to test-build any driver which depends on OF on any > architecture by explicitly selecting OF. Therefore depending on > COMPILE_TEST as an alternative is no longer needed. > > It is actually better to always build such drivers with OF enabled, > so that the test builds are closer to how each driver will actually be > built on its intended target. Building them without OF may not test > much as the compiler will optimize out potentially large parts of the > code. In the worst case, this could even pop false positive warnings. > Dropping COMPILE_TEST here improves the quality of our testing and > avoids wasting time on non-existent issues. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: rsnd: Drop obsolete dependency on COMPILE_TEST commit: d695d089e35e28f3f0ed4595a242922cc28f9b20 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
On Mon, Nov 28, 2022 at 02:56:12PM +0100, Jean Delvare wrote: > On Mon, 28 Nov 2022 12:33:35 +0000, Mark Brown wrote: > > On Sun, Nov 27, 2022 at 07:34:41PM +0100, Jean Delvare wrote: > > > It is actually better to always build such drivers with OF enabled, > > > so that the test builds are closer to how each driver will actually be > > > built on its intended target. Building them without OF may not test > > > much as the compiler will optimize out potentially large parts of the > > > code. In the worst case, this could even pop false positive warnings. > > > Dropping COMPILE_TEST here improves the quality of our testing and > > > avoids wasting time on non-existent issues. > > As ever building without OF does not preclude building with OF. > I'm sorry, I'm not sure I understand what point you are trying to make > here. You're overselling what the change does here in a way that's getting a bit silly. It's just cutting down the amount of stuff the randconfig people do, that's all. It's not particularly bad to compile without the DT support, I suppose you could argue that it's preserving our ability to work with other firmware interfaces although that's a bit of a push (but then a lot of the stuff generated by randconfig is in a similar ballpark of course). The whole point with COMPILE_TEST is that it's enabling unrealistic things that probably aren't practically useful. > That's true, but it's a matter of quantity versus quality. Would you > rather test build the code twice in its crippled form, which may > trigger false-positive warnings or hide actual warnings, or just once > in its proper form, where all warnings and build failures are real? I > definitely believe the latter is a better use of our resources. I'm not saying don't do the change, I'm saying don't oversell it.
--- linux-6.0.orig/sound/soc/sh/Kconfig +++ linux-6.0/sound/soc/sh/Kconfig @@ -39,7 +39,7 @@ config SND_SOC_SH4_SIU config SND_SOC_RCAR tristate "R-Car series SRU/SCU/SSIU/SSI support" depends on COMMON_CLK - depends on OF || COMPILE_TEST + depends on OF select SND_SIMPLE_CARD_UTILS select REGMAP_MMIO help