Messages in this thread | | | Date | Tue, 28 Jun 2022 05:08:51 +0800 | From | kernel test robot <> | Subject | [intel-tdx:kvm-upstream-workaround 327/442] include/linux/memfile_notifier.h:87:57: error: unknown type name 'flags' |
| |
tree: https://github.com/intel/tdx.git kvm-upstream-workaround head: 8af973ebaf30642129fc1ca63f155a469f9615ed commit: 8cb35e95129306dc6d56e230b2f2fec40189a78c [327/442] mm/shmem: Support memfile_notifier config: um-x86_64_defconfig (https://download.01.org/0day-ci/archive/20220628/202206280512.4xQqv7zC-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel/tdx/commit/8cb35e95129306dc6d56e230b2f2fec40189a78c git remote add intel-tdx https://github.com/intel/tdx.git git fetch --no-tags intel-tdx kvm-upstream-workaround git checkout 8cb35e95129306dc6d56e230b2f2fec40189a78c # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=um SUBARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@intel.com>
Note: the intel-tdx/kvm-upstream-workaround HEAD 8af973ebaf30642129fc1ca63f155a469f9615ed builds fine. It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from include/linux/shmem_fs.h:12, from init/main.c:80: >> include/linux/memfile_notifier.h:87:57: error: unknown type name 'flags' 87 | static int memfile_register_notifier(struct file *file, flags, | ^~~~~ init/main.c:769:20: warning: no previous prototype for 'arch_post_acpi_subsys_init' [-Wmissing-prototypes] 769 | void __init __weak arch_post_acpi_subsys_init(void) { } | ^~~~~~~~~~~~~~~~~~~~~~~~~~ init/main.c:781:20: warning: no previous prototype for 'mem_encrypt_init' [-Wmissing-prototypes] 781 | void __init __weak mem_encrypt_init(void) { } | ^~~~~~~~~~~~~~~~ init/main.c:783:20: warning: no previous prototype for 'poking_init' [-Wmissing-prototypes] 783 | void __init __weak poking_init(void) { } | ^~~~~~~~~~~ In file included from include/linux/shmem_fs.h:12, from init/main.c:80: 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 init/do_mounts.c:20: >> 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 init/do_mounts.c:20: 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 mm/shmem.c:59: >> 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: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
0c030fb62c136d Chao Peng 2022-01-12 86 0c030fb62c136d Chao Peng 2022-01-12 @87 static int memfile_register_notifier(struct file *file, flags, 0c030fb62c136d Chao Peng 2022-01-12 88 struct memfile_notifier *notifier) 0c030fb62c136d Chao Peng 2022-01-12 89 { 0c030fb62c136d Chao Peng 2022-01-12 90 return -EOPNOTSUPP; 0c030fb62c136d Chao Peng 2022-01-12 91 } 0c030fb62c136d Chao Peng 2022-01-12 92
:::::: The code at line 87 was first introduced by commit :::::: 0c030fb62c136d9d0ac4e83e0872134f2a9ea896 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
| |