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 CF5DCC10DAA for ; Wed, 29 Nov 2023 15:43:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5D3CD6B0252; Wed, 29 Nov 2023 10:43:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 55CB26B0253; Wed, 29 Nov 2023 10:43:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3FD1A6B0288; Wed, 29 Nov 2023 10:43:42 -0500 (EST) 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 245F46B0252 for ; Wed, 29 Nov 2023 10:43:42 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 03BC2A063B for ; Wed, 29 Nov 2023 15:43:41 +0000 (UTC) X-FDA: 81511411884.27.FFF2280 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by imf06.hostedemail.com (Postfix) with ESMTP id 0B199180013 for ; Wed, 29 Nov 2023 15:43:39 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=b+ffLnJR; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 192.198.163.9 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=1701272620; a=rsa-sha256; cv=none; b=Pga/oINCx6GI8SQLcqG0OkjHhSK073YQWkPWfraG3Dqc3N8GlGKDMlmq3f3thRV+zgdBkK nnrU7FiHzm7F130sTsspasD+VDLJ4K529xnCO4eE5dzoSGTGa6h+8bQ/zU89j4yq5ct56w nyVz+KaK5BCAYkGNPiOBvfe/juJgUPg= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=b+ffLnJR; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 192.198.163.9 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=1701272620; 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=3UHSTDBuz4V3qqsCiL6bnkt7Bw9xNCKXHvpbRdpCYqY=; b=7FqhgillEQ6/KgnIUaSYjs9YTDy5BuAOIiWgpfr3hJ4NNoLsQkhyJngT/mObXkidFtHykC HXUi20ERaVqixbl1dFV5R1hET39K7Fy8w1nJi2kLzFQ0bb8PWf0wk6i5RvPV8ClwmmbkOC za6OVGqF5MFq8pxhwJs2e5KTIDUEKgM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701272620; x=1732808620; h=date:from:to:cc:subject:message-id:mime-version; bh=VWDIra9QEQtHs5vyIW5jgXFUXEuNI3B8yOXNlgC2RmQ=; b=b+ffLnJRaWV7q5pfv0Ou9oC1w3D+wLJ1bR9ld3vV+Fbv02t7eoD/rKMQ OOMcJ8fei15KZ35adVH51IgSkW7T3hNXLRFmMRNaDptC2jVwsxaEYvkwf BcglS+jDcJSvCKvKtgJSwigg+vIowoi/+qzlLGKKGmimTgHR/9tgK+miy Hy0UT76GMNzdyTq2b2YLM4FCV9ag7NdYpiUiN5aa3o+L1+vq+TmV+M+Kr lVTz1tekNHXbHMpThcOMGkVNJjk6o3geIR41cGCOTKbozYc0wevOSIxj1 GqLQCh2g7YwrFec8rEUQ+6FE2vH4TCtvjan9lg8pimWCA95gUIkKJ9BwG Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="83290" X-IronPort-AV: E=Sophos;i="6.04,235,1695711600"; d="scan'208";a="83290" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 07:43:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="839470238" X-IronPort-AV: E=Sophos;i="6.04,235,1695711600"; d="scan'208";a="839470238" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga004.fm.intel.com with ESMTP; 29 Nov 2023 07:43:36 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1r8Mis-0000Om-2h; Wed, 29 Nov 2023 15:43:34 +0000 Date: Wed, 29 Nov 2023 23:42:15 +0800 From: kernel test robot To: Domenico Cerasuolo Cc: oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List , Nhat Pham Subject: [akpm-mm:mm-unstable 179/192] mm/zswap.c:298:24: error: call to undeclared function 'obj_cgroup_memcg'; ISO C99 and later do not support implicit function declarations Message-ID: <202311292305.43bnw55s-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 0B199180013 X-Stat-Signature: txuh6gx3g6ibptokndff4y1gwory5xux X-Rspam-User: X-HE-Tag: 1701272619-620778 X-HE-Meta: U2FsdGVkX18U0YOYAmeb6HThxLOmKXtE8lmc19dqP3LntCEhY41bXI4FxmXThZyfiqOnyproUEnsddRaumakuCm2QlQR1zIfdcfFcCDZZ+ZeV067DpVay1ZYKxIiLyI5KwGsg4mHDSH8rOKvFT20GaSnomwLKZlxEVT8XQEo9rcLAMpZBaKvMaAcdS680qyimk8kQoV0++t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Zb9sRMEQlgIpThtZzOW+45s1/Ql1J4/tp4qBcFjFci760QouDdqrrRamisTrHNsYThXWRZmoSrWsSYlEV1od7wzHzBTWgbEY5oAKbjvgzsWMdGozBMg 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/akpm/mm.git mm-unstable head: cb1d236cb1038fa1bbae9913803f1c655b86d931 commit: 70dd375afcfe1839321ea8a65749404a99f0e773 [179/192] zswap: make shrinking memcg-aware config: s390-randconfig-r071-20231129 (https://download.01.org/0day-ci/archive/20231129/202311292305.43bnw55s-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231129/202311292305.43bnw55s-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/202311292305.43bnw55s-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/zswap.c:26: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:78: 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/big_endian.h:37:59: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x)) ^ include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16' #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x)) ^ In file included from mm/zswap.c:26: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:78: 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/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32' #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) ^ In file included from mm/zswap.c:26: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:78: 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); ~~~~~~~~~~ ^ >> mm/zswap.c:298:24: error: call to undeclared function 'obj_cgroup_memcg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] return entry->objcg ? obj_cgroup_memcg(entry->objcg) : NULL; ^ mm/zswap.c:298:24: note: did you mean 'obj_cgroup_put'? include/linux/memcontrol.h:1352:20: note: 'obj_cgroup_put' declared here static inline void obj_cgroup_put(struct obj_cgroup *objcg) ^ mm/zswap.c:298:22: warning: pointer/integer type mismatch in conditional expression ('int' and 'void *') [-Wconditional-type-mismatch] return entry->objcg ? obj_cgroup_memcg(entry->objcg) : NULL; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ >> mm/zswap.c:825:17: error: incomplete definition of type 'struct mem_cgroup' css_get(&memcg->css); ~~~~~^ include/linux/mm_types.h:33:8: note: forward declaration of 'struct mem_cgroup' struct mem_cgroup; ^ 13 warnings and 2 errors generated. vim +/obj_cgroup_memcg +298 mm/zswap.c 294 295 /* should be called under RCU */ 296 static inline struct mem_cgroup *mem_cgroup_from_entry(struct zswap_entry *entry) 297 { > 298 return entry->objcg ? obj_cgroup_memcg(entry->objcg) : NULL; 299 } 300 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki