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 E541EC4167B for ; Wed, 29 Nov 2023 12:01:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 847EC6B03CE; Wed, 29 Nov 2023 07:01:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7F6A96B03CF; Wed, 29 Nov 2023 07:01:58 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 697876B03D0; Wed, 29 Nov 2023 07:01:58 -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 564666B03CE for ; Wed, 29 Nov 2023 07:01:58 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 16BA24054D for ; Wed, 29 Nov 2023 12:01:58 +0000 (UTC) X-FDA: 81510853116.09.9707B0D Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by imf16.hostedemail.com (Postfix) with ESMTP id 04748180035 for ; Wed, 29 Nov 2023 12:01:55 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=NhWccLeU; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 192.55.52.136 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=1701259316; 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=xhvRFO5oetCoYx0dL0+5YwgM/96QvuWdIiW1dy8thRw=; b=VczPsVnzvEc+i9cZmjDCO8zvq1uPZBRSgSW6ZY3rawTmJF1wODJQTkZaUcmT+QT8NP3X6N EECXCG9lR9NShuQtYW6OHUyHzv/19A9YOwlPSjlyV7rrATo/joUPzBiZ48IWxpZV6Jimdl eFsZIPrfAiF2MsVXy3bXcdSFqXc8Nsw= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701259316; a=rsa-sha256; cv=none; b=DOFgswBNVIpQNIWdNQXicSudttDuP9NALkXd7545FPxo/7ORdKIqSWyJMu/dn2vd+m8UlW tH0AkdlwQUM4MM7+B5YcBVorBIpCCgFym7eLYuN2Jaj+Cdw4StwKaMzDJ01t34xVfDpDQH z7ELn4eAU4X/03U58M7NS2V5AsCpj9I= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=NhWccLeU; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 192.55.52.136 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701259316; x=1732795316; h=date:from:to:cc:subject:message-id:mime-version; bh=b3pn44Kj47LNgObZQbru0FfxwsfemenWCri62eJC3UA=; b=NhWccLeUl6wKl6qW0RCIpVEnFWquApCgPlqqTnISOawDUMHyTONzm7Qz nfw820rDRevOBwjLAWvdSqCy0SifFTrin99SVtt8tnsXCGrQHsnyIOkyD QO75zn0pN4AH7udbf4y12dxhmglAtP96yxL+0Jkk4Jqyzy3lISkVi4FXZ uL0OG94gtD1TkMpGKuXsa8Uol3okvLQ4w8g/9HgGil8ivtmtYF9LT8OFI C/COLFg/auTa/rPAp6GKL52NOMqsNUHh2ItY5jZ3iS8/rkSrQ0XH2rxS5 xmM69Ov+YKI2qoEamn2AxTN10zEtjR31uvgk3DesHp29ka3HPlkbt6I7O g==; X-IronPort-AV: E=McAfee;i="6600,9927,10908"; a="372515844" X-IronPort-AV: E=Sophos;i="6.04,235,1695711600"; d="scan'208";a="372515844" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 04:01:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10908"; a="762295538" X-IronPort-AV: E=Sophos;i="6.04,235,1695711600"; d="scan'208";a="762295538" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 29 Nov 2023 04:01:52 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1r8JGH-0000CE-2f; Wed, 29 Nov 2023 12:01:49 +0000 Date: Wed, 29 Nov 2023 20:01:11 +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:22: warning: pointer/integer type mismatch in conditional expression ('int' and 'void *') Message-ID: <202311291908.1zT6gOHh-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Stat-Signature: ecwi5mqmc6mdr9kp8pmqijn7n55n7q4r X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 04748180035 X-Rspam-User: X-HE-Tag: 1701259315-743025 X-HE-Meta: U2FsdGVkX19k4QUpyp5SDCWdWVR8qgfNQLsSa3d2kYgQ08n8vKNr3kQK/P4UWkDDgUawAPWdJRDhUVKrFVvSxOXksOsGDOV+O2I3iGyLBCMMG1jL4JZbsMMC6dGz9DZXPnP9i5PoXGIm4Hm0xai5QttQtb/Qlq/KwMqOfBZtOBy6HDwDIpSWKlKwo9WqpssLUKRNEiJRtTBEPncrWNqLXsOBFMTGt+IR57W1H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ests=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/202311291908.1zT6gOHh-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/202311291908.1zT6gOHh-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/202311291908.1zT6gOHh-lkp@intel.com/ All warnings (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 +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