Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2070908rwr; Sat, 6 May 2023 04:28:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7JsQ7hx5OIRW+rbyCoAvXRwX1CEA+Ns3bZLoNvvYCsbcCTgFIedRMUA1+EJShuNWIROi7L X-Received: by 2002:a05:6a00:895:b0:63d:2d99:2e7c with SMTP id q21-20020a056a00089500b0063d2d992e7cmr6924406pfj.0.1683372511755; Sat, 06 May 2023 04:28:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683372511; cv=none; d=google.com; s=arc-20160816; b=aT34PvG3b895Binvp/JH4O3ch7P2soiT6o+tUWZuWZOjILWjFx3fcAh0UGbPTlwuzb G8bPHS55siEGqM9+DPli7KS5XNJZfgfkqrozkwJm67MDLPlDVAedIaduRzASfV+nTH0Y KJ4Zfj2yoNSsSRyiTdXJgw+QtalHchnAcciaZeqfj8UQ2+odcwujO4g+0lgEvLlGXHpY WuZXHiHUErFcowCa5uhkMrFjpSAzpJ11iVTVaeACNpiM8xPGqaQQgvR7ZW2g483oI2H7 OiTIHAhAnUYmNSH65zL3YoPO6OHjvaUtPIfcmLT9wGqEaRmqOm0q153BS1nPGxT53WS7 +HlA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=E1wEOHR70nwmDKawNxBjw3KFzdSZshnG7IqJ/M9Kp70=; b=AxzJmyXsPSXCr2/XmavQ3aoqazSRQLJla6d0vZ1WTx28wFmy+UsAdVW9gXkax8ag0f TCIGGixtBAc1E3FyfuSwUta/BpTSbFLzBf1sCmxQaOWhTHz/HUj3U0FwZhTNEsfcfxJf kHNnsG5zJ67IWIm+Dmla8VvyI/7ELSqkU1XAeIG5dJMPQmvIrBCNVU6FuKKofKLUctNM 2mTJHYNVzLVOyDKK9UIX2t+6yvaLKuDC/axQ01SRxCZEnFrAulCdc99C6W7brf31pdLp Ii77wmb1m0+Obk/ZdLR6sb3nDWtnZnQq/JN9pxHPvpfCSuE5kp0EI2Th6TMlXdT6GSMo IxhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="e85u/vwK"; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020a633301000000b0050fad17282dsi3993791pgz.217.2023.05.06.04.28.17; Sat, 06 May 2023 04:28:31 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b="e85u/vwK"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232082AbjEFLRg (ORCPT + 99 others); Sat, 6 May 2023 07:17:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232128AbjEFLRe (ORCPT ); Sat, 6 May 2023 07:17:34 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C31A111D for ; Sat, 6 May 2023 04:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683371804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E1wEOHR70nwmDKawNxBjw3KFzdSZshnG7IqJ/M9Kp70=; b=e85u/vwKPJjoVf4bYY/vEx61U3bpBpsDTN7vn2FxHQ7V0vvEueTFujPoWWP8ArD7yJieDT 6pYCiO7RxpWQH5YoaV2mhDixq9lMZyxdqMx4rd20xc3IQnAIZSni5SnoY8rmxPTG01PBRN aLdqQnLsdiOBeM8qbu1ZssPjJmFi7qM= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-100-xJcKR7TDM7WPFsDhh4rPaA-1; Sat, 06 May 2023 07:16:41 -0400 X-MC-Unique: xJcKR7TDM7WPFsDhh4rPaA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E598B29A9CA4; Sat, 6 May 2023 11:16:40 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-46.pek2.redhat.com [10.72.12.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id 48EA02166B31; Sat, 6 May 2023 11:16:34 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, schnelle@linux.ibm.com, linux-s390@vger.kernel.org, Baoquan He , Arnd Bergmann , Dominik Brodowski , Jonathan Cameron , Linus Walleij , Thomas Bogendoerfer Subject: [PATCH RESEND 1/2] pcmcia : make PCMCIA depend on HAS_IOMEM Date: Sat, 6 May 2023 19:16:27 +0800 Message-Id: <20230506111628.712316-2-bhe@redhat.com> In-Reply-To: <20230506111628.712316-1-bhe@redhat.com> References: <20230506111628.712316-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On s390 systems (aka mainframes), it has classic channel devices for networking and permanent storage that are currently even more common than PCI devices. Hence it could have a fully functional s390 kernel with CONFIG_PCI=n, then the relevant iomem mapping functions [including ioremap(), devm_ioremap(), etc.] are not available. Here let depend PCMCIA on HAS_IOMEM so that it won't be built to cause below compiling error if PCI is unset. ------------------------------------------------------- ld: drivers/pcmcia/cistpl.o: in function `set_cis_map': cistpl.c:(.text+0x1202): undefined reference to `ioremap' ld: cistpl.c:(.text+0x13b0): undefined reference to `iounmap' ld: cistpl.c:(.text+0x14a6): undefined reference to `iounmap' ld: cistpl.c:(.text+0x1544): undefined reference to `ioremap' ld: drivers/pcmcia/cistpl.o: in function `release_cis_mem': cistpl.c:(.text+0x3f14): undefined reference to `iounmap' Signed-off-by: Baoquan He Reviewed-by: Niklas Schnelle Acked-by: Arnd Bergmann Cc: Dominik Brodowski Cc: Arnd Bergmann Cc: Jonathan Cameron Cc: Linus Walleij Cc: Thomas Bogendoerfer --- drivers/pcmcia/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pcmcia/Kconfig b/drivers/pcmcia/Kconfig index 44c16508ef14..5681b610e954 100644 --- a/drivers/pcmcia/Kconfig +++ b/drivers/pcmcia/Kconfig @@ -20,6 +20,7 @@ if PCCARD config PCMCIA tristate "16-bit PCMCIA support" + depends on HAS_IOMEM select CRC32 default y help -- 2.34.1