Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8762545rwb; Thu, 24 Nov 2022 04:05:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf59XdWgsncEWOWZ29GZNTUEz5rElIAYwHKLkxi9fyXNcMz65thAuWweCOhf1+bSVzU/58ZL X-Received: by 2002:aa7:d718:0:b0:467:6ffe:e94c with SMTP id t24-20020aa7d718000000b004676ffee94cmr29383420edq.417.1669291533322; Thu, 24 Nov 2022 04:05:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669291533; cv=none; d=google.com; s=arc-20160816; b=t23oPFLsk3VTLoGf66ZsvfcVgtF8gOW4badqqLhRpKl0rMJh83zyBQb0h9xuZQmIKD ujWI3GEk47Q3dCk8m5r4DcS2nngcwqGKWBtCMKCFuFJi2tjIhuYqAgxQ2Gvlb18qWzcm yg1VpMADLlTI+3A24YJXR9+NVUir87dHogw54LSizAnzBW0oo3inPOMOaHJonnNHdlrf /KYd7WEppEBskfsah8C8kxkX+YfAOd2O5cCa/0Ksr3obn8kGKqH/JBvbRVFF8V2s/oc2 qCyWuL23w4bc3qHF7OiezOdYgDmdzfR925zS5KJMszfGsH4btguE1VgGbkYoFNZSIPAb NKOg== 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=Gzt8jTwR+NxgS/gIm8RH0/+q5NKPvkljd3y17tGlyoE=; b=Fi3npsfXOl+xA+oVmWv36QiuXdpju1gXvrsOjnePzlXsqOIR5gM88ttAZwBbZvAbzF wDqtjGalguq1V70MBgAEiEf4QVgSWASyZz5sBvaI54Sr2M2vhWCbcBXjUC/1k7s/Qw52 g+ok5c7H1++0A1DgHywEZE3gCZ+dYH1N9m3/AL/7PI9ypggaIlIwDIPuo3EOMunu8XhZ eicgh51TeRO6ZcD85padCg8R2L6+5DFCHBxsX6RIfJsqH5tWdfwIuaW1QPh1Gw6i/IJ6 /k1dqJ+IzBBCCiZ8+Bljdgmb4LAbzdsrRjcq02H+zMZh7w3M5vb/JgAnGncwhIF1mBD9 pgfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=R+7hpGQS; dkim=neutral (no key) header.i=@suse.de header.b=EPBS1H7c; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb5-20020a0564020d0500b0046a711ae23csi259060edb.515.2022.11.24.04.05.10; Thu, 24 Nov 2022 04:05:33 -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=R+7hpGQS; dkim=neutral (no key) header.i=@suse.de header.b=EPBS1H7c; 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 S229799AbiKXK7v (ORCPT + 86 others); Thu, 24 Nov 2022 05:59:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbiKXK7t (ORCPT ); Thu, 24 Nov 2022 05:59:49 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 076478481D for ; Thu, 24 Nov 2022 02:59:48 -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 AD2781F38D; Thu, 24 Nov 2022 10:59:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1669287587; 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=Gzt8jTwR+NxgS/gIm8RH0/+q5NKPvkljd3y17tGlyoE=; b=R+7hpGQSN7xUv298CcH34JqHZDvEupABZykW3XFGobD5J9IZltFKz5f5xcdEegA/oStsYw 2it0RpnRmQneDb0N7BW0PWKBpzcG0hNxwSeqimE/oE8H3U/HNRlqxA7xTx0OEizUopjX6/ Gn0P01XvEaEQ3jSisw9Gmfg+w4jMPdw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1669287587; 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=Gzt8jTwR+NxgS/gIm8RH0/+q5NKPvkljd3y17tGlyoE=; b=EPBS1H7c9Zp9eZJxBb02FuHKQB9hwssIERiC/nNYOk7erunsduRHIXYzwNLm29kAqsnTp7 Kjv0dm3GlOmO45AA== 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 6DD9113B4F; Thu, 24 Nov 2022 10:59:47 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id GVwVGaNOf2NlUwAAMHmgww (envelope-from ); Thu, 24 Nov 2022 10:59:47 +0000 Date: Thu, 24 Nov 2022 11:59:46 +0100 From: Jean Delvare To: linux-mtd@lists.infradead.org, LKML Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Naga Sureshkumar Relli Subject: [PATCH] mtd: rawnand: Drop obsolete dependencies on COMPILE_TEST Message-ID: <20221124115946.5edb771c@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: X-Mailing-List: linux-kernel@vger.kernel.org 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: Miquel Raynal Cc: Richard Weinberger Cc: Vignesh Raghavendra Cc: Naga Sureshkumar Relli --- drivers/mtd/nand/raw/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- linux-6.0.orig/drivers/mtd/nand/raw/Kconfig +++ linux-6.0/drivers/mtd/nand/raw/Kconfig @@ -435,7 +435,7 @@ config MTD_NAND_PLATFORM config MTD_NAND_CADENCE tristate "Support Cadence NAND (HPNFC) controller" - depends on (OF || COMPILE_TEST) && HAS_IOMEM + depends on OF && HAS_IOMEM help Enable the driver for NAND flash on platforms using a Cadence NAND controller. @@ -450,7 +450,7 @@ config MTD_NAND_ARASAN config MTD_NAND_INTEL_LGM tristate "Support for NAND controller on Intel LGM SoC" - depends on OF || COMPILE_TEST + depends on OF depends on HAS_IOMEM help Enables support for NAND Flash chips on Intel's LGM SoC. @@ -470,7 +470,7 @@ config MTD_NAND_ROCKCHIP config MTD_NAND_PL35X tristate "ARM PL35X NAND controller" - depends on OF || COMPILE_TEST + depends on OF depends on PL353_SMC help Enables support for PrimeCell SMC PL351 and PL353 NAND -- Jean Delvare SUSE L3 Support