Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5962577rwb; Tue, 22 Nov 2022 07:09:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf643A20ufWBG/cVYct58ine+kHCKtrQmKAH7k+5suqDYTgxDJ34H3Carta9cwKqRH3CtQ3v X-Received: by 2002:a17:906:1146:b0:78d:9f02:5458 with SMTP id i6-20020a170906114600b0078d9f025458mr6367233eja.753.1669129759732; Tue, 22 Nov 2022 07:09:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669129759; cv=none; d=google.com; s=arc-20160816; b=OKP21QqKgeev090eZ4LUXmGJIggcSRwU0hBcaYh9SHgnWvyfpci9Kam2wD7jaJSI6M /sbW5LdWZyCqdX5qi12a9KUya51Frm65BBbmrVHb3AVHJ3hMqiF4QOvqu7nDGkoWNtFw MGdMjar2lvWvBQtXUlvw4I4fHeb6SrH01AxwnrYcrAzbFYplrhuppHLqh2G6bIMAzl3k X6dsvP86IRA0YkoIaTN903W0jM3ElXn2hp36kf7vDNuK7NRYlrenBcTtIAV9BiirC2CK bKsYhH0duLB8iaDhm7QucgOllMvR5RCJdxpZSrQwIQZ+nSu38tsrHWfvUt+WFSfwo7f0 ybfg== 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=LmN1hwBs4+4uTRkpp4eNPSMHGUAlw5RApBOUSqclOpE=; b=VCC+HRXGSu4rVcYFrN6NJkMgSrWGuq9OQU3h1v/MfUcDzMYS1qRh2Gr9HeJbyT7bem dkWKaFIfXGJaiOshuUOY45ROsxlgvZi9dWUvBjEAttY8hTgeBc6MEnFfQKUUIJfZHusE FRoco0vDU/d1YqwAl8JxwJVcYPy3AH/R+RqAALhCj0odX/zbjLMtrXbB513yZO3mqqZv F9tpqZ0G1B2Vv5BQRJ9yiA1mH4H1j4Z269mfFNXj7woxcj3pYr3LOQnLhu6cMZ3w3S9o fIRPqO9nSlVJQvCx3fMCBjHEuKBfGIqayF2LcUZWgTCJKfySDXGzUurHMqGaUkb1jY7t leEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=cJv41sKF; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p16-20020a05640210d000b0046920e7030csi8368344edu.222.2022.11.22.07.08.57; Tue, 22 Nov 2022 07:09:19 -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=cJv41sKF; 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 S232997AbiKVOlp (ORCPT + 90 others); Tue, 22 Nov 2022 09:41:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233058AbiKVOlj (ORCPT ); Tue, 22 Nov 2022 09:41:39 -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 195286B21D for ; Tue, 22 Nov 2022 06:41:37 -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 B95F21F85D; Tue, 22 Nov 2022 14:41:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1669128095; 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=LmN1hwBs4+4uTRkpp4eNPSMHGUAlw5RApBOUSqclOpE=; b=cJv41sKF6Vg9wsPD41beCiNeYxTaW11IO3hDU5UrYISuaUr42uKJqjZxNlmWnnSrdyMrhz jrpQGqM1U7GifY2v4h69cgGWfx08c4i9DfpmDe/8vicjzpAsIPdUTURgICFEIBggBPLXvm 5wD/a6iaEm4MJ5gr1jOeK0kAFWYr9cY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1669128095; 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=LmN1hwBs4+4uTRkpp4eNPSMHGUAlw5RApBOUSqclOpE=; b=J5Zo1Tta+a6RkSwZizIk9ZqKU3vBjVfZkGzOmoALJBGsReW2wnfy87ABaGYhPWLKRaSwJW x9TfPawEZ+9KN3BA== 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 708B213AA1; Tue, 22 Nov 2022 14:41:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id iknKGZ/ffGMFegAAMHmgww (envelope-from ); Tue, 22 Nov 2022 14:41:35 +0000 Date: Tue, 22 Nov 2022 15:41:34 +0100 From: Jean Delvare To: LKML Cc: Lee Jones , Bartosz Golaszewski , Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Luca Ceresoli , "Jonathan =?UTF-8?B?TmV1c2Now6RmZXI=?=" Subject: [PATCH] mfd: Drop obsolete dependencies on COMPILE_TEST Message-ID: <20221122154134.58a7a18b@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=UTF-8 Content-Transfer-Encoding: quoted-printable 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. As a minor optimization, this also lets us drop of_match_ptr(), as we now know what it will resolve to, we might as well save cpp some work. Signed-off-by: Jean Delvare Cc: Lee Jones Cc: Bartosz Golaszewski Cc: Chanwoo Choi Cc: Krzysztof Kozlowski Cc: Bartlomiej Zolnierkiewicz Cc: Luca Ceresoli Cc: "Jonathan Neusch=C3=A4fer" --- drivers/mfd/Kconfig | 16 ++++++++-------- drivers/mfd/motorola-cpcap.c | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) --- linux-6.0.orig/drivers/mfd/Kconfig +++ linux-6.0/drivers/mfd/Kconfig @@ -794,7 +794,7 @@ config MFD_MAX14577 config MFD_MAX77620 bool "Maxim Semiconductor MAX77620 and MAX20024 PMIC Support" depends on I2C=3Dy - depends on OF || COMPILE_TEST + depends on OF select MFD_CORE select REGMAP_I2C select REGMAP_IRQ @@ -809,7 +809,7 @@ config MFD_MAX77620 config MFD_MAX77650 tristate "Maxim MAX77650/77651 PMIC Support" depends on I2C - depends on OF || COMPILE_TEST + depends on OF select MFD_CORE select REGMAP_I2C select REGMAP_IRQ @@ -824,7 +824,7 @@ config MFD_MAX77650 config MFD_MAX77686 tristate "Maxim Semiconductor MAX77686/802 PMIC Support" depends on I2C - depends on OF || COMPILE_TEST + depends on OF select MFD_CORE select REGMAP_I2C select REGMAP_IRQ @@ -853,7 +853,7 @@ config MFD_MAX77693 config MFD_MAX77714 tristate "Maxim Semiconductor MAX77714 PMIC Support" depends on I2C - depends on OF || COMPILE_TEST + depends on OF select MFD_CORE select REGMAP_I2C help @@ -973,7 +973,7 @@ config EZX_PCAP config MFD_CPCAP tristate "Support for Motorola CPCAP" depends on SPI - depends on OF || COMPILE_TEST + depends on OF select MFD_CORE select REGMAP_SPI select REGMAP_IRQ @@ -998,7 +998,7 @@ config MFD_VIPERBOARD =20 config MFD_NTXEC tristate "Netronix embedded controller (EC)" - depends on OF || COMPILE_TEST + depends on OF depends on I2C select REGMAP_I2C select MFD_CORE @@ -1172,7 +1172,7 @@ config MFD_RN5T618 config MFD_SEC_CORE tristate "Samsung Electronics PMIC Series Support" depends on I2C=3Dy - depends on OF || COMPILE_TEST + depends on OF select MFD_CORE select REGMAP_I2C select REGMAP_IRQ @@ -2018,7 +2018,7 @@ config MFD_STPMIC1 config MFD_STMFX tristate "Support for STMicroelectronics Multi-Function eXpander (STMFX)" depends on I2C - depends on OF || COMPILE_TEST + depends on OF select MFD_CORE select REGMAP_I2C help --- linux-6.0.orig/drivers/mfd/motorola-cpcap.c +++ linux-6.0/drivers/mfd/motorola-cpcap.c @@ -296,7 +296,7 @@ static int cpcap_probe(struct spi_device struct cpcap_ddata *cpcap; int ret; =20 - match =3D of_match_device(of_match_ptr(cpcap_of_match), &spi->dev); + match =3D of_match_device(cpcap_of_match, &spi->dev); if (!match) return -ENODEV; =20 --=20 Jean Delvare SUSE L3 Support