Messages in this thread | | | Date | Sun, 10 Jul 2022 06:40:12 +0800 | From | kernel test robot <> | Subject | [crng-random:tip 1/2] arch/x86/kernel/kexec-bzimage64.c:219:19: error: 'const struct kimage' has no member named 'ima_buffer_size' |
| |
tree: git://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git tip head: 532de96923f9c8e0ec456c1b91499327579c2aba commit: acc53fc31a5e3d990d8241a09438d98b1a6aee1f [1/2] x86/setup: Use rng seeds from setup_data config: x86_64-randconfig-a004 (https://download.01.org/0day-ci/archive/20220710/202207100642.LSXZkwwQ-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git/commit/?id=acc53fc31a5e3d990d8241a09438d98b1a6aee1f git remote add crng-random git://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git git fetch --no-tags crng-random tip git checkout acc53fc31a5e3d990d8241a09438d98b1a6aee1f # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 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 >>):
arch/x86/kernel/kexec-bzimage64.c: In function 'setup_ima_state': >> arch/x86/kernel/kexec-bzimage64.c:219:19: error: 'const struct kimage' has no member named 'ima_buffer_size' 219 | if (!image->ima_buffer_size) | ^~ >> arch/x86/kernel/kexec-bzimage64.c:226:26: error: 'const struct kimage' has no member named 'ima_buffer_addr' 226 | ima->addr = image->ima_buffer_addr; | ^~ arch/x86/kernel/kexec-bzimage64.c:227:26: error: 'const struct kimage' has no member named 'ima_buffer_size' 227 | ima->size = image->ima_buffer_size; | ^~
vim +219 arch/x86/kernel/kexec-bzimage64.c
6a2c20e7d8900e Vivek Goyal 2014-08-08 209 b69a2afd5afce9 Jonathan McDowell 2022-06-30 210 static void b69a2afd5afce9 Jonathan McDowell 2022-06-30 211 setup_ima_state(const struct kimage *image, struct boot_params *params, b69a2afd5afce9 Jonathan McDowell 2022-06-30 212 unsigned long params_load_addr, b69a2afd5afce9 Jonathan McDowell 2022-06-30 213 unsigned int ima_setup_data_offset) b69a2afd5afce9 Jonathan McDowell 2022-06-30 214 { b69a2afd5afce9 Jonathan McDowell 2022-06-30 215 struct setup_data *sd = (void *)params + ima_setup_data_offset; b69a2afd5afce9 Jonathan McDowell 2022-06-30 216 unsigned long setup_data_phys; b69a2afd5afce9 Jonathan McDowell 2022-06-30 217 struct ima_setup_data *ima; b69a2afd5afce9 Jonathan McDowell 2022-06-30 218 b69a2afd5afce9 Jonathan McDowell 2022-06-30 @219 if (!image->ima_buffer_size) b69a2afd5afce9 Jonathan McDowell 2022-06-30 220 return; b69a2afd5afce9 Jonathan McDowell 2022-06-30 221 b69a2afd5afce9 Jonathan McDowell 2022-06-30 222 sd->type = SETUP_IMA; b69a2afd5afce9 Jonathan McDowell 2022-06-30 223 sd->len = sizeof(*ima); b69a2afd5afce9 Jonathan McDowell 2022-06-30 224 b69a2afd5afce9 Jonathan McDowell 2022-06-30 225 ima = (void *)sd + sizeof(struct setup_data); b69a2afd5afce9 Jonathan McDowell 2022-06-30 @226 ima->addr = image->ima_buffer_addr; b69a2afd5afce9 Jonathan McDowell 2022-06-30 227 ima->size = image->ima_buffer_size; b69a2afd5afce9 Jonathan McDowell 2022-06-30 228 b69a2afd5afce9 Jonathan McDowell 2022-06-30 229 /* Add setup data */ b69a2afd5afce9 Jonathan McDowell 2022-06-30 230 setup_data_phys = params_load_addr + ima_setup_data_offset; b69a2afd5afce9 Jonathan McDowell 2022-06-30 231 sd->next = params->hdr.setup_data; b69a2afd5afce9 Jonathan McDowell 2022-06-30 232 params->hdr.setup_data = setup_data_phys; b69a2afd5afce9 Jonathan McDowell 2022-06-30 233 } b69a2afd5afce9 Jonathan McDowell 2022-06-30 234
:::::: The code at line 219 was first introduced by commit :::::: b69a2afd5afce9bf6d56e349d6ab592c916e20f2 x86/kexec: Carry forward IMA measurement log on kexec
:::::: TO: Jonathan McDowell <noodles@fb.com> :::::: CC: Borislav Petkov <bp@suse.de>
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |