Messages in this thread | | | Date | Fri, 27 May 2022 19:01:38 +0800 | From | kernel test robot <> | Subject | [intel-tdx:kvm-upstream-workaround 333/429] include/linux/memfile_notifier.h:87:57: error: unknown type name 'flags' |
| |
tree: https://github.com/intel/tdx.git kvm-upstream-workaround head: 49c277ae966b45577acad5c6d98acba3d27d63af commit: a46fd36366f3a53f0ea7385cdddef7d5e373edd0 [333/429] mm/shmem: Support memfile_notifier config: i386-randconfig-a001 (https://download.01.org/0day-ci/archive/20220527/202205271903.LhlXvUsN-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-1) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel/tdx/commit/a46fd36366f3a53f0ea7385cdddef7d5e373edd0 git remote add intel-tdx https://github.com/intel/tdx.git git fetch --no-tags intel-tdx kvm-upstream-workaround git checkout a46fd36366f3a53f0ea7385cdddef7d5e373edd0 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/shmem_fs.h:12, from kernel/events/uprobes.c:28: >> include/linux/memfile_notifier.h:87:57: error: unknown type name 'flags' 87 | static int memfile_register_notifier(struct file *file, flags, | ^~~~~ include/linux/memfile_notifier.h:93:13: warning: 'memfile_unregister_notifier' defined but not used [-Wunused-function] 93 | static void memfile_unregister_notifier(struct memfile_notifier *notifier) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/memfile_notifier.h:82:13: warning: 'memfile_notifier_invalidate' defined but not used [-Wunused-function] 82 | static void memfile_notifier_invalidate(struct memfile_node *node, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/memfile_notifier.h:77:13: warning: 'memfile_notifier_populate' defined but not used [-Wunused-function] 77 | static void memfile_notifier_populate(struct memfile_node *node, | ^~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/memfile_notifier.h:72:12: warning: 'memfile_node_set_flags' defined but not used [-Wunused-function] 72 | static int memfile_node_set_flags(struct file *file, unsigned long flags) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/memfile_notifier.h:68:13: warning: 'memfile_register_backing_store' defined but not used [-Wunused-function] 68 | static void memfile_register_backing_store(struct memfile_backing_store *bs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/shmem_fs.h:12, from include/linux/khugepaged.h:6, from mm/shmem.c:37: >> include/linux/memfile_notifier.h:87:57: error: unknown type name 'flags' 87 | static int memfile_register_notifier(struct file *file, flags, | ^~~~~ In file included from include/linux/shmem_fs.h:12, from include/linux/khugepaged.h:6, from mm/shmem.c:37: include/linux/memfile_notifier.h:93:13: warning: 'memfile_unregister_notifier' defined but not used [-Wunused-function] 93 | static void memfile_unregister_notifier(struct memfile_notifier *notifier) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/memfile_notifier.h:72:12: warning: 'memfile_node_set_flags' defined but not used [-Wunused-function] 72 | static int memfile_node_set_flags(struct file *file, unsigned long flags) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/memfile_notifier.h:68:13: warning: 'memfile_register_backing_store' defined but not used [-Wunused-function] 68 | static void memfile_register_backing_store(struct memfile_backing_store *bs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/flags +87 include/linux/memfile_notifier.h
07b4263e3099f7 Chao Peng 2022-01-12 86 07b4263e3099f7 Chao Peng 2022-01-12 @87 static int memfile_register_notifier(struct file *file, flags, 07b4263e3099f7 Chao Peng 2022-01-12 88 struct memfile_notifier *notifier) 07b4263e3099f7 Chao Peng 2022-01-12 89 { 07b4263e3099f7 Chao Peng 2022-01-12 90 return -EOPNOTSUPP; 07b4263e3099f7 Chao Peng 2022-01-12 91 } 07b4263e3099f7 Chao Peng 2022-01-12 92
:::::: The code at line 87 was first introduced by commit :::::: 07b4263e3099f776c35284155851f0e202b12a44 mm: Introduce memfile_notifier
:::::: TO: Chao Peng <chao.p.peng@linux.intel.com> :::::: CC: Isaku Yamahata <isaku.yamahata@intel.com>
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |