linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Domenico Cerasuolo <cerasuolodomenico@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>,
	Nhat Pham <nphamcs@gmail.com>
Subject: [akpm-mm:mm-unstable 179/192] mm/zswap.c:298:62: warning: pointer/integer type mismatch in conditional expression
Date: Thu, 30 Nov 2023 11:54:50 +0800	[thread overview]
Message-ID: <202311300811.B6BZeDjn-lkp@intel.com> (raw)

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: arc-randconfig-001-20231129 (https://download.01.org/0day-ci/archive/20231130/202311300811.B6BZeDjn-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231130/202311300811.B6BZeDjn-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311300811.B6BZeDjn-lkp@intel.com/

All warnings (new ones prefixed by >>):

   mm/zswap.c: In function 'mem_cgroup_from_entry':
   mm/zswap.c:298:31: error: implicit declaration of function 'obj_cgroup_memcg'; did you mean 'obj_cgroup_put'? [-Werror=implicit-function-declaration]
     298 |         return entry->objcg ? obj_cgroup_memcg(entry->objcg) : NULL;
         |                               ^~~~~~~~~~~~~~~~
         |                               obj_cgroup_put
>> mm/zswap.c:298:62: warning: pointer/integer type mismatch in conditional expression
     298 |         return entry->objcg ? obj_cgroup_memcg(entry->objcg) : NULL;
         |                                                              ^
   mm/zswap.c: In function 'shrink_worker':
   mm/zswap.c:825:31: error: invalid use of undefined type 'struct mem_cgroup'
     825 |                 css_get(&memcg->css);
         |                               ^~
   cc1: some warnings being treated as errors


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


                 reply	other threads:[~2023-11-30  3:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202311300811.B6BZeDjn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=cerasuolodomenico@gmail.com \
    --cc=linux-mm@kvack.org \
    --cc=nphamcs@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox