fs/tracefs/event_inode.c:909:6: warning: no previous prototype for function 'eventfs_remove_events_dir'
kernel test robot
build bottree: git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace trace/core head: f5d9e8e08f81c9e7c723de7abcce106808f0770c commit: 5790b1fb3d672d9a1fe3881a7181dfdbe741568f [6/7] eventfs: Remove eventfs_file and just use eventfs_inode config: arm-bcm2835_defconfig (https://download.01.org/0day-ci/archive/20231005/[email protected]/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231005/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> fs/tracefs/event_inode.c:909:6: warning: no previous prototype for function 'eventfs_remove_events_dir' [-Wmissing-prototypes]
909 | void eventfs_remove_events_dir(struct dentry *dentry)
| ^
fs/tracefs/event_inode.c:909:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
909 | void eventfs_remove_events_dir(struct dentry *dentry)
| ^
| static
1 warning generated.
--
>> kernel/trace/trace_events.c:2285:5: warning: no previous prototype for function 'system_callback' [-Wmissing-prototypes]
2285 | int system_callback(const char *name, umode_t *mode, void **data,
| ^
kernel/trace/trace_events.c:2285:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2285 | int system_callback(const char *name, umode_t *mode, void **data,
| ^
| static 1 warning generated.
vim +/eventfs_remove_events_dir +909 fs/tracefs/event_inode.c
5bdcd5f5331a27 Ajay Kaher 2023-07-28 902 5bdcd5f5331a27 Ajay Kaher 2023-07-28 903 /** 5bdcd5f5331a27 Ajay Kaher 2023-07-28 904 * eventfs_remove_events_dir - remove eventfs dir or file from list 5bdcd5f5331a27 Ajay Kaher 2023-07-28 905 * @dentry: events's dentry to be removed. 5bdcd5f5331a27 Ajay Kaher 2023-07-28 906 * 5bdcd5f5331a27 Ajay Kaher 2023-07-28 907 * This function remove events main directory 5bdcd5f5331a27 Ajay Kaher 2023-07-28 908 */
5bdcd5f5331a27 Ajay Kaher 2023-07-28 @909 void eventfs_remove_events_dir(struct dentry *dentry)
:::::: The code at line 909 was first introduced by commit
:::::: 5bdcd5f5331a276a3ddf1fba8605986d0d15298a eventfs: Implement removal of meta data from eventfs
:::::: TO: Ajay Kaher <[email protected]> :::::: CC: Steven Rostedt (Google) <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki