From patchwork Sat May 6 11:16:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 90731 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp998476vqo; Sat, 6 May 2023 04:36:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4I10/uzjGRkwplZLXEQJ9j1aF4WD4xvsOa1XxB9ZcgCjgLjOKa3mKG0lSB7+/EQlqOdSdz X-Received: by 2002:a05:6a20:8f1b:b0:ff:98ad:16a4 with SMTP id b27-20020a056a208f1b00b000ff98ad16a4mr1194663pzk.38.1683372990945; Sat, 06 May 2023 04:36:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683372990; cv=none; d=google.com; s=arc-20160816; b=f732a6NjQ8oyN4jRB7E/dNnWU+ei/+vnRfECrpea/AwyHYU0HtOutNFFtp1XnLi/UU 7tIVxO6bQFIFD3gLgzePRZe6VjcJ2vg8uD+xszUNYSgVHElTe1XIxK4OcBt7As+VLaHW TO+fCoJZm+3D7XSkxChLaz9PxYh9Ev7JGJm7JQCx+eMiA5uZTNxQQQhUkc/AABGDl4px vpo0UTwc9Jiigm2cOrb9+uPmOxtTAaJP1G+Z87YuZIHe8zL0dKBLFDwYVunWkZOmg62i 01fVAH46zAkuoL0mjcJOxIwzVkYERlcI/cJU0kLKURwOZ6PC+QW+mp37GAYMd4ELMjaN v7bg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a192-20020a6390c9000000b0052c4e3dafa4si4056374pge.395.2023.05.06.04.36.15; Sat, 06 May 2023 04:36:30 -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 S232203AbjEFLRg (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765144517074699975?= X-GMAIL-MSGID: =?utf-8?q?1765144517074699975?= 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 Reviewed-by: Linus Walleij --- 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