All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen-kernel-zen-kernel:5.11/clearlinux 12/19] kernel/module.c:4537:21: error: invalid use of undefined type 'struct boot_params'
@ 2021-02-16  3:23 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-16  3:23 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2312 bytes --]

tree:   https://github.com/zen-kernel/zen-kernel 5.11/clearlinux
head:   fede6bb5df1f596da7a69493ea8698cef4b93f68
commit: 54544f9be0f2cca74caa5c23a3a22f28e9d656e2 [12/19] add boot option to allow unsigned modules
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.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://github.com/zen-kernel/zen-kernel/commit/54544f9be0f2cca74caa5c23a3a22f28e9d656e2
        git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
        git fetch --no-tags zen-kernel-zen-kernel 5.11/clearlinux
        git checkout 54544f9be0f2cca74caa5c23a3a22f28e9d656e2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 

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.c: In function 'proc_modules_init':
>> kernel/module.c:4537:21: error: invalid use of undefined type 'struct boot_params'
    4537 |  switch (boot_params.secure_boot) {
         |                     ^
   kernel/module.c: At top level:
   kernel/module.c:4686:6: warning: no previous prototype for 'module_layout' [-Wmissing-prototypes]
    4686 | void module_layout(struct module *mod,
         |      ^~~~~~~~~~~~~


vim +4537 kernel/module.c

  4531	
  4532	static int __init proc_modules_init(void)
  4533	{
  4534		proc_create("modules", 0, NULL, &modules_proc_ops);
  4535	
  4536	#ifdef CONFIG_MODULE_SIG_FORCE
> 4537		switch (boot_params.secure_boot) {
  4538		case efi_secureboot_mode_unset:
  4539		case efi_secureboot_mode_unknown:
  4540		case efi_secureboot_mode_disabled:
  4541			/*
  4542			 * sig_unenforce is only applied if SecureBoot is not
  4543			 * enabled.
  4544			 */
  4545			sig_enforce = !sig_unenforce;
  4546		}
  4547	#endif
  4548		return 0;
  4549	}
  4550	module_init(proc_modules_init);
  4551	#endif
  4552	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 58826 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-16  3:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16  3:23 [zen-kernel-zen-kernel:5.11/clearlinux 12/19] kernel/module.c:4537:21: error: invalid use of undefined type 'struct boot_params' 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.