Message ID | 20221125142756.3e51a28d@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 q4csp4021609wrr; Fri, 25 Nov 2022 05:34:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf4rFRnWc0aN7izsUUs4KKdRxkjFRySrZ3CS7fu5RFATKJxWqwHhEc+50S04M52clyjH8Ra3 X-Received: by 2002:a17:907:7f8e:b0:7bb:52b2:4162 with SMTP id qk14-20020a1709077f8e00b007bb52b24162mr6456639ejc.608.1669383297527; Fri, 25 Nov 2022 05:34:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669383297; cv=none; d=google.com; s=arc-20160816; b=lmW5DsYXyZNZLj+CeOcsXcD7QPaNIkxRhOt+N0u83OqoCFt8/2PsmiwH9Q0YZ21HZS MS2paZYGlw9MhudA92YELkBB6HNuyqiijc1Vdiwxt4+CTCLivfB1vDgvPhjZyA8wPmx0 CzCNddPDEneeK2qB6D6KFfxTzHPlrLGpaQUg/oXUh9RQSzfRymf7xL7UsHgAbyw5wWM5 DF+MM5nijv0sqZtC4AGeWfKzf6gjHLq0Py9ecj5KFx5pVwXXIbTJ2SL1b08SswdyHzbp 1Hmf9iZmXjtIOOHIfcvMlRV1p+xXGpyvcXgzvZzKFlkQBWD/wRGK3gRRYX2H4WBXtSOz D2IQ== 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=gHRjihEIn9Cp9Gu2BUUhHxdO/VDWVhUBtMD1MJ0iOIA=; b=b5bO+6GLyT1M3ut/mQx9G6YgwIjsJTNmyXMRvwlCUQD5LSI+g2gnpJewRzUGWE4DKL sJXZQQ0/CrUiSy3T5WeKEeAW5aqmn72dZwiUUM+uZKX6zNwWl+iAWHicntbt+5mBvss/ ZjZ5bvmv7LoyVsglY4sdEyiVOoYGezwfFcb6WEY8yRHxNkINS/d6tcRbnDB08JN4E4vw /EckwnF1Wiq4nmnP/1iDL0xHpHE7bYS6GbettiZWrLZPU2XGHYgZz6ahGKaWlxIDNBvz 8lDcqTfZmWp2OjVzEb2KGE/M52CgdZeE/wCzT+096y8U53KkumerPV1wpQ0VC6wZ0KjO sjeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=VJ7+sL5V; dkim=neutral (no key) header.i=@suse.de header.b=iiSLh3Kq; 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 e5-20020a17090658c500b00783645da4e5si3187142ejs.582.2022.11.25.05.34.30; Fri, 25 Nov 2022 05:34:57 -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=VJ7+sL5V; dkim=neutral (no key) header.i=@suse.de header.b=iiSLh3Kq; 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 S229587AbiKYN2D (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Fri, 25 Nov 2022 08:28:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbiKYN2B (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 25 Nov 2022 08:28:01 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABB0F20F5B; Fri, 25 Nov 2022 05:27:59 -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-out2.suse.de (Postfix) with ESMTPS id 60B861F8D5; Fri, 25 Nov 2022 13:27:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1669382878; 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=gHRjihEIn9Cp9Gu2BUUhHxdO/VDWVhUBtMD1MJ0iOIA=; b=VJ7+sL5VxdP0Kdv+71iYChbm3Xgags4EH2dQMXSrDfRum4ZI0ZTE3KHvmil3QzsF0EWSX9 N0UgobqVTlvEoszJNbDMCbhzShLGHZrXyUptpitxev36DyiGhuYb8GAv9e06k/MjACy3IU tzJl9Ol7Ibqj24Yv4t6kzZD1cKGaCxM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1669382878; 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=gHRjihEIn9Cp9Gu2BUUhHxdO/VDWVhUBtMD1MJ0iOIA=; b=iiSLh3Kq4T1LNO9fmIfIGGidAxQuvXCR4VBaMO1rvCAGb/WVG1BOHnD0T7KV1d+I/41YRj eO/Fwwgx3HQrbUCA== 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 201561361C; Fri, 25 Nov 2022 13:27:58 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id gkZBBt7CgGP3TAAAMHmgww (envelope-from <jdelvare@suse.de>); Fri, 25 Nov 2022 13:27:58 +0000 Date: Fri, 25 Nov 2022 14:27:56 +0100 From: Jean Delvare <jdelvare@suse.de> To: linux-serial@vger.kernel.org Cc: LKML <linux-kernel@vger.kernel.org>, Karol Gugala <kgugala@antmicro.com>, Mateusz Holenko <mholenko@antmicro.com>, Gabriel Somlo <gsomlo@gmail.com>, Joel Stanley <joel@jms.id.au>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Subject: [PATCH] serial: liteuart: drop obsolete dependency on COMPILE_TEST Message-ID: <20221125142756.3e51a28d@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?1750475260540962846?= X-GMAIL-MSGID: =?utf-8?q?1750475260540962846?= |
Series |
serial: liteuart: drop obsolete dependency on COMPILE_TEST
|
|
Commit Message
Jean Delvare
Nov. 25, 2022, 1:27 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: Karol Gugala <kgugala@antmicro.com>
Cc: Mateusz Holenko <mholenko@antmicro.com>
Cc: Gabriel Somlo <gsomlo@gmail.com>
Cc: Joel Stanley <joel@jms.id.au>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/tty/serial/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Fri, Nov 25, 2022 at 02:27:56PM +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. Acked-by: Gabriel Somlo <gsomlo@gmail.com> Thanks, --G > Signed-off-by: Jean Delvare <jdelvare@suse.de> > Cc: Karol Gugala <kgugala@antmicro.com> > Cc: Mateusz Holenko <mholenko@antmicro.com> > Cc: Gabriel Somlo <gsomlo@gmail.com> > Cc: Joel Stanley <joel@jms.id.au> > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > --- > drivers/tty/serial/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- linux-6.0.orig/drivers/tty/serial/Kconfig > +++ linux-6.0/drivers/tty/serial/Kconfig > @@ -1519,7 +1519,7 @@ config SERIAL_MILBEAUT_USIO_CONSOLE > config SERIAL_LITEUART > tristate "LiteUART serial port support" > depends on HAS_IOMEM > - depends on OF || COMPILE_TEST > + depends on OF > depends on LITEX || COMPILE_TEST > select SERIAL_CORE > help > > > -- > Jean Delvare > SUSE L3 Support
--- linux-6.0.orig/drivers/tty/serial/Kconfig +++ linux-6.0/drivers/tty/serial/Kconfig @@ -1519,7 +1519,7 @@ config SERIAL_MILBEAUT_USIO_CONSOLE config SERIAL_LITEUART tristate "LiteUART serial port support" depends on HAS_IOMEM - depends on OF || COMPILE_TEST + depends on OF depends on LITEX || COMPILE_TEST select SERIAL_CORE help