linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [akpm-mm:mm-unstable 216/222] mm/memcontrol.c:993: warning: Function parameter or struct member 'folio' not described in 'get_mem_cgroup_from_folio'
@ 2024-08-11  0:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-08-11  0:24 UTC (permalink / raw)
  To: Kaiyang Zhao; +Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head:   7d7894afcca68b40bfca49f4d1303167d224919e
commit: 24f8717a5d0bedc9664cf242b14a31c18f9351a6 [216/222] mm,memcg: provide per-cgroup counters for NUMA balancing operations
config: arc-randconfig-002-20240811 (https://download.01.org/0day-ci/archive/20240811/202408110848.pqaWv5zD-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240811/202408110848.pqaWv5zD-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/202408110848.pqaWv5zD-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> mm/memcontrol.c:993: warning: Function parameter or struct member 'folio' not described in 'get_mem_cgroup_from_folio'


vim +993 mm/memcontrol.c

   988	
   989	/**
   990	 * get_mem_cgroup_from_folio - Obtain a reference on a given folio's memcg.
   991	 */
   992	struct mem_cgroup *get_mem_cgroup_from_folio(struct folio *folio)
 > 993	{
   994		struct mem_cgroup *memcg = folio_memcg(folio);
   995	
   996		if (mem_cgroup_disabled())
   997			return NULL;
   998	
   999		rcu_read_lock();
  1000		if (!memcg || WARN_ON_ONCE(!css_tryget(&memcg->css)))
  1001			memcg = root_mem_cgroup;
  1002		rcu_read_unlock();
  1003		return memcg;
  1004	}
  1005	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-08-11  0:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-11  0:24 [akpm-mm:mm-unstable 216/222] mm/memcontrol.c:993: warning: Function parameter or struct member 'folio' not described in 'get_mem_cgroup_from_folio' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox