linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 10764/11415] samples/hung_task/hung_task_mutex.c:25:15: sparse: sparse: symbol 'hung_task_dir' was not declared. Should it be static?
@ 2025-03-18  0:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-18  0:31 UTC (permalink / raw)
  To: Masami Hiramatsu (Google)
  Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e94bd4ec45ac156616da285a0bf03056cd7430fc
commit: fb01916e3b56de4c9c6510202b446365082bdd3c [10764/11415] samples: add hung_task detector mutex blocking sample
config: i386-randconfig-r111-20250318 (https://download.01.org/0day-ci/archive/20250318/202503180827.4StpuFrD-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250318/202503180827.4StpuFrD-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/202503180827.4StpuFrD-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> samples/hung_task/hung_task_mutex.c:25:15: sparse: sparse: symbol 'hung_task_dir' was not declared. Should it be static?

vim +/hung_task_dir +25 samples/hung_task/hung_task_mutex.c

    22	
    23	static const char dummy_string[] = "This is a dummy string.";
    24	static DEFINE_MUTEX(dummy_mutex);
  > 25	struct dentry *hung_task_dir;
    26	

-- 
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:[~2025-03-18  0:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-18  0:31 [linux-next:master 10764/11415] samples/hung_task/hung_task_mutex.c:25:15: sparse: sparse: symbol 'hung_task_dir' was not declared. Should it be static? 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