From: kernel test robot <lkp@intel.com>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-fsdevel@vger.kernel.org
Subject: [viro-vfs:work.debugfs 17/18] mm/slub.c:7576:38: error: too many arguments provided to function-like macro invocation
Date: Thu, 26 Dec 2024 10:14:26 +0800 [thread overview]
Message-ID: <202412261018.IBubSniL-lkp@intel.com> (raw)
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
reply other threads:[~2024-12-26 2:14 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=202412261018.IBubSniL-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=viro@zeniv.linux.org.uk \
/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