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 32710E95A61 for ; Sat, 7 Oct 2023 14:09:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BF0E86B02A5; Sat, 7 Oct 2023 10:09:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BA0F66B02A7; Sat, 7 Oct 2023 10:09:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A68196B02A9; Sat, 7 Oct 2023 10:09:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 93BC16B02A5 for ; Sat, 7 Oct 2023 10:09:10 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 6F2044026B for ; Sat, 7 Oct 2023 14:09:10 +0000 (UTC) X-FDA: 81318847260.27.B24B49C Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by imf05.hostedemail.com (Postfix) with ESMTP id 3DC3B100018 for ; Sat, 7 Oct 2023 14:09:06 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=GTDFuqj8; spf=pass (imf05.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 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=1696687748; 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: references:dkim-signature; bh=gMvVEgA44RmgZ2zJfZvp4HtgN54e46bffNVVVJSnxc8=; b=gC21ygHj+HuOL1bNjlffnNTAq9nG/BLdWPNgZB+l2r5HysHZoYpyE4tiALvx290A1tFfp4 FMFx8L/O7kDEt+dgR3CHqQejuSz0Ycq5/RUHg9DQMfoL2WaeB8P0GOm8M+vB9DFiX9dz7Y 2valXZ3YbHIecKqhaOg6NRYKMp2mqlg= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=GTDFuqj8; spf=pass (imf05.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 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=1696687748; a=rsa-sha256; cv=none; b=XFPz/9MLIJiMw8rlaV6qb+BZ4ChH591TqXouj3r3E02Di3/e7yaQWRdyzoy//+Ji3gjKsn ZiZqqsleHjR0nkHov3CFxVcD6M+/zG8muOaHZRb+X2gO7qtw1ttWrd2EoFxoL9ZJJCq0VU DRwp7U2m0o++r7I0hw6XzwDau3wJB7Y= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696687747; x=1728223747; h=date:from:to:cc:subject:message-id:mime-version; bh=vFXnH8usACxMwET+ea0JtQNom2jtP8MBfVrmKaT3krI=; b=GTDFuqj8UXHxnOYIMlxJAfsNZoY0nmYbghiL+Ky9GZMZk9xWGisM1Zy5 XCeQeWNRCoB5tw6njutqhXTNakPcypLYPWHgi2LroxWAQKBXMDRZGY9H2 wChvHVE1pYQxqodo8THZDNrhk8IsF15ogfthYEJn+9QU43xjfQaU6oD0u xLk1l7yOftb8V74AmBkp1wjA4HeO+XVmjyZ5FvVxxAC2X1Xf8hDNZcC5V ON/Y2HWLIiSQ+zb07WPztFkwg/FfvCRtiIGUqWYG+FDcWiLqOaAFvXjjF b/hYPw2oGwWqKBvDWD8l1mlCxS6IANN3w7lBPnktId9MdFGnGwOkBkgEp A==; X-IronPort-AV: E=McAfee;i="6600,9927,10856"; a="450419977" X-IronPort-AV: E=Sophos;i="6.03,206,1694761200"; d="scan'208";a="450419977" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2023 07:09:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10856"; a="702388542" X-IronPort-AV: E=Sophos;i="6.03,206,1694761200"; d="scan'208";a="702388542" Received: from lkp-server01.sh.intel.com (HELO 8a3a91ad4240) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 07 Oct 2023 07:09:03 -0700 Received: from kbuild by 8a3a91ad4240 with local (Exim 4.96) (envelope-from ) id 1qp7zI-0004R7-2g; Sat, 07 Oct 2023 14:09:00 +0000 Date: Sat, 7 Oct 2023 22:08:25 +0800 From: kernel test robot To: Jiapeng Chong Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List Subject: [akpm-mm:mm-stable 175/204] mm/list_lru.c:98:7: error: call to undeclared function 'list_lru_from_kmem'; ISO C99 and later do not support implicit function declarations Message-ID: <202310072139.CXKkky51-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 3DC3B100018 X-Rspam-User: X-Stat-Signature: t7br5hf1zufnhfqpw9sn9y6aj8txxyfg X-Rspamd-Server: rspam01 X-HE-Tag: 1696687746-906252 X-HE-Meta: U2FsdGVkX19L3btpvpm0Yo8vzk/Q11knB1X8YcJF3RekUQwXg/8gG5PngdYBwm6LNwB8A39Z/ksg/VyoSu9sQKFupnaXbG9SwEFFXc3UORP7lN/BVeSf80h7NwuiETfMgVXtJ+okoI4oevDKHa7vU8VrXN9HK1zQBcsah8rUWeABWlAqo4pMyBUWJ48p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z+b16uFY9Db+xcx0E+uLTU7WCLiSrpio0zzAPfIV4nzCpcmn1o/isc1nGcxMQGWKf2yqFCJXAr8xUoouIAUyRc6bwkD4A/d6I7L0X1hcDL8TW13GMWjClZ2ud/XW7u2mNNPcGdfv+5vBFa2C0VVITuo9IJI3JaId0eftNx4B2nKXH4w9yRkU0ppon7WRvQPAH1LiHB90deF4N2onQXAMoWIBkwglc98p9GxlywcmuvNsYp1tFf+WchiBjXJSDIB3xqmGhrNciaPqoqizDrLpUP 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-stable head: 2b76550922a81fd63e16b81b6b39f1eb19df52f0 commit: a39744c1a652d8847098d9f1a022b50a9ceb3f10 [175/204] mm/list_lru: remove unused function config: um-allnoconfig (https://download.01.org/0day-ci/archive/20231007/202310072139.CXKkky51-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231007/202310072139.CXKkky51-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/202310072139.CXKkky51-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/list_lru.c:14: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: 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] 547 | 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] 560 | 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' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from mm/list_lru.c:14: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: 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] 573 | 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' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from mm/list_lru.c:14: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: 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] 584 | __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] 594 | __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] 604 | __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] 692 | 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] 700 | 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] 708 | 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] 717 | 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] 726 | 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] 735 | writesl(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ >> mm/list_lru.c:98:7: error: call to undeclared function 'list_lru_from_kmem'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 98 | l = list_lru_from_kmem(lru, nid, item, &memcg); | ^ >> mm/list_lru.c:98:5: error: incompatible integer to pointer conversion assigning to 'struct list_lru_one *' from 'int' [-Wint-conversion] 98 | l = list_lru_from_kmem(lru, nid, item, &memcg); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mm/list_lru.c:121:7: error: call to undeclared function 'list_lru_from_kmem'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 121 | l = list_lru_from_kmem(lru, nid, item, NULL); | ^ mm/list_lru.c:121:5: error: incompatible integer to pointer conversion assigning to 'struct list_lru_one *' from 'int' [-Wint-conversion] 121 | l = list_lru_from_kmem(lru, nid, item, NULL); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 12 warnings and 4 errors generated. vim +/list_lru_from_kmem +98 mm/list_lru.c 60d3fd32a7a9da Vladimir Davydov 2015-02-12 88 a38e40824844a5 Dave Chinner 2013-08-28 89 bool list_lru_add(struct list_lru *lru, struct list_head *item) a38e40824844a5 Dave Chinner 2013-08-28 90 { 3b1d58a4c96799 Dave Chinner 2013-08-28 91 int nid = page_to_nid(virt_to_page(item)); 3b1d58a4c96799 Dave Chinner 2013-08-28 92 struct list_lru_node *nlru = &lru->node[nid]; fae91d6d8be5e2 Kirill Tkhai 2018-08-17 93 struct mem_cgroup *memcg; 60d3fd32a7a9da Vladimir Davydov 2015-02-12 94 struct list_lru_one *l; 3b1d58a4c96799 Dave Chinner 2013-08-28 95 3b1d58a4c96799 Dave Chinner 2013-08-28 96 spin_lock(&nlru->lock); a38e40824844a5 Dave Chinner 2013-08-28 97 if (list_empty(item)) { 6a6b7b77cc0fdc Muchun Song 2022-03-22 @98 l = list_lru_from_kmem(lru, nid, item, &memcg); 60d3fd32a7a9da Vladimir Davydov 2015-02-12 99 list_add_tail(item, &l->list); fae91d6d8be5e2 Kirill Tkhai 2018-08-17 100 /* Set shrinker bit if the first element was added */ fae91d6d8be5e2 Kirill Tkhai 2018-08-17 101 if (!l->nr_items++) 2bfd36374edd9e Yang Shi 2021-05-04 102 set_shrinker_bit(memcg, nid, fae91d6d8be5e2 Kirill Tkhai 2018-08-17 103 lru_shrinker_id(lru)); 2c80cd57c74339 Sahitya Tummala 2017-07-10 104 nlru->nr_items++; 3b1d58a4c96799 Dave Chinner 2013-08-28 105 spin_unlock(&nlru->lock); a38e40824844a5 Dave Chinner 2013-08-28 106 return true; a38e40824844a5 Dave Chinner 2013-08-28 107 } 3b1d58a4c96799 Dave Chinner 2013-08-28 108 spin_unlock(&nlru->lock); a38e40824844a5 Dave Chinner 2013-08-28 109 return false; a38e40824844a5 Dave Chinner 2013-08-28 110 } a38e40824844a5 Dave Chinner 2013-08-28 111 EXPORT_SYMBOL_GPL(list_lru_add); a38e40824844a5 Dave Chinner 2013-08-28 112 :::::: The code at line 98 was first introduced by commit :::::: 6a6b7b77cc0fdc13f50c66c219c8c05500a8dfce mm: list_lru: transpose the array of per-node per-memcg lru lists :::::: TO: Muchun Song :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki