* [viro-vfs:work.debugfs 17/18] mm/slub.c:7576:38: error: too many arguments provided to function-like macro invocation
@ 2024-12-26 2:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-26 2:14 UTC (permalink / raw)
To: Al Viro; +Cc: llvm, oe-kbuild-all, linux-fsdevel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.debugfs
head: e98a67d7c1e4a22fa9b851507e25ecdc5b8cea6d
commit: 3c2d1b64cb4320860923a2097f5891efa2d7060e [17/18] slub: don't mess with ->d_name
config: x86_64-buildonly-randconfig-002-20241226 (https://download.01.org/0day-ci/archive/20241226/202412261018.IBubSniL-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241226/202412261018.IBubSniL-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/202412261018.IBubSniL-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from mm/slub.c:49:
In file included from mm/internal.h:13:
include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages);
| ~~~~~~~~~~~ ^ ~~~
include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
49 | NR_ZONE_LRU_BASE + lru, nr_pages);
| ~~~~~~~~~~~~~~~~ ^ ~~~
>> mm/slub.c:7576:38: error: too many arguments provided to function-like macro invocation
7576 | (void *)(unsigned long)TRACK_FREE, &slab_debugfs_fops);
| ^
include/linux/debugfs.h:125:9: note: macro 'debugfs_create_file' defined here
125 | #define debugfs_create_file(name, mode, parent, data, fops) \
| ^
>> mm/slub.c:7575:2: error: use of undeclared identifier 'debugfs_create_file'
7575 | debugfs_create_file("free_traces", 0400, slab_cache_dir, s,
| ^
2 warnings and 2 errors generated.
vim +7576 mm/slub.c
7562
7563 static void debugfs_slab_add(struct kmem_cache *s)
7564 {
7565 struct dentry *slab_cache_dir;
7566
7567 if (unlikely(!slab_debugfs_root))
7568 return;
7569
7570 slab_cache_dir = debugfs_create_dir(s->name, slab_debugfs_root);
7571
7572 debugfs_create_file_aux("alloc_traces", 0400, slab_cache_dir, s,
7573 (void *)(unsigned long)TRACK_ALLOC, &slab_debugfs_fops);
7574
> 7575 debugfs_create_file("free_traces", 0400, slab_cache_dir, s,
> 7576 (void *)(unsigned long)TRACK_FREE, &slab_debugfs_fops);
7577 }
7578
--
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-12-26 2:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-26 2:14 [viro-vfs:work.debugfs 17/18] mm/slub.c:7576:38: error: too many arguments provided to function-like macro invocation 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