From patchwork Thu Feb 16 07:34:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 13142678 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4A94C636D7 for ; Thu, 16 Feb 2023 07:34:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9DF526B0071; Thu, 16 Feb 2023 02:34:18 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 98EFE6B0072; Thu, 16 Feb 2023 02:34:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 856B76B0073; Thu, 16 Feb 2023 02:34:18 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 76BFB6B0071 for ; Thu, 16 Feb 2023 02:34:18 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 4433CAB2DF for ; Thu, 16 Feb 2023 07:34:18 +0000 (UTC) X-FDA: 80472341796.22.2A75AC8 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf07.hostedemail.com (Postfix) with ESMTP id 4EA4B40016 for ; Thu, 16 Feb 2023 07:34:15 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=YMVlZVxU; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf07.hostedemail.com: domain of bhe@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=bhe@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1676532856; h=from:from:sender: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: references:dkim-signature; bh=yd5xmOXPZHKVAKlGrDMUmCIduEo2IuFrCSEEq5e9PpQ=; b=ohE0Lox5TKGkxRBVVS37G30Xdnv+LTNJldJ08FkDA2Ar0TfKUOIby86DiCGb+Ha+JZlUEP c2HaQ71xkcAvAZXNZm8QvEnD9fux/G9c3a5VEQZ1n1SLaQHvaH3PpWWdYVN3NG41+ZM2vM lzZ7p5ITjyVwyGe9lYyo2svNF1pTWq4= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=YMVlZVxU; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf07.hostedemail.com: domain of bhe@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=bhe@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676532856; a=rsa-sha256; cv=none; b=8HMCJV+ZmJybeTJHgaN4uDaUIyIftyRWe+KryNvd9CKf6z9WNBfMAptn5aBmKIMDjA88Xy wfgHV0Xv0pEDWUVs/1gIBK9CSTmisNvdDL2GyX3AzTjwBSKTfd9ZDyB/1lIm0J18Byvtk1 RUCR2PW4bGcvLGe9/mUfIE8iOOqlV+g= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676532854; 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; bh=yd5xmOXPZHKVAKlGrDMUmCIduEo2IuFrCSEEq5e9PpQ=; b=YMVlZVxUFIwBrYIuQkgvutnb94xtxW97lx7qPT4eLE62EQTJG2fwdwyC7BlYrW+G+jUmCM Ds65TFE1LN+zbozh51wdLBzTeQQzbk/FNhXgWMVQ82atA2ut5M5MjQCsllxQnpCUKggCft z1xXsCOIm7jmoMDzPxd/QyBMtcitXao= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-158-501f2zoYNpCK8dHrgO7vFQ-1; Thu, 16 Feb 2023 02:34:12 -0500 X-MC-Unique: 501f2zoYNpCK8dHrgO7vFQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 45CE01871CD7; Thu, 16 Feb 2023 07:34:12 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-99.pek2.redhat.com [10.72.12.99]) by smtp.corp.redhat.com (Postfix) with ESMTP id DAFF71415108; Thu, 16 Feb 2023 07:34:06 +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 , Dominik Brodowski , Arnd Bergmann , Jonathan Cameron , Linus Walleij , Thomas Bogendoerfer Subject: [PATCH 1/2] pcmcia : make PCMCIA depend on HAS_IOMEM Date: Thu, 16 Feb 2023 15:34:02 +0800 Message-Id: <20230216073403.451455-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 4EA4B40016 X-Stat-Signature: g4p7cdsbu6cqkmic57o4bewreo3yxi4g X-HE-Tag: 1676532855-337901 X-HE-Meta: U2FsdGVkX18jCZDAi8VUVsJWIlYS+QWzBJgVnMNyg1ynpRHy2W85m5GnkNXekWgf3uX21K+16qnrOA2D5Ekt3GYldE1YCvcY4Lg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iA8PSSHjF/brQNcV/vapmtY0R2Xd4MdXemRq1v19uqXXkMmL6JVGh91kBNAu+GUzEx7url/wwqOpmNpfOrqsYM7BhUAITsQ/Foxj1OXDrt55ov/G7lXENtpuqd478kiMYJYCcZCx75ahc/2pmtL6YiEe5i8A/uqX7Fa/EGLV8sI0Mleh0z8tK16STtM/vb8wMfn9C2p7f+aJ+56/vwLF8QyNO3PqXv4REZTNZ1ZPvjd2VCrrxtSzbgi2Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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' Link: https://lore.kernel.org/all/Y0TcaZD4nB1w+mAQ@MiWiFi-R3L-srv/T/#u Signed-off-by: Baoquan He Cc: Dominik Brodowski Cc: Arnd Bergmann Cc: Jonathan Cameron Cc: Linus Walleij Cc: Thomas Bogendoerfer Reviewed-by: Niklas Schnelle Acked-by: Arnd Bergmann --- drivers/pcmcia/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pcmcia/Kconfig b/drivers/pcmcia/Kconfig index 1525023e49b6..7c412bbe8bbe 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