security/ipe/policy_fs.c:21: warning: cannot understand function prototype: 'struct ipefs_file '

From: kernel test robot
Date: Sat Jan 18 2025 - 19:13:29 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 595523945be0a5a2f12a1c04772383293fbc04a1
commit: 2261306f4a3cea362fc40285e750a801dc0cfbe3 ipe: add userspace interface
date: 5 months ago
config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20250119/202501190816.IQ5G26HR-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250119/202501190816.IQ5G26HR-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501190816.IQ5G26HR-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> security/ipe/policy_fs.c:21: warning: cannot understand function prototype: 'struct ipefs_file '
>> security/ipe/policy_fs.c:407: warning: cannot understand function prototype: 'const struct ipefs_file policy_subdir[] = '


vim +21 security/ipe/policy_fs.c

17
18 /**
19 * ipefs_file - defines a file in securityfs.
20 */
> 21 struct ipefs_file {
22 const char *name;
23 umode_t access;
24 const struct file_operations *fops;
25 };
26

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki