Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1928937pxu; Tue, 24 Nov 2020 12:18:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJSdJrZJtiNAIy4VB1plLuXEFY9scSrBGHL52EOHjVHfepOIfvTwHQdbUvIZ4BfmZmVBw6 X-Received: by 2002:a05:6402:2da:: with SMTP id b26mr243774edx.176.1606249103443; Tue, 24 Nov 2020 12:18:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606249103; cv=none; d=google.com; s=arc-20160816; b=LKSM95Ro8//rmJw0K7IiHZe8kPDwysV9SnZFmEqj1rOA+EmmBcF0G0mt/qd5ZOhWys b2PaE0AzsbPxBr3q8q1JjuXCCjCbadHxrB5f2Wqef7NqBR9Cn79TCKvWtyqczMP/kxRi 37F52pfLn+cCA60DWS4KKHrWN2bg3Uheqk+aHVvWa1XnPZFEdMvP5hNS+dxMKNJ3gTLM VkiQahDz0ZvlSIIctoFuxx+uA654amYFa3cUlLK3lwt4ve/3ZHgu7xHe2xiCZeNydS/4 MOHOvJa7x+ZGgTgB68fiTNlCDYXWaegjALKQF8yHyGzT37q6UYKYmS/HB9v9mpVBqiJB 86WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=tw8N7GjI44Uqr7n6G+G1bNh16pYcT4jjTLadsyE/9wA=; b=h77efksbQ07guDmtQkPaJuYzbQs9CHuiF6HckMhsgIGrO6iMDw7qS8U16urz/Sy9jy 2Sm+ayozrePnY9PgGx55Rf2bKDqEYncU5JA9M5nlX2IGlamj8i8vZAQtiuIIw0rMb7aA ssmGs4sTX8AcgVd3HvhrufZNc5D9/N+32IkH5n4p/A5b53nElyIgo6UovBo6YbIZvYMh b0T9eVkfWCcapCFlZG4Nbj2mICINP+qJh4X8/0GwJJbhiS0reS081oqM7loF7psFFws5 yST7VbI6PtBIQZWEvTddvZOksxzoAb7s2keX79jrB5p/1N4c3bzjlRKXOT9cDTIbDUMH i02A== 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 e21si9266631ejx.94.2020.11.24.12.17.58; Tue, 24 Nov 2020 12:18:23 -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 S1731050AbgKXJRK (ORCPT + 99 others); Tue, 24 Nov 2020 04:17:10 -0500 Received: from mail.loongson.cn ([114.242.206.163]:54212 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728967AbgKXJRK (ORCPT ); Tue, 24 Nov 2020 04:17:10 -0500 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxmtCQz7xfgOUVAA--.35926S2; Tue, 24 Nov 2020 17:17:04 +0800 (CST) From: Tiezhu Yang To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: [PATCH] pinctrl: at91-pio4: Make PINCTRL_AT91PIO4 depend on HAS_IOMEM to fix build error Date: Tue, 24 Nov 2020 17:17:03 +0800 Message-Id: <1606209423-4742-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9AxmtCQz7xfgOUVAA--.35926S2 X-Coremail-Antispam: 1UD129KBjvdXoW7XrW7Cr4DuFyfZFWfWw48WFg_yoWfZFb_ua yvgrn7JryUCws7Kw1jva1fuFy0ya90gr1xKF1qqa4S9347Xa47t34DWF4kJwn7G3yxGFyq vay8Xr1F9w1jyjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbc8FF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_ Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xII jxv20xvE14v26r106r15McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr 1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7MxkIecxEwVAFwVW8uwCF 04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r 18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vI r41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr 1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAI cVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjfU8iSdDUUUU X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If CONFIG_HAS_IOMEM is not set, devm_platform_ioremap_resource() will be not built in drivers/base/platform.c and then there exists a build error about undefined reference to "devm_platform_ioremap_resource" in pinctrl-at91-pio4.c under COMPILE_TEST and CONFIG_PINCTRL_AT91PIO4, make PINCTRL_AT91PIO4 depend on HAS_IOMEM to fix it. Reported-by: kernel test robot Signed-off-by: Tiezhu Yang --- drivers/pinctrl/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 8150953..d132e1a 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -82,6 +82,7 @@ config PINCTRL_AT91 config PINCTRL_AT91PIO4 bool "AT91 PIO4 pinctrl driver" depends on OF + depends on HAS_IOMEM depends on ARCH_AT91 || COMPILE_TEST select PINMUX select GENERIC_PINCONF -- 2.1.0