Messages in this thread | | | Date | Thu, 21 Apr 2022 14:43:08 +0800 | From | kernel test robot <> | Subject | [mingo-tip:sched/headers 2394/2579] kernel/module_decompress.c:226:65: error: 'PAGE_KERNEL' undeclared |
| |
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers head: 49e1ec6c70a6eb4b7de9250a455b8b63eb42afbe commit: 121f9c630c04142cd7a6ada2c297d5e5c85d73d3 [2394/2579] headers/deps: mm: Optimize <linux/highmem.h> dependencies, remove MM headers from the !CONFIG_HIGHMEM path config: sparc64-randconfig-r015-20220420 (https://download.01.org/0day-ci/archive/20220421/202204210620.WCK3GeUD-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=121f9c630c04142cd7a6ada2c297d5e5c85d73d3 git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git git fetch --no-tags mingo-tip sched/headers git checkout 121f9c630c04142cd7a6ada2c297d5e5c85d73d3 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=sparc64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
kernel/module_decompress.c: In function 'module_decompress': >> kernel/module_decompress.c:226:65: error: 'PAGE_KERNEL' undeclared (first use in this function) 226 | info->hdr = vmap(info->pages, info->used_pages, VM_MAP, PAGE_KERNEL); | ^~~~~~~~~~~ kernel/module_decompress.c:226:65: note: each undeclared identifier is reported only once for each function it appears in
vim +/PAGE_KERNEL +226 kernel/module_decompress.c
b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 206 b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 207 int module_decompress(struct load_info *info, const void *buf, size_t size) b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 208 { b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 209 unsigned int n_pages; b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 210 ssize_t data_size; b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 211 int error; b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 212 b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 213 /* b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 214 * Start with number of pages twice as big as needed for b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 215 * compressed data. b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 216 */ b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 217 n_pages = DIV_ROUND_UP(size, PAGE_SIZE) * 2; b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 218 error = module_extend_max_pages(info, n_pages); b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 219 b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 220 data_size = MODULE_DECOMPRESS_FN(info, buf, size); b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 221 if (data_size < 0) { b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 222 error = data_size; b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 223 goto err; b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 224 } b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 225 b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 @226 info->hdr = vmap(info->pages, info->used_pages, VM_MAP, PAGE_KERNEL); b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 227 if (!info->hdr) { b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 228 error = -ENOMEM; b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 229 goto err; b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 230 } b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 231 b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 232 info->len = data_size; b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 233 return 0; b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 234 b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 235 err: b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 236 module_decompress_cleanup(info); b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 237 return error; b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 238 } b1ae6dc41eaaa9 Dmitry Torokhov 2022-01-05 239
:::::: The code at line 226 was first introduced by commit :::::: b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7 module: add in-kernel support for decompressing
:::::: TO: Dmitry Torokhov <dmitry.torokhov@gmail.com> :::::: CC: Luis Chamberlain <mcgrof@kernel.org>
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |