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 04DFEC6FA83 for ; Mon, 12 Sep 2022 19:29:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8C0C18D0001; Mon, 12 Sep 2022 15:29:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 86F746B0074; Mon, 12 Sep 2022 15:29:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 710908D0001; Mon, 12 Sep 2022 15:29:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 61B896B0073 for ; Mon, 12 Sep 2022 15:29:43 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 455FB121003 for ; Mon, 12 Sep 2022 19:29:43 +0000 (UTC) X-FDA: 79904423046.07.86BB757 Received: from wnew2-smtp.messagingengine.com (wnew2-smtp.messagingengine.com [64.147.123.27]) by imf18.hostedemail.com (Postfix) with ESMTP id A84841C0094 for ; Mon, 12 Sep 2022 19:29:42 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id 647D42B059D9; Mon, 12 Sep 2022 15:29:40 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute3.internal (MEProxy); Mon, 12 Sep 2022 15:29:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1663010979; x=1663014579; bh=KqYFiTHr9q orhQJ0GAPP7ffgL/jOrPbInqoLSMs4zTI=; b=Ajko3Ys9L2t0t8LfYmPn1jve+4 yATfKKXCjUjMy+1SmjPMJweL8/7iWPOxWdc2buyOOb+bN3I4cwaCOdjIkkxWITO5 JIeEyXcrLpEDy2OFA3y6RPN723lM3BDa078SXJ6zRg9lNvfEl6oOiaIjGPdJis+m QkTqRS/QDQIwk2vxurXq9xRFXx61aHa1q0Y6Az2t0hQ7im+XeZqZMhqdepCwaULG 7IeQVYIwNByojK87HXHMCXeYg+ork6l5rHQPtTAZWztfJBXPiq2XMvB5y/UFqsO9 0SXJs6Wo94KNwuuwoFRsClbNG1II6zznd6SDPwRKyvBRv2t/BQ7MySUi1qaA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1663010979; x=1663014579; bh=KqYFiTHr9qorhQJ0GAPP7ffgL/jO rPbInqoLSMs4zTI=; b=kI7r4Wyg3gJ4cNsRQ3j83NEpvPTY9ZZ3jSgRQhJCkkSt pvBre9v+wbZYpHCbYfh3ldhxX+T5xnLqfsSx3Q4wfYnfdkOuOm3+FQBS588UZshR YVWasdOppTeuh0uXh07wMs3vula0LWsbr0W4d6SgPMu3BTJ88hOWjzzyLUFcL+Hz IiJ8F02boEfKoAnykEC0shURtoGQPCss2dF7/LKdl1aZq9v1U68OLCRalebmUmpR uMNjVk/6yfqfGhqWwFdbtIs8BjKRgQ57SwctAkS1hklhsWgmbyKzqtRqXS2LY1ZQ bnVlc8w0VI6lNCT7X+GeQW7H+LQI8mFPE7MdmzkBpQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeduvddgudegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpedvkedvjeefieeihfdtiedukefggeeftddvgfeljeelvdekfeeuudfftdei veefhfenucffohhmrghinhepkhgvrhhnvghlrdhorhhgpddtuddrohhrghdpghhithhhuh gsuhhsvghrtghonhhtvghnthdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id BFE8FB60086; Mon, 12 Sep 2022 15:29:37 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-929-g09f3e68182-fm-20220908.004-g09f3e681 Mime-Version: 1.0 Message-Id: In-Reply-To: <202209130203.tvgNPt7a-lkp@intel.com> References: <202209130203.tvgNPt7a-lkp@intel.com> Date: Mon, 12 Sep 2022 21:29:16 +0200 From: "Arnd Bergmann" To: "kernel test robot" , "Linus Walleij" Cc: kbuild-all@lists.01.org, "Linux Memory Management List" Subject: Re: [linux-next:master 5820/6679] ERROR: modpost: "ioread64" [drivers/pci/switch/switchtec.ko] undefined! Content-Type: text/plain ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=arndb.de header.s=fm1 header.b=Ajko3Ys9; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=kI7r4Wyg; spf=pass (imf18.hostedemail.com: domain of arnd@arndb.de designates 64.147.123.27 as permitted sender) smtp.mailfrom=arnd@arndb.de; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663010982; a=rsa-sha256; cv=none; b=YGl/6S3ImoyrRxFAWmJMSpHwGlhCTqSDlvOEsy6zgHDldzC/DylC2lBwRgdBl8kVxNow// PWk9/+ETm0f7+wRDPtiDj1ZfXx52JlDCQTCgtihKA6MRK85NAnTjRbsyDqFytTPoSXVUCu TmbjRXtuo8S+BD711+7NwqRZ7hc2KpI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663010982; 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=KqYFiTHr9qorhQJ0GAPP7ffgL/jOrPbInqoLSMs4zTI=; b=dgxhPrVWuxpxiGRxGxncfZZKSIiA9SaUGxm/6pIcUUmXvScJgiv1wOz56tgKEwmc7emYdK dNiSuc3Q0J7lFE9NT1+bcxFxdHieq+PaElJFqweMIl1HBoWj3T/AhhEgTlV4BYerMVe7MY lOauxN5Nf9eGIELHmEEt+N09RWMyDI4= X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: A84841C0094 X-Rspam-User: Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=arndb.de header.s=fm1 header.b=Ajko3Ys9; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=kI7r4Wyg; spf=pass (imf18.hostedemail.com: domain of arnd@arndb.de designates 64.147.123.27 as permitted sender) smtp.mailfrom=arnd@arndb.de; dmarc=none X-Stat-Signature: 4wux6aqqxz9ihisfqx7aufzhe6p4sjg4 X-HE-Tag: 1663010982-472294 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 Mon, Sep 12, 2022, at 8:24 PM, kernel test robot wrote: > tree: > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > master > head: 044b771be9c5de9d817dfafb829d2f049c71c3b4 > commit: 77bfc8bdb5a1cdbcea21daccdf1686e1bfea3db6 [5820/6679] parisc: > Remove 64bit access on 32bit machines > config: parisc-buildonly-randconfig-r005-20220911 > (https://download.01.org/0day-ci/archive/20220913/202209130203.tvgNPt7a-lkp@intel.com/config) > compiler: hppa-linux-gcc (GCC) 12.1.0 > reproduce (this is a W=1 build): > wget > https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross > -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=77bfc8bdb5a1cdbcea21daccdf1686e1bfea3db6 > git remote add linux-next > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout 77bfc8bdb5a1cdbcea21daccdf1686e1bfea3db6 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross > W=1 O=build_dir ARCH=parisc SHELL=/bin/bash > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > > All errors (new ones prefixed by >>, old ones prefixed by <<): > >>> ERROR: modpost: "ioread64" [drivers/pci/switch/switchtec.ko] undefined! Applied this patch on top, thanks for the report! Arnd commit fdc5bebfb66bf0d261818c2df2b01c2a005791fe Author: Arnd Bergmann Date: Mon Sep 12 21:27:19 2022 +0200 parisc: hide ioread64 declaration on 32-bit The definition of ioread64 etc is hidden on 32-bit, but the declaration remained by accident, which led to the generic definition getting left out: ERROR: modpost: "ioread64" [drivers/pci/switch/switchtec.ko] undefined! Hide the declaration and #define under the same #ifdef. Reported-by: kernel test robot Fixes: 77bfc8bdb5a1 ("parisc: Remove 64bit access on 32bit machines") Signed-off-by: Arnd Bergmann diff --git a/arch/parisc/include/asm/io.h b/arch/parisc/include/asm/io.h index 37580ad8d5bd..c05e781be2f5 100644 --- a/arch/parisc/include/asm/io.h +++ b/arch/parisc/include/asm/io.h @@ -227,6 +227,7 @@ extern void outsl (unsigned long port, const void *src, unsigned long count); * value for either 32 or 64 bit mode */ #define F_EXTEND(x) ((unsigned long)((x) | (0xffffffff00000000ULL))) +#ifdef CONFIG_64BIT #define ioread64 ioread64 #define ioread64be ioread64be #define iowrite64 iowrite64 @@ -235,6 +236,7 @@ extern u64 ioread64(const void __iomem *addr); extern u64 ioread64be(const void __iomem *addr); extern void iowrite64(u64 val, void __iomem *addr); extern void iowrite64be(u64 val, void __iomem *addr); +#endif #include /*