From mboxrd@z Thu Jan 1 00:00:00 1970 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 B9AF0EB64DC for ; Fri, 7 Jul 2023 01:15:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CA4878D0002; Thu, 6 Jul 2023 21:15:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C54258D0001; Thu, 6 Jul 2023 21:15:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AF4628D0002; Thu, 6 Jul 2023 21:15:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 9BDAA8D0001 for ; Thu, 6 Jul 2023 21:15:49 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 6142B1C7F76 for ; Fri, 7 Jul 2023 01:15:49 +0000 (UTC) X-FDA: 80983048818.18.27C9C9C Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf18.hostedemail.com (Postfix) with ESMTP id 83D8C1C0011 for ; Fri, 7 Jul 2023 01:15:46 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=bmi77KZv; spf=pass (imf18.hostedemail.com: domain of bhe@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688692546; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=2io8AIzSMd9wwAQZPfbZcscAtVofF1NxMXwmdTfkZMI=; b=07SEn3FJHkU4y3F0pfR8eNUCEKg+GN8XwF1Zr29ewFy5At3SFEgxwjsoNt66RYZotkaTcg gi3RDqetAPGHMvycrbWAJKaX4BDjnQWJ5kWr1MnFKzlGkIzW0dB5x+n+MPX50LV0SE27N+ 3yZjEfeb7mJGYR3GPWa55Zi+HHULdSY= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688692546; a=rsa-sha256; cv=none; b=eyPUgmt4PcmzJT/3ki5fRunYcVoQG2ck7d15R71CdCGZ3Vark6SGeotVOTPeIETdWWIIae tJA7WmiutB4AODW3/Xcf0mHWLR7QxNvhadxVtgXBhaN6UZs0LCpSLFnxCTGg8OzvGr3Jic PTHHtIzBtNoRd6PWnUYDynHK+uhfXec= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=bmi77KZv; spf=pass (imf18.hostedemail.com: domain of bhe@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688692545; 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: in-reply-to:in-reply-to:references:references; bh=2io8AIzSMd9wwAQZPfbZcscAtVofF1NxMXwmdTfkZMI=; b=bmi77KZvCwLMvNT2B293ImP7O9ee/RTlpK7LrO678orbhZeK5SBs4GiVFQhk7VQPHoj8w4 53eZ4lij6TSePA5NbyliJPNhhUZ7THNBminUzBiN6NunDkBAlZHBSJSm6hFFwqhHmd9hSM vnvqWuMZ9PmX0bsUsRBIp8uFQ0CiQyQ= 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-592-obBqN_cKN8ysfPOLPUvisQ-1; Thu, 06 Jul 2023 21:15:40 -0400 X-MC-Unique: obBqN_cKN8ysfPOLPUvisQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F348628088A0; Fri, 7 Jul 2023 01:15:39 +0000 (UTC) Received: from localhost (ovpn-12-39.pek2.redhat.com [10.72.12.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 394B040C206F; Fri, 7 Jul 2023 01:15:38 +0000 (UTC) Date: Fri, 7 Jul 2023 09:15:35 +0800 From: Baoquan He To: kernel test robot Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List , Niklas Schnelle , Christoph Hellwig , "Mike Rapoport (IBM)" Subject: Re: [akpm-mm:mm-unstable 105/116] drivers/pcmcia/cistpl.c:72:3: error: call to undeclared function 'iounmap'; ISO C99 and later do not support implicit function declarations Message-ID: References: <202307070824.xaZvuODM-lkp@intel.com> MIME-Version: 1.0 In-Reply-To: <202307070824.xaZvuODM-lkp@intel.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 83D8C1C0011 X-Rspam-User: X-Stat-Signature: 17ibsroym9c5eeqbxkkbn1ugx8h4sf61 X-Rspamd-Server: rspam03 X-HE-Tag: 1688692546-152378 X-HE-Meta: U2FsdGVkX1/5E58NkHyFEPadYzUVp8ghIdjAu88oiGGtjvu1G9o2qpByvmn8QXqvt5UJE7XWywpvL2NK5u29XEc7Im2ZX/1q53umvH7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7qemQTyGN2YEnyN90HWc76Qz0IiynnWU065+47GhPkKuP0L9rPPYZB7Lam2wqouDT/oc3Zo4uOZZLJRFQqkvmG3XZTHt2pZnXn3FJQhJjHJBQGLKjEWlt1bPJoe5t2leQua8qr1PnJVW2Z9XiwwjoDS4QjmsGKk+rR0jQyS7PoDbOI8Zzf6DPKOX9rLxPGNYU7V3EA9EH3peG790IIMy3GlpZZEkKrwhdv3YHRS2RzioG9Nsdm2IDt6R21vVQK8fXrVyPnm9+sq9+tcKlnubwHJSA/AAOLaPz25AlGnaIzv+ywmobggIyPjdtt70HJzlLujXBkogPEZR6Lni5dWvjt//ifpCOze1UfPCzEzen4t+11E60Lm2PDVQeyYS30+8U+Nvn0b3gdTFjJLvb9MZX1JeEVteV7mrwYAjHXF0= 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: Hi, On 07/07/23 at 08:45am, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable > head: 347e208de0e407689f4e4c596e9e38deafebe4f2 > commit: c594d5c4b6305a57e15aace4baae6bc88277bf01 [105/116] s390: mm: convert to GENERIC_IOREMAP > config: s390-randconfig-r013-20230707 (https://download.01.org/0day-ci/archive/20230707/202307070824.xaZvuODM-lkp@intel.com/config) > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) > reproduce: (https://download.01.org/0day-ci/archive/20230707/202307070824.xaZvuODM-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202307070824.xaZvuODM-lkp@intel.com/ > > All errors (new ones prefixed by >>): This has nothing to do with my patch. The reported error exists in the current kernel as long as on s390 you set CONFIG_PCI=n and enable driver Kconfig options like PCMCIA, AL_FIC, ALTERA_TSE, etc which invokes ioremap() or devm_ioremap_xx, devm_memremap_xx, etc in driver code. Below patch can fix the one happening in drivers/pcmcia/cistpl.c. I will post patches to fix these I found when addressing lkp reported error. >From c5c23ce60b06d993588d133a7e706ec0283da004 Mon Sep 17 00:00:00 2001 From: Baoquan He Date: Sat, 6 May 2023 19:16:27 +0800 Subject: [PATCH] pcmcia : make PCMCIA depend on HAS_IOMEM Content-type: text/plain 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' Besides, many other Kconfig option, e.g IPWIRELESS, PCMCIA_PCNET, PCMCIA_FMVJ18X, PCMCIA_SMC91C92 which depends on PCMCIA also will fail to build because of the same reason. ERROR: modpost: "iounmap" [drivers/tty/ipwireless/ipwireless.ko] undefined! ERROR: modpost: "ioremap" [drivers/tty/ipwireless/ipwireless.ko] undefined! ERROR: modpost: "iounmap" [drivers/net/ethernet/8390/pcnet_cs.ko] undefined! ERROR: modpost: "ioremap" [drivers/net/ethernet/8390/pcnet_cs.ko] undefined! ERROR: modpost: "iounmap" [drivers/net/ethernet/fujitsu/fmvj18x_cs.ko] undefined! ERROR: modpost: "ioremap" [drivers/net/ethernet/fujitsu/fmvj18x_cs.ko] undefined! ERROR: modpost: "iounmap" [drivers/net/ethernet/smsc/smc91c92_cs.ko] undefined! ERROR: modpost: "ioremap" [drivers/net/ethernet/smsc/smc91c92_cs.ko] undefined! ERROR: modpost: "iounmap" [drivers/net/ethernet/xircom/xirc2ps_cs.ko] undefined! ERROR: modpost: "ioremap" [drivers/net/ethernet/xircom/xirc2ps_cs.ko] undefined! ERROR: modpost: "devm_ioremap" [drivers/net/ethernet/altera/altera_tse.ko] undefined! ERROR: modpost: "iounmap" [drivers/net/arcnet/com90xx.ko] undefined! WARNING: modpost: suppressed 5 unresolved symbol warnings because there were too many) Signed-off-by: Baoquan He Reviewed-by: Niklas Schnelle Acked-by: Arnd Bergmann Reviewed-by: Linus Walleij 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 e72419d7e72e..dddb235dd020 100644 --- a/drivers/pcmcia/Kconfig +++ b/drivers/pcmcia/Kconfig @@ -19,6 +19,7 @@ if PCCARD config PCMCIA tristate "16-bit PCMCIA support" + depends on HAS_IOMEM select CRC32 default y help -- 2.34.1