* [rppt:execmem/x86-rox/v4 7/8] mm/execmem.c:53:23: error: implicit declaration of function 'set_direct_map_valid_noflush'; did you mean 'set_direct_map_invalid_noflush'?
@ 2024-10-01 8:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-01 8:14 UTC (permalink / raw)
To: Mike Rapoport (Microsoft); +Cc: oe-kbuild-all, Mike Rapoport
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git execmem/x86-rox/v4
head: c90f89d40fd21ce040b5cf1485ec6913d1b4ea5d
commit: 21ce3be90ca4d26a895b08de0d68fab4143f97d7 [7/8] execmem: add support for cache of large ROX pages
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20241001/202410011619.OrLO2aeW-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241001/202410011619.OrLO2aeW-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/202410011619.OrLO2aeW-lkp@intel.com/
All errors (new ones prefixed by >>):
mm/execmem.c: In function 'execmem_set_direct_map_valid':
mm/execmem.c:48:36: error: 'struct vm_struct' has no member named 'page_order'
48 | unsigned int nr = (1U << vm->page_order);
| ^~
>> mm/execmem.c:53:23: error: implicit declaration of function 'set_direct_map_valid_noflush'; did you mean 'set_direct_map_invalid_noflush'? [-Wimplicit-function-declaration]
53 | err = set_direct_map_valid_noflush(vm->pages[i], nr, valid);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| set_direct_map_invalid_noflush
mm/execmem.c: In function 'execmem_cache_add':
mm/execmem.c:145:30: warning: variable 'upper_size' set but not used [-Wunused-but-set-variable]
145 | unsigned long upper, upper_size = 0;
| ^~~~~~~~~~
mm/execmem.c:144:30: warning: variable 'lower_size' set but not used [-Wunused-but-set-variable]
144 | unsigned long lower, lower_size = 0;
| ^~~~~~~~~~
vim +53 mm/execmem.c
44
45 static int execmem_set_direct_map_valid(struct vm_struct *vm, bool valid)
46 {
47 /* FIXME: build for !CONFIG_HAVE_ARCH_HUGE_VMALLOC */
> 48 unsigned int nr = (1U << vm->page_order);
49 unsigned int updated = 0;
50 int err = 0;
51
52 for (int i = 0; i < vm->nr_pages; i += nr) {
> 53 err = set_direct_map_valid_noflush(vm->pages[i], nr, valid);
54 if (err)
55 goto err_restore;
56 updated += nr;
57 }
58
59 return 0;
60
61 err_restore:
62 for (int i = 0; i < updated; i += nr)
63 set_direct_map_valid_noflush(vm->pages[i], nr, !valid);
64
65 return err;
66 }
67
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-10-01 8:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-01 8:14 [rppt:execmem/x86-rox/v4 7/8] mm/execmem.c:53:23: error: implicit declaration of function 'set_direct_map_valid_noflush'; did you mean 'set_direct_map_invalid_noflush'? kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.