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 C4A38C04FE1 for ; Tue, 25 Jul 2023 23:34:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DC6CA6B0071; Tue, 25 Jul 2023 19:34:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D766F6B0074; Tue, 25 Jul 2023 19:34:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C3D4C6B0075; Tue, 25 Jul 2023 19:34:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id B42806B0071 for ; Tue, 25 Jul 2023 19:34:52 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 826C440840 for ; Tue, 25 Jul 2023 23:34:52 +0000 (UTC) X-FDA: 81051741624.29.062A87C Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by imf07.hostedemail.com (Postfix) with ESMTP id 7B32B40013 for ; Tue, 25 Jul 2023 23:34:48 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=llU5kCYt; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690328089; a=rsa-sha256; cv=none; b=SYEBWbr8FY+nkE3xNtvA8lEP+PM3/jy+8HDJht4FPTXKlcPZ9g3bJRkz+u2v17yrHhmj4Z X6RuRkgj2ifTIz0LKLSNzuRjQnyeclgJpGcZGunQ7Z981Pu8A/2o8VbmRvovViqOSTO4xv fFHg/nZKyrX6JoBuR6v0FkA78zhEGls= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=llU5kCYt; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690328089; 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=gz14WlAa1njtz/6vZuaPpxBO2QrFGSHaSUwEs7akSgg=; b=1ASpvZhiF2qjCFqgAFbOmQgiz7588CYEgWM05wI53zSw2MrsG2fk0txVVYWQSc/QGl+gsA WkqC6wacapv4NHzk6d7nUqPxXRg84KDIEUahvyz2JOJ8RUZI8Hn5Xq4ZiMYPumotjrZSkJ 28ZV91q8h/2X1XcukhiRn/0LPX7AaLg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690328088; x=1721864088; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=C5xyKe5/WjYZUNBE8/1FHjpgxl/fMdUuo5xkgVP7J8Y=; b=llU5kCYtLQnZLIJR0scDnTIO/3NrSU5tj7KJY6h16C96omieHlkNWJZV JezKNRMLgTxi6jKIuYdvmyX38RXIS6qP7cR3jMwaCnyG9u10YiZ86HCQZ K8Y352ee88kFxUUplYUPB14kef9LnqIQYf3Gvg9B2l/IwUMWKNDhWkk6c LDZ+B9laiCyArddliNRja8Jqx2hVxVmV+LHLt56sQ+DzfGNC54xWD/JxL BDx6Q0NsT/lqjFJEi3gTIPk6QRIxH2VPrIcSxxSJLe8cMQ7uOHmZnLqhS 7EqPXudwSowMaQTKjdpav7nL52IceoVXoklaCf6ZGXYBWnexe23AEx8lU A==; X-IronPort-AV: E=McAfee;i="6600,9927,10782"; a="366747683" X-IronPort-AV: E=Sophos;i="6.01,231,1684825200"; d="scan'208";a="366747683" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2023 16:34:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10782"; a="755945611" X-IronPort-AV: E=Sophos;i="6.01,231,1684825200"; d="scan'208";a="755945611" Received: from lkp-server02.sh.intel.com (HELO 953e8cd98f7d) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 25 Jul 2023 16:34:40 -0700 Received: from kbuild by 953e8cd98f7d with local (Exim 4.96) (envelope-from ) id 1qORY7-0000Qn-2W; Tue, 25 Jul 2023 23:34:39 +0000 Date: Wed, 26 Jul 2023 07:33:59 +0800 From: kernel test robot To: "Vishal Moola (Oracle)" , Andrew Morton , Matthew Wilcox Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, xen-devel@lists.xenproject.org, kvm@vger.kernel.org, Hugh Dickins , "Vishal Moola (Oracle)" , Christophe Leroy , Mike Rapoport Subject: Re: [PATCH mm-unstable v7 12/31] powerpc: Convert various functions to use ptdescs Message-ID: <202307260706.qNPJSnjR-lkp@intel.com> References: <20230725042051.36691-13-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230725042051.36691-13-vishal.moola@gmail.com> X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 7B32B40013 X-Stat-Signature: udpqwngrpobjogk7xah3oxix1oq6pq3j X-Rspam-User: X-HE-Tag: 1690328088-529161 X-HE-Meta: U2FsdGVkX1/B1S3VIG4i42C8DqRwsoD3aJiHajjSpQnykoy+icpJKz96HBZqLYdie4VGg7NFhyhb2SKP87jodnBnZPpTsYBy9so/9bD1+BdKvf36hwA2OpMWiNdAMy6tMvG37PfCBamuLjgorag6lpmQSB5URYE18uQOcQu4A6gZ4NOvrgkvAmKOFU+6wCtfc9El6COwkPVUtmWA9nhBVxqkX8vdIEKN5Mc0w99Ol1zbVa40TovkLK5hfC/4RpNK1fTAaxXWWm7IVfIr0cnFvsdPkxLDUSfORdKLP1UWTu+ZXTQVqXN5gobqokhLhsKRNfXcgeoWcQJ4ttoeiAM/ePj9HjCu62WhpA3eR3jGY9ngP3ycPXCqt5VneUUWEs2im7mchjufxNfHSZeexNOAJq4jOzLj3ho5ZkKtzKQL3Nb1jdC1YuLSUP1N8lp9KHYbmfsoyQIUuOFqIFxcPrj4WzcxTFQJhpA0+6/XM1bP4f7NDysFwGg2vX5OP8hZjaM51O/6+j0GmoNMe2eCS6VkU4so94XM2lY2auiCqlC8EQ7s2sLsVslVY6JO6zjCqFBrAf5OsKUf/6sXAApf97uY9sod1cJuQUeNrgxvJX0RezTeW6rodii9b/jiYEmEp81KycawP42IFG1Lme2cUdFSEmv8CWpWIfCpLX+80iRKhCzcjA6+9mXtReI3eeG/1LaTasc0THHzOoAOxD6Ylx5WR3c9AV45C4MKhxtXE2ZrMs0SLP+PNBfjXoyxSNDW3whBPd4ktifgHc4kro+LbBneQKrXfGcuC7InLsWspIFZV+nDRV8aLVieTdI3Uu5P/acOJCggTTpe5s0y6O0qqLQvYy9LsV13esJt5btx/rfQX9DNvgXDBzMEtmpEEF1xaqRypTHYAU8W/M8k/X4Gb4agWykdnpnYtsEp7wIBLxsKaBwKcruaFdxt2rXiYiNMwv05enh89fVKR7PQdAC1avN +pb23Joi SVy2zqaL52ZY4tARMjIX5juVO9FcaqVRV0lVo54j3Il/UXCIvQ1GHFD75y5kyZYLZlD7ji2PGinvy65XKD8FEfluzvNEhTQiYM6oYghj/8zGG05vbUzMu709yHDuH5wJPv/o2dZ2lZ0uPdW5/Lb8pO1WXg/OOztex99ZhXovnhgjWlN4NWmgOSQOStwOogsxjiDzdPh9OH73K7+aGBOGQNZvwWXRFI7+drti6wqLfClNB2uuUyfLumN7MqGdqVuWgxI3rAnhvZLrAE2rpHEq4oQADWyYKdp93ybxILOItSyhvCt7N9hz4bQGmUQWk6KIM2pW1knq6+iLysYeLqSaLjBrloUODXuykKtR1dIGEhG6TIb4rO0aKUck+RMky9o3wCUu2SEk/Nl1qOMJAqGtfn/UZNWb4EBQK2OgHaDSx5aOX4yJkvbIRMLaRqLASYxGw/yNpL1r/3ZeVdYYpv6nOBM6wZw== 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 Vishal, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] [also build test ERROR on next-20230725] [cannot apply to powerpc/next powerpc/fixes s390/features geert-m68k/for-next geert-m68k/for-linus linus/master v6.5-rc3] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Vishal-Moola-Oracle/mm-Add-PAGE_TYPE_OP-folio-functions/20230725-122458 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20230725042051.36691-13-vishal.moola%40gmail.com patch subject: [PATCH mm-unstable v7 12/31] powerpc: Convert various functions to use ptdescs config: powerpc-randconfig-r034-20230725 (https://download.01.org/0day-ci/archive/20230726/202307260706.qNPJSnjR-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/20230726/202307260706.qNPJSnjR-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/202307260706.qNPJSnjR-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/powerpc/mm/pgtable-frag.c:12: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:672: arch/powerpc/include/asm/io-defs.h:45:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic] 45 | DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 46 | (p, b, c), pio, p) | ~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:669:3: note: expanded from macro 'DEF_PCI_AC_NORET' 669 | __do_##name al; \ | ^~~~~~~~~~~~~~ :40:1: note: expanded from here 40 | __do_insw | ^ arch/powerpc/include/asm/io.h:610:56: note: expanded from macro '__do_insw' 610 | #define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) | ~~~~~~~~~~~~~~~~~~~~~^ In file included from arch/powerpc/mm/pgtable-frag.c:12: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:672: arch/powerpc/include/asm/io-defs.h:47:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic] 47 | DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 48 | (p, b, c), pio, p) | ~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:669:3: note: expanded from macro 'DEF_PCI_AC_NORET' 669 | __do_##name al; \ | ^~~~~~~~~~~~~~ :42:1: note: expanded from here 42 | __do_insl | ^ arch/powerpc/include/asm/io.h:611:56: note: expanded from macro '__do_insl' 611 | #define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) | ~~~~~~~~~~~~~~~~~~~~~^ In file included from arch/powerpc/mm/pgtable-frag.c:12: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:672: arch/powerpc/include/asm/io-defs.h:49:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic] 49 | DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 50 | (p, b, c), pio, p) | ~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:669:3: note: expanded from macro 'DEF_PCI_AC_NORET' 669 | __do_##name al; \ | ^~~~~~~~~~~~~~ :44:1: note: expanded from here 44 | __do_outsb | ^ arch/powerpc/include/asm/io.h:612:58: note: expanded from macro '__do_outsb' 612 | #define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) | ~~~~~~~~~~~~~~~~~~~~~^ In file included from arch/powerpc/mm/pgtable-frag.c:12: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:672: arch/powerpc/include/asm/io-defs.h:51:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic] 51 | DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 52 | (p, b, c), pio, p) | ~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:669:3: note: expanded from macro 'DEF_PCI_AC_NORET' 669 | __do_##name al; \ | ^~~~~~~~~~~~~~ :46:1: note: expanded from here 46 | __do_outsw | ^ arch/powerpc/include/asm/io.h:613:58: note: expanded from macro '__do_outsw' 613 | #define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) | ~~~~~~~~~~~~~~~~~~~~~^ In file included from arch/powerpc/mm/pgtable-frag.c:12: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:672: arch/powerpc/include/asm/io-defs.h:53:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic] 53 | DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 54 | (p, b, c), pio, p) | ~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:669:3: note: expanded from macro 'DEF_PCI_AC_NORET' 669 | __do_##name al; \ | ^~~~~~~~~~~~~~ :48:1: note: expanded from here 48 | __do_outsl | ^ arch/powerpc/include/asm/io.h:614:58: note: expanded from macro '__do_outsl' 614 | #define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) | ~~~~~~~~~~~~~~~~~~~~~^ >> arch/powerpc/mm/pgtable-frag.c:125:22: error: use of undeclared identifier 'page' 125 | BUG_ON(atomic_read(&page->pt_frag_refcount) <= 0); | ^ 7 errors generated. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for HOTPLUG_CPU Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n]) Selected by [y]: - PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y] vim +/page +125 arch/powerpc/mm/pgtable-frag.c 0203dd58d897cbd Hugh Dickins 2023-07-11 117 a95d133c8643cae Christophe Leroy 2018-11-29 118 void pte_fragment_free(unsigned long *table, int kernel) a95d133c8643cae Christophe Leroy 2018-11-29 119 { e18a6b21f4c0c0c Vishal Moola (Oracle 2023-07-24 120) struct ptdesc *ptdesc = virt_to_ptdesc(table); a95d133c8643cae Christophe Leroy 2018-11-29 121 e18a6b21f4c0c0c Vishal Moola (Oracle 2023-07-24 122) if (pagetable_is_reserved(ptdesc)) e18a6b21f4c0c0c Vishal Moola (Oracle 2023-07-24 123) return free_reserved_ptdesc(ptdesc); 645d5ce2f7d6cb4 Aneesh Kumar K.V 2020-07-09 124 a95d133c8643cae Christophe Leroy 2018-11-29 @125 BUG_ON(atomic_read(&page->pt_frag_refcount) <= 0); e18a6b21f4c0c0c Vishal Moola (Oracle 2023-07-24 126) if (atomic_dec_and_test(&ptdesc->pt_frag_refcount)) { 0203dd58d897cbd Hugh Dickins 2023-07-11 127 if (kernel) e18a6b21f4c0c0c Vishal Moola (Oracle 2023-07-24 128) pagetable_free(ptdesc); e18a6b21f4c0c0c Vishal Moola (Oracle 2023-07-24 129) else if (folio_test_clear_active(ptdesc_folio(ptdesc))) e18a6b21f4c0c0c Vishal Moola (Oracle 2023-07-24 130) call_rcu(&ptdesc->pt_rcu_head, pte_free_now); 0203dd58d897cbd Hugh Dickins 2023-07-11 131 else e18a6b21f4c0c0c Vishal Moola (Oracle 2023-07-24 132) pte_free_now(&ptdesc->pt_rcu_head); 0203dd58d897cbd Hugh Dickins 2023-07-11 133 } a95d133c8643cae Christophe Leroy 2018-11-29 134 } 0203dd58d897cbd Hugh Dickins 2023-07-11 135 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki