Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4053735pxb; Mon, 8 Feb 2021 06:55:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMqz92yUccM51mb6oBAMJ+jnQe/YMPC23hJG1sLuKRzZXqC7KknpHfB5HEMcRLg53KfpdB X-Received: by 2002:a17:906:f4f:: with SMTP id h15mr17426031ejj.498.1612796127392; Mon, 08 Feb 2021 06:55:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612796127; cv=none; d=google.com; s=arc-20160816; b=wvkm/t32okV0c1FImEtNzdECRB2Z20Lu9MZiaQuGR0fDBJcvmhMivvmTxFSCHGDTvi enDuWAnTn7u6cpDuVIq4UqdRukpkaoKeFidY/kOl/UMGDNziCtaRUuzyhjw/yPM3v96o VPF4cW5jaN+vBioiJBHttgaweB0rkNn8uAHfVdlVPmouzua5U76YvwtfKDectvLiUtwH b5N52j2EhOcN4w/Hfxcu8mDs80JSVTsD9ORe0HF3El5lKn0MTvbtj9L3IuJxifs7jIv4 jF+xhPPDZAdX0qKK8vP1I3O1Ol43rt6FYXLSgQUdf7aNgT6shgvXMnw2AjA9rN649q0H kqHg== 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 :message-id:date:subject:cc:to:from; bh=g4VldCHMYaZNhSpqRe9flRwlJapdrZYdpLAMV0Yxd+8=; b=GgSkGaEhSm17ySV+S7Aa0pjCc+y1UbxEDNG+48noLP4Kb7dAja2m5iY2DqPgX8fciF KvXoSYP4egNoq/EVtDnQAShO1BYxtFRSmgOyTI174KPh8G7+eFYZLAanCflIjqmVa5+M c/cE+Hg1D2mospccevhPbJfZQyKrKUszpcS5SioSBwORVaZlFwbpPeneQvpNXqawY1Og ok0Jlc//VOkbyTI80gjpI4Ek1bpXQgwAvVp/4dEJh0yHvzeTKK/uvy+57guke5kUxAWQ 5fHdR0e/Oi+ArdRNTlnUzd3yS3Rt2iCbgufvxhLW5a2CMDffO5yFjWWWydEINT2pshSP uuXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si1111013eji.611.2021.02.08.06.55.01; Mon, 08 Feb 2021 06:55:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232336AbhBHOxw (ORCPT + 99 others); Mon, 8 Feb 2021 09:53:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233152AbhBHOwo (ORCPT ); Mon, 8 Feb 2021 09:52:44 -0500 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A54BC061786 for ; Mon, 8 Feb 2021 06:51:58 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by michel.telenet-ops.be with bizsmtp id Seru240184C55Sk06eruDq; Mon, 08 Feb 2021 15:51:56 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1l97tK-004eBQ-Ae; Mon, 08 Feb 2021 15:51:54 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1l97tJ-001lok-UC; Mon, 08 Feb 2021 15:51:53 +0100 From: Geert Uytterhoeven To: Anson Huang , Shawn Guo , Sascha Hauer , Linus Walleij , Bartosz Golaszewski Cc: Fabio Estevam , Pengutronix Kernel Team , NXP Linux Team , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] gpio: GPIO_MXS should not default to y, unconditionally Date: Mon, 8 Feb 2021 15:51:53 +0100 Message-Id: <20210208145153.422093-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Merely enabling CONFIG_COMPILE_TEST should not enable additional code. To fix this, restrict the automatic enabling of GPIO_MXS to ARCH_MXS, and ask the user in case of compile-testing. Fixes: 6876ca311bfca5d7 ("gpio: mxs: add COMPILE_TEST support for GPIO_MXS") Signed-off-by: Geert Uytterhoeven --- drivers/gpio/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 5fdf526fe973da38..412728ff2ab45c0d 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -442,8 +442,9 @@ config GPIO_MXC select GENERIC_IRQ_CHIP config GPIO_MXS - def_bool y + bool "Freescale MXS GPIO support" if COMPILE_TEST depends on ARCH_MXS || COMPILE_TEST + default y if ARCH_MXS select GPIO_GENERIC select GENERIC_IRQ_CHIP -- 2.25.1