From patchwork Fri Nov 25 16:04:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 26089 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp4138049wrr; Fri, 25 Nov 2022 08:20:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf5mlDXuvFbSNdVR12Zqp5qPkGiZ7uKRP7vHSmuTglzFGlomx6H3ePsQ96uR4lQr0n5jdzyO X-Received: by 2002:a05:6a00:1413:b0:56b:8e99:a5e9 with SMTP id l19-20020a056a00141300b0056b8e99a5e9mr19321423pfu.24.1669393247803; Fri, 25 Nov 2022 08:20:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669393247; cv=none; d=google.com; s=arc-20160816; b=ANe9mp+Iu6tkZw/AIJVBg6mshUeypQtXnA20ZcxgQWAc9zaUTEoaxrILG698iLLRCz 9160BfJZfwNy10KyNy2+46l9KsV0XPzvNYgfgh+OPygTNC6bN0tUnGgM6zXmWXkLw53n +UDcrYdm8UFuq+BysaULk3/78EoE2CgscTc6mu818ksIUTsEBJqb3rFJyrr7x0ONFweH ZBp6Tx3b+aONKpK1bmERZj1dM/FvPi3YniRBz53P2hLEKaNO9+hNBLHMUyYKtniNndOI TRnGKwrl477tE7qZ3L1YO7ulbyVriGAqOOORbIJ9AqZrA93tXMJFHQGg8wiHY2+m9kX+ sk5A== 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=E1AvnYKtYn+8yPFjM7D+vldgE+4/Vf2jmsQdzXTBl9E=; b=RfTQQd859FeEBbm/TO0Po19tk5IeZxggL/gF1gphlpO/9PUL8u6SxkcZ23BakbuwIQ BqxGcmMwZlXfyImgmGmg1dcKIY1jjG/O15lQpD7gJdjiad9W2csLP1hht0vZnzercjVp 6Ijf9pQopfErldNdkxbsRLIy7KHEX9TtlJcRpc5hVvMaznqGbAp0sENwHIK3Csp+5e9n 03SykwxJIeRJSh4y78caV2eJQbDyY6B5V21yWBtcJBaUy4Y2Y1qjuA2teOeYWx+fEb7l oW2m5TqWfr+OTpfaYe68KPE0l8kmUoPVlpcmGY+RKff5nqtk65uHWNwfdBSIXPVaHI5A SbBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=YH4sWQhv; 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 c5-20020a170902d48500b001867db1d29csi4840717plg.60.2022.11.25.08.20.34; Fri, 25 Nov 2022 08:20:47 -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=YH4sWQhv; 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 S229919AbiKYQEs (ORCPT + 99 others); Fri, 25 Nov 2022 11:04:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbiKYQEr (ORCPT ); Fri, 25 Nov 2022 11:04:47 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39D9F4C258; Fri, 25 Nov 2022 08:04:46 -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 6457521AE8; Fri, 25 Nov 2022 16:04:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1669392285; 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=E1AvnYKtYn+8yPFjM7D+vldgE+4/Vf2jmsQdzXTBl9E=; b=YH4sWQhvo3bUc46XnpcapEyvmEHVazGhnrtaoNqthyKYb6WcxFZ/r2vbqutAQ9p0t7MzMR Qa23IcwODRjyX8JSftO9cTRtUKBDahWfAAyoBM01qBxdPiE/vR0EaUvJvrwGy5lxJmf3e0 84luV89ft2qZizlR/8Q7FezuRJdHPjc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1669392285; 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=E1AvnYKtYn+8yPFjM7D+vldgE+4/Vf2jmsQdzXTBl9E=; b=4Bs+nm4bCab40+zSX3tganHTBUkvJ/m2m6bBnsOMy8YqdKRud8HwAfk7kG69T66GDHv94l DDu6ou8hgfwmF4BQ== 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 1CBD61361C; Fri, 25 Nov 2022 16:04:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 1TxMBZ3ngGOHHAAAMHmgww (envelope-from ); Fri, 25 Nov 2022 16:04:45 +0000 Date: Fri, 25 Nov 2022 17:04:44 +0100 From: Jean Delvare To: linux-usb@vger.kernel.org Cc: LKML , Greg Kroah-Hartman , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Michal Simek Subject: [PATCH] usb: gadget: udc: drop obsolete dependencies on COMPILE_TEST Message-ID: <20221125170444.36620123@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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750485694673315609?= X-GMAIL-MSGID: =?utf-8?q?1750485694673315609?= 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 Cc: Greg Kroah-Hartman Cc: Nicolas Ferre Cc: Alexandre Belloni Cc: Claudiu Beznea Cc: Michal Simek Acked-by: Nicolas Ferre --- drivers/usb/gadget/udc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-6.0.orig/drivers/usb/gadget/udc/Kconfig +++ linux-6.0/drivers/usb/gadget/udc/Kconfig @@ -33,7 +33,7 @@ menu "USB Peripheral Controller" config USB_AT91 tristate "Atmel AT91 USB Device Port" depends on ARCH_AT91 - depends on OF || COMPILE_TEST + depends on OF help Many Atmel AT91 processors (such as the AT91RM2000) have a full speed USB Device Port with support for five configurable @@ -430,7 +430,7 @@ config USB_EG20T config USB_GADGET_XILINX tristate "Xilinx USB Driver" depends on HAS_DMA - depends on OF || COMPILE_TEST + depends on OF help USB peripheral controller driver for Xilinx USB2 device. Xilinx USB2 device is a soft IP which supports both full