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 ECE1BEE49AD for ; Wed, 23 Aug 2023 02:22:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 739DA280056; Tue, 22 Aug 2023 22:22:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6EAE0940007; Tue, 22 Aug 2023 22:22:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5DAAF280056; Tue, 22 Aug 2023 22:22:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 4E9A4940007 for ; Tue, 22 Aug 2023 22:22:56 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 0FC9A140509 for ; Wed, 23 Aug 2023 02:22:56 +0000 (UTC) X-FDA: 81153771552.23.213A31C Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by imf27.hostedemail.com (Postfix) with ESMTP id F2FE140009 for ; Wed, 23 Aug 2023 02:22:52 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=T9yt8C6E; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692757373; 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=tmC+O8Z/aqcgxjAY0m8uqlXG9Ahf+jLfY476X/naDoY=; b=VSxxKmUlzL6KZv2VmWhcnsXGRxn+j3cuL+3YTv9AAuBAxshHdtW5hfBePZ0PGKe3swBQtb KBylfBt2irETzZs3S2/oubYR9YJbZ1xgcapVgUKUY2JTbzoLnCC+a0LmSFORAE0GU81vwO B88AwQ2fbS8PNz+tgDKkAL/sIg/MVeg= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=T9yt8C6E; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692757373; a=rsa-sha256; cv=none; b=FAJpQGiRAkS5buAwm17vw4WY10cVmo7Rbnhzm5+R7VCp5wOh2zmwnoZNA+oEr01hK1N1ps 0yMmZHqkthL8f355G0fmH4Yr76PbSrHLDIoUX9kxRAXkkB4/q+onFBJXNB3hhIzoSGFU1G 7z87mjAeYt0aCoI7RHJ1wIL8aTDNoyc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692757371; x=1724293371; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=OD8bw0wTF/Q2WB/5GNSQYtkOlHoA6snsT+zGEzUo0v0=; b=T9yt8C6EPG5rEhB3/ycHKiyRfANjgWNoH58YuALYbWuQTtVsgheitPTP fbEB7Rnd1NYYp2TbWJTy6ndKDpgHg4hcrHvI78nCpzdsJIORB5Mr6rT+T ktNemAAXCsaDQZ1C40y5q6kIdtVK9vdAjqsNE8Gt7TY3g/J9CRGQYiRd6 xEF4Ezwq9bGcW7nAa6x2Esguy0AZNSki/P3ygYE04hH+HmiZBUAg0ZUTG hQAqLXVXEVEUMvWkCy/WT9Km5kU5/OckmVFkQR0GI304PhzWT0Jcq+IXi hYtK3JQD7LwZjG0Vyoilq22b7nOlnwf/3DCHuoe69GgCqCcXdPfmC1pLn Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10810"; a="377802015" X-IronPort-AV: E=Sophos;i="6.01,194,1684825200"; d="scan'208";a="377802015" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2023 19:22:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.01,202,1684825200"; d="scan'208";a="880211027" Received: from lkp-server02.sh.intel.com (HELO daf8bb0a381d) ([10.239.97.151]) by fmsmga001.fm.intel.com with ESMTP; 22 Aug 2023 19:22:51 -0700 Received: from kbuild by daf8bb0a381d with local (Exim 4.96) (envelope-from ) id 1qYdWA-0000kw-0l; Wed, 23 Aug 2023 02:22:46 +0000 Date: Wed, 23 Aug 2023 10:22:31 +0800 From: kernel test robot To: Mateusz Guzik , linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, dennis@kernel.org, tj@kernel.org, cl@linux.com, akpm@linux-foundation.org, shakeelb@google.com, linux-mm@kvack.org, Mateusz Guzik Subject: Re: [PATCH v2 2/2] fork: group allocation of per-cpu counters for mm struct Message-ID: <202308231004.tg0zQ8e9-lkp@intel.com> References: <20230822184152.2194558-3-mjguzik@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230822184152.2194558-3-mjguzik@gmail.com> X-Rspamd-Queue-Id: F2FE140009 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: gzdurr8a8jdryfm3fr8mz5s3qsj311ij X-HE-Tag: 1692757372-67970 X-HE-Meta: U2FsdGVkX1+LfRlZLOUlQr2L4safQRdMtDSFFVS9zNbQLgfzm+lOLr+v/c1543X2zVaTRJ2tMbfI9j6oA8WAUNEZFqn5vjkbibVyA66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KN2C5JbVGA1uv4MW8PBfLE1AVb+JqMYgF5vSziG/qLKStUoayG1lxpz50T+c0q4Kh9+WvdHQkYG0rjb8E+Q4uWawNESbQU+tPQpKarWF6YTxFw92JuR+hThGy2peWYA4Xa8oIH7f5hb3wxex+0Pi8sBsJAPu3vjTiej34FN3DHfRuLca+up1yIr3utDfDM4KlXM= 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 Mateusz, kernel test robot noticed the following build errors: [auto build test ERROR on dennis-percpu/for-next] [also build test ERROR on linus/master v6.5-rc7 next-20230822] [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/Mateusz-Guzik/pcpcntr-add-group-allocation-free/20230823-024312 base: https://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu.git for-next patch link: https://lore.kernel.org/r/20230822184152.2194558-3-mjguzik%40gmail.com patch subject: [PATCH v2 2/2] fork: group allocation of per-cpu counters for mm struct config: um-allyesconfig (https://download.01.org/0day-ci/archive/20230823/202308231004.tg0zQ8e9-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce: (https://download.01.org/0day-ci/archive/20230823/202308231004.tg0zQ8e9-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/202308231004.tg0zQ8e9-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from kernel/fork.c:34: In file included from include/linux/mempolicy.h:15: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from kernel/fork.c:34: In file included from include/linux/mempolicy.h:15: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from kernel/fork.c:34: In file included from include/linux/mempolicy.h:15: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:692:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:700:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:708:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:717:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:726:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:735:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ >> kernel/fork.c:926:2: error: implicit declaration of function 'percpu_counter_destroy_many' is invalid in C99 [-Werror,-Wimplicit-function-declaration] percpu_counter_destroy_many(mm->rss_stat, NR_MM_COUNTERS); ^ kernel/fork.c:926:2: note: did you mean 'percpu_counter_destroy'? include/linux/percpu_counter.h:136:20: note: 'percpu_counter_destroy' declared here static inline void percpu_counter_destroy(struct percpu_counter *fbc) ^ >> kernel/fork.c:1299:6: error: implicit declaration of function 'percpu_counter_init_many' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (percpu_counter_init_many(mm->rss_stat, 0, GFP_KERNEL_ACCOUNT, NR_MM_COUNTERS)) ^ kernel/fork.c:1299:6: note: did you mean 'percpu_counter_init'? include/linux/percpu_counter.h:129:19: note: 'percpu_counter_init' declared here static inline int percpu_counter_init(struct percpu_counter *fbc, s64 amount, ^ 12 warnings and 2 errors generated. vim +/percpu_counter_destroy_many +926 kernel/fork.c 904 905 /* 906 * Called when the last reference to the mm 907 * is dropped: either by a lazy thread or by 908 * mmput. Free the page directory and the mm. 909 */ 910 void __mmdrop(struct mm_struct *mm) 911 { 912 BUG_ON(mm == &init_mm); 913 WARN_ON_ONCE(mm == current->mm); 914 915 /* Ensure no CPUs are using this as their lazy tlb mm */ 916 cleanup_lazy_tlbs(mm); 917 918 WARN_ON_ONCE(mm == current->active_mm); 919 mm_free_pgd(mm); 920 destroy_context(mm); 921 mmu_notifier_subscriptions_destroy(mm); 922 check_mm(mm); 923 put_user_ns(mm->user_ns); 924 mm_pasid_drop(mm); 925 mm_destroy_cid(mm); > 926 percpu_counter_destroy_many(mm->rss_stat, NR_MM_COUNTERS); 927 928 free_mm(mm); 929 } 930 EXPORT_SYMBOL_GPL(__mmdrop); 931 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki