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 40BC3CF319D for ; Wed, 2 Oct 2024 08:01:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 839B6440184; Wed, 2 Oct 2024 04:01:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7EA4F440175; Wed, 2 Oct 2024 04:01:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 68A46440184; Wed, 2 Oct 2024 04:01:12 -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 3EE36440175 for ; Wed, 2 Oct 2024 04:01:12 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id CDCE01219FC for ; Wed, 2 Oct 2024 08:01:11 +0000 (UTC) X-FDA: 82627916742.12.E7846C5 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by imf14.hostedemail.com (Postfix) with ESMTP id 16AF710001C for ; Wed, 2 Oct 2024 08:01:07 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="n4hqTP/i"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf14.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727855965; a=rsa-sha256; cv=none; b=bz2r1/dKffenCTRmHnD8aIprOqBAVfXalq7Ez/7jcMPZBLiyZAD80DdonO06CbaJYBRQZm rMMre17I8hc7xMQu5uc4wWPVLgf/1N6IBDD1TFMIjGI7zLaECDX/yu/Tqy87jlsRyHNybb +p3/KLVxTJGONxjewJEQAuqNCVncWZM= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="n4hqTP/i"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf14.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 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=1727855965; 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=SHLm2EAdwaLe+M0GyPwzTOywdzVDsx1zMEa+3o6wQFM=; b=qbidRU3sid8tSlO70fPi5/g2p77KsPVAT5cwEQEZMUSj/XUygNQUBUsjtKSwYXnp0/29aI kKx68Gw1UGLfXxFQ75gkBt3jw5IjiLmM6BNa69Ndt5/B0o/gM4sCeo3xMrSnygcYiWDY2+ eDwDTs16VPxU8h6ckfjzx0p07RJ+Yng= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727856068; x=1759392068; h=date:from:to:cc:subject:message-id:mime-version; bh=GnpLxmCrXFnFkyfp0/uRZ4evunqA7x3FwR9mDDGH6B8=; b=n4hqTP/ilrNbe6JwOTyp23eiQTcDfEt1oOm5f80XHh3Txc2NBea883Qv lWoCqbmQ7lIt2M907Mc/LaQpZj3PTpc70N/XkNEDgBIsrkBy8M/5oE7SL djUUnYVzFOkuMc9grChb191t5gUNKO1LrTTQHI8uAGy8PhQCqQwoz5pew 1G3M7pfcjJhIEGWPFSjLCBTawqvKBNZl0H7YhVLqurRvLJBVmRHhP4tkB 5ZEwuvrATj0MACdiPXrYh70LYypMSV8EF+zNpm45EfHMxgybzvYUqJBL6 w6hyRHwyU+RlyiakOybRBsMIQxmqkET/sdps+E14K/WfjmtqdUUF85FcX g==; X-CSE-ConnectionGUID: z/LGDf9eRHCb++Beom8EgQ== X-CSE-MsgGUID: 3TZW6wwkQa+Ge1qitVdbAw== X-IronPort-AV: E=McAfee;i="6700,10204,11212"; a="52418444" X-IronPort-AV: E=Sophos;i="6.11,171,1725346800"; d="scan'208";a="52418444" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Oct 2024 01:01:06 -0700 X-CSE-ConnectionGUID: InD36ZHaQWKgOtt6k2hkCA== X-CSE-MsgGUID: A3OesCW2S2aX4/6hvFaecA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,171,1725346800"; d="scan'208";a="74240141" Received: from lkp-server01.sh.intel.com (HELO 53e96f405c61) ([10.239.97.150]) by fmviesa010.fm.intel.com with ESMTP; 02 Oct 2024 01:01:04 -0700 Received: from kbuild by 53e96f405c61 with local (Exim 4.96) (envelope-from ) id 1svuIA-000RmW-0K; Wed, 02 Oct 2024 08:01:02 +0000 Date: Wed, 2 Oct 2024 16:00:17 +0800 From: kernel test robot To: Nhat Pham Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: mm/zswap.c:744:52: error: 'struct zswap_lruvec_state' has no member named 'nr_disk_swapins' Message-ID: <202410021530.DnNbPqfN-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 16AF710001C X-Stat-Signature: bgiuut8jkmmmedjoq4ymtfs9rgc8dwfr X-Rspam-User: X-HE-Tag: 1727856067-976802 X-HE-Meta: U2FsdGVkX19Jm4zVoremjaMKI/0yM2i05NGYbti3zYAiSIrugz26CrBbulIFPZXHYtspbcXat4dzLcGo8YZTv8YEbPYa0QZyqaXnHN5mS8yjmhdsrBAtZZG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H4yi1qNskYWLIw7I0/Q7AuuTJSnSq8fNqz3O0GXKYLl5vtXHqr2R2YwQmZmQskkH6lU4xkt4JD5pLouekbcU1bYSaj6Q9d3ePiy7IEShiONXiEIXYy4VZsOZtc7/9dEe4Elv5cIL1nRWxdWP9T2vIWhjQ5CRG05VoQrLYLGfguv32LS0K+5w97y98QsqXpBg== 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: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e32cde8d2bd7d251a8f9b434143977ddf13dcec6 commit: e31c38e037621c445bb4393fd77e0a76e6e0899a zswap: implement a second chance algorithm for dynamic zswap shrinker date: 4 weeks ago config: x86_64-randconfig-r133-20240215 (https://download.01.org/0day-ci/archive/20241002/202410021530.DnNbPqfN-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241002/202410021530.DnNbPqfN-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/202410021530.DnNbPqfN-lkp@intel.com/ All errors (new ones prefixed by >>): mm/zswap.c:97:33: error: 'CONFIG_ZSWAP_COMPRESSOR_DEFAULT' undeclared here (not in a function) 97 | static char *zswap_compressor = CONFIG_ZSWAP_COMPRESSOR_DEFAULT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mm/zswap.c:109:33: error: 'CONFIG_ZSWAP_ZPOOL_DEFAULT' undeclared here (not in a function); did you mean 'CONFIG_NR_CPUS_DEFAULT'? 109 | static char *zswap_zpool_type = CONFIG_ZSWAP_ZPOOL_DEFAULT; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | CONFIG_NR_CPUS_DEFAULT mm/zswap.c:132:6: error: redefinition of 'zswap_is_enabled' 132 | bool zswap_is_enabled(void) | ^~~~~~~~~~~~~~~~ In file included from include/linux/mmzone.h:25, from include/linux/gfp.h:7, from include/linux/umh.h:4, from include/linux/kmod.h:9, from include/linux/module.h:17, from mm/zswap.c:16: include/linux/zswap.h:62:20: note: previous definition of 'zswap_is_enabled' with type 'bool(void)' {aka '_Bool(void)'} 62 | static inline bool zswap_is_enabled(void) | ^~~~~~~~~~~~~~~~ mm/zswap.c:137:6: error: redefinition of 'zswap_never_enabled' 137 | bool zswap_never_enabled(void) | ^~~~~~~~~~~~~~~~~~~ include/linux/zswap.h:67:20: note: previous definition of 'zswap_never_enabled' with type 'bool(void)' {aka '_Bool(void)'} 67 | static inline bool zswap_never_enabled(void) | ^~~~~~~~~~~~~~~~~~~ mm/zswap.c: In function 'swap_zswap_tree': mm/zswap.c:244:20: error: 'SWAP_ADDRESS_SPACE_SHIFT' undeclared (first use in this function) 244 | >> SWAP_ADDRESS_SPACE_SHIFT]; | ^~~~~~~~~~~~~~~~~~~~~~~~ mm/zswap.c:244:20: note: each undeclared identifier is reported only once for each function it appears in mm/zswap.c: At top level: mm/zswap.c:489:15: warning: no previous prototype for 'zswap_total_pages' [-Wmissing-prototypes] 489 | unsigned long zswap_total_pages(void) | ^~~~~~~~~~~~~~~~~ mm/zswap.c:742:6: error: redefinition of 'zswap_lruvec_state_init' 742 | void zswap_lruvec_state_init(struct lruvec *lruvec) | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/zswap.h:59:20: note: previous definition of 'zswap_lruvec_state_init' with type 'void(struct lruvec *)' 59 | static inline void zswap_lruvec_state_init(struct lruvec *lruvec) {} | ^~~~~~~~~~~~~~~~~~~~~~~ mm/zswap.c: In function 'zswap_lruvec_state_init': >> mm/zswap.c:744:52: error: 'struct zswap_lruvec_state' has no member named 'nr_disk_swapins' 744 | atomic_long_set(&lruvec->zswap_lruvec_state.nr_disk_swapins, 0); | ^ mm/zswap.c: At top level: mm/zswap.c:747:6: error: redefinition of 'zswap_folio_swapin' 747 | void zswap_folio_swapin(struct folio *folio) | ^~~~~~~~~~~~~~~~~~ include/linux/zswap.h:60:20: note: previous definition of 'zswap_folio_swapin' with type 'void(struct folio *)' 60 | static inline void zswap_folio_swapin(struct folio *folio) {} | ^~~~~~~~~~~~~~~~~~ mm/zswap.c: In function 'zswap_folio_swapin': mm/zswap.c:753:60: error: 'struct zswap_lruvec_state' has no member named 'nr_disk_swapins' 753 | atomic_long_inc(&lruvec->zswap_lruvec_state.nr_disk_swapins); | ^ mm/zswap.c: At top level: mm/zswap.c:767:6: error: redefinition of 'zswap_memcg_offline_cleanup' 767 | void zswap_memcg_offline_cleanup(struct mem_cgroup *memcg) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/zswap.h:58:20: note: previous definition of 'zswap_memcg_offline_cleanup' with type 'void(struct mem_cgroup *)' 58 | static inline void zswap_memcg_offline_cleanup(struct mem_cgroup *memcg) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mm/zswap.c: In function 'zswap_writeback_entry': mm/zswap.c:1029:17: error: implicit declaration of function '__read_swap_cache_async' [-Werror=implicit-function-declaration] 1029 | folio = __read_swap_cache_async(swpentry, GFP_KERNEL, mpol, | ^~~~~~~~~~~~~~~~~~~~~~~ mm/zswap.c:1029:15: warning: assignment to 'struct folio *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1029 | folio = __read_swap_cache_async(swpentry, GFP_KERNEL, mpol, | ^ mm/zswap.c:1065:24: error: 'ZSWPWB' undeclared (first use in this function) 1065 | count_vm_event(ZSWPWB); | ^~~~~~ mm/zswap.c:1078:9: error: implicit declaration of function '__swap_writepage'; did you mean 'swap_writepage'? [-Werror=implicit-function-declaration] 1078 | __swap_writepage(folio, &wbc); | ^~~~~~~~~~~~~~~~ | swap_writepage mm/zswap.c: In function 'zswap_shrinker_count': mm/zswap.c:1218:44: error: 'struct zswap_lruvec_state' has no member named 'nr_disk_swapins' 1218 | &lruvec->zswap_lruvec_state.nr_disk_swapins; | ^ mm/zswap.c: At top level: mm/zswap.c:1458:6: error: redefinition of 'zswap_store' 1458 | bool zswap_store(struct folio *folio) | ^~~~~~~~~~~ include/linux/zswap.h:42:20: note: previous definition of 'zswap_store' with type 'bool(struct folio *)' {aka '_Bool(struct folio *)'} 42 | static inline bool zswap_store(struct folio *folio) | ^~~~~~~~~~~ mm/zswap.c: In function 'zswap_store': mm/zswap.c:1547:42: error: 'ZSWPOUT' undeclared (first use in this function); did you mean 'PSWPOUT'? 1547 | count_objcg_event(objcg, ZSWPOUT); | ^~~~~~~ | PSWPOUT mm/zswap.c: At top level: mm/zswap.c:1597:6: error: redefinition of 'zswap_load' 1597 | bool zswap_load(struct folio *folio) | ^~~~~~~~~~ include/linux/zswap.h:47:20: note: previous definition of 'zswap_load' with type 'bool(struct folio *)' {aka '_Bool(struct folio *)'} 47 | static inline bool zswap_load(struct folio *folio) | ^~~~~~~~~~ mm/zswap.c: In function 'zswap_load': mm/zswap.c:1646:24: error: 'ZSWPIN' undeclared (first use in this function); did you mean 'PSWPIN'? 1646 | count_vm_event(ZSWPIN); | ^~~~~~ | PSWPIN mm/zswap.c: At top level: mm/zswap.c:1659:6: error: redefinition of 'zswap_invalidate' 1659 | void zswap_invalidate(swp_entry_t swp) | ^~~~~~~~~~~~~~~~ include/linux/zswap.h:52:20: note: previous definition of 'zswap_invalidate' with type 'void(swp_entry_t)' 52 | static inline void zswap_invalidate(swp_entry_t swp) {} | ^~~~~~~~~~~~~~~~ mm/zswap.c:1670:5: error: redefinition of 'zswap_swapon' 1670 | int zswap_swapon(int type, unsigned long nr_pages) | ^~~~~~~~~~~~ include/linux/zswap.h:53:19: note: previous definition of 'zswap_swapon' with type 'int(int, long unsigned int)' 53 | static inline int zswap_swapon(int type, unsigned long nr_pages) | ^~~~~~~~~~~~ In file included from include/vdso/const.h:5, from include/linux/const.h:4, from include/linux/list.h:9, from include/linux/module.h:12: mm/zswap.c: In function 'zswap_swapon': mm/zswap.c:1675:37: error: 'SWAP_ADDRESS_SPACE_PAGES' undeclared (first use in this function) 1675 | nr = DIV_ROUND_UP(nr_pages, SWAP_ADDRESS_SPACE_PAGES); | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/linux/const.h:34:46: note: in definition of macro '__KERNEL_DIV_ROUND_UP' 34 | #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) | ^ mm/zswap.c:1675:14: note: in expansion of macro 'DIV_ROUND_UP' 1675 | nr = DIV_ROUND_UP(nr_pages, SWAP_ADDRESS_SPACE_PAGES); | ^~~~~~~~~~~~ mm/zswap.c: At top level: mm/zswap.c:1690:6: error: redefinition of 'zswap_swapoff' 1690 | void zswap_swapoff(int type) | ^~~~~~~~~~~~~ include/linux/zswap.h:57:20: note: previous definition of 'zswap_swapoff' with type 'void(int)' 57 | static inline void zswap_swapoff(int type) {} | ^~~~~~~~~~~~~ mm/zswap.c: In function 'swap_zswap_tree': mm/zswap.c:245:1: warning: control reaches end of non-void function [-Wreturn-type] 245 | } | ^ vim +744 mm/zswap.c 741 742 void zswap_lruvec_state_init(struct lruvec *lruvec) 743 { > 744 atomic_long_set(&lruvec->zswap_lruvec_state.nr_disk_swapins, 0); 745 } 746 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki