All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android15-6.6-2026-04 1/1] mm/oom_kill.c:426:6: warning: no previous prototype for function 'dump_tasks'
@ 2026-04-03  8:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-03  8:42 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common android15-6.6-2026-04
head:   1a029ed73e0c73261faa5c9cfc848e08ce285151
commit: 9c79e4cf566128a03f7bec29a8e948b27f0be2fa [1/1] ANDROID: mm: export dump_tasks symbol.
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20260403/202604030019.QPgHdAzI-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260403/202604030019.QPgHdAzI-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/202604030019.QPgHdAzI-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from mm/oom_kill.c:21:
   In file included from include/linux/oom.h:11:
   In file included from include/linux/mm.h:2238:
   include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     508 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     509 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     515 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     516 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     522 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     527 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     528 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     536 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     537 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
>> mm/oom_kill.c:426:6: warning: no previous prototype for function 'dump_tasks' [-Wmissing-prototypes]
     426 | void dump_tasks(struct oom_control *oc)
         |      ^
   mm/oom_kill.c:426:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     426 | void dump_tasks(struct oom_control *oc)
         | ^
         | static 
   6 warnings generated.


vim +/dump_tasks +426 mm/oom_kill.c

   415	
   416	/**
   417	 * dump_tasks - dump current memory state of all system tasks
   418	 * @oc: pointer to struct oom_control
   419	 *
   420	 * Dumps the current memory state of all eligible tasks.  Tasks not in the same
   421	 * memcg, not in the same cpuset, or bound to a disjoint set of mempolicy nodes
   422	 * are not shown.
   423	 * State information includes task's pid, uid, tgid, vm size, rss,
   424	 * pgtables_bytes, swapents, oom_score_adj value, and name.
   425	 */
 > 426	void dump_tasks(struct oom_control *oc)
   427	{
   428		pr_info("Tasks state (memory values in pages):\n");
   429		pr_info("[  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name\n");
   430	
   431		if (is_memcg_oom(oc))
   432			mem_cgroup_scan_tasks(oc->memcg, dump_task, oc);
   433		else {
   434			struct task_struct *p;
   435	
   436			rcu_read_lock();
   437			for_each_process(p)
   438				dump_task(p, oc);
   439			rcu_read_unlock();
   440		}
   441	}
   442	EXPORT_SYMBOL_GPL(dump_tasks);
   443	

-- 
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:[~2026-04-03  8:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-03  8:42 [android-common:android15-6.6-2026-04 1/1] mm/oom_kill.c:426:6: warning: no previous prototype for function 'dump_tasks' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.