All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH v4 13/13] module: Move version support into a separate file
Date: Mon, 31 Jan 2022 08:41:10 +0800	[thread overview]
Message-ID: <202201310837.htvWxdpM-lkp@intel.com> (raw)
In-Reply-To: <20220130213214.1042497-14-atomlin@redhat.com>

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

Hi Aaron,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on a97ac8cb24a3c3ad74794adb83717ef1605d1b47]

url:    https://github.com/0day-ci/linux/commits/Aaron-Tomlin/module-core-code-clean-up/20220131-053513
base:   a97ac8cb24a3c3ad74794adb83717ef1605d1b47
config: ia64-allmodconfig (https://download.01.org/0day-ci/archive/20220131/202201310837.htvWxdpM-lkp(a)intel.com/config)
compiler: ia64-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://github.com/0day-ci/linux/commit/4b7033ba7af584b33c6319a1cb62c2639230228d
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Aaron-Tomlin/module-core-code-clean-up/20220131-053513
        git checkout 4b7033ba7af584b33c6319a1cb62c2639230228d
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash kernel/

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 >>):

   In file included from kernel/module/version.c:8:
   include/linux/module.h: In function 'is_livepatch_module':
   include/linux/module.h:708:26: error: 'struct module' has no member named 'klp'; did you mean 'kp'?
     708 |                 if (mod->klp)
         |                          ^~~
         |                          kp
   include/linux/module.h: In function 'set_livepatch_module':
   include/linux/module.h:717:22: error: 'struct module' has no member named 'klp'; did you mean 'kp'?
     717 |                 mod->klp = true;
         |                      ^~~
         |                      kp
   In file included from kernel/module/version.c:11:
   kernel/module/internal.h: In function 'mod_find':
>> kernel/module/internal.h:142:9: error: implicit declaration of function 'list_for_each_entry_rcu'; did you mean 'list_for_each_entry_from'? [-Werror=implicit-function-declaration]
     142 |         list_for_each_entry_rcu(mod, &modules, list,
         |         ^~~~~~~~~~~~~~~~~~~~~~~
         |         list_for_each_entry_from
>> kernel/module/internal.h:142:48: error: 'list' undeclared (first use in this function)
     142 |         list_for_each_entry_rcu(mod, &modules, list,
         |                                                ^~~~
   kernel/module/internal.h:142:48: note: each undeclared identifier is reported only once for each function it appears in
>> kernel/module/internal.h:143:64: error: expected ';' before '{' token
     143 |                                 lockdep_is_held(&module_mutex)) {
         |                                                                ^~
         |                                                                ;
   kernel/module/internal.h:149:1: error: no return statement in function returning non-void [-Werror=return-type]
     149 | }
         | ^
   kernel/module/version.c: At top level:
   kernel/module/version.c:103:6: warning: no previous prototype for 'module_layout' [-Wmissing-prototypes]
     103 | void module_layout(struct module *mod,
         |      ^~~~~~~~~~~~~
   In file included from kernel/module/version.c:11:
   kernel/module/internal.h:138:23: warning: 'mod_find' defined but not used [-Wunused-function]
     138 | static struct module *mod_find(unsigned long addr)
         |                       ^~~~~~~~
   kernel/module/internal.h:137:13: warning: 'mod_tree_remove' defined but not used [-Wunused-function]
     137 | static void mod_tree_remove(struct module *mod) { }
         |             ^~~~~~~~~~~~~~~
   kernel/module/internal.h:136:13: warning: 'mod_tree_remove_init' defined but not used [-Wunused-function]
     136 | static void mod_tree_remove_init(struct module *mod) { }
         |             ^~~~~~~~~~~~~~~~~~~~
   kernel/module/internal.h:135:13: warning: 'mod_tree_insert' defined but not used [-Wunused-function]
     135 | static void mod_tree_insert(struct module *mod) { }
         |             ^~~~~~~~~~~~~~~
   kernel/module/internal.h:133:46: warning: 'module_addr_max' defined but not used [-Wunused-variable]
     133 | static unsigned long module_addr_min = -1UL, module_addr_max = 0;
         |                                              ^~~~~~~~~~~~~~~
   kernel/module/internal.h:133:22: warning: 'module_addr_min' defined but not used [-Wunused-variable]
     133 | static unsigned long module_addr_min = -1UL, module_addr_max = 0;
         |                      ^~~~~~~~~~~~~~~
   In file included from kernel/module/version.c:8:
   include/linux/module.h:374:12: warning: 'module_enforce_rwx_sections' defined but not used [-Wunused-function]
     374 | static int module_enforce_rwx_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/module.h:373:13: warning: 'module_enable_ro' defined but not used [-Wunused-function]
     373 | static void module_enable_ro(const struct module *mod, bool after_init) {}
         |             ^~~~~~~~~~~~~~~~
   include/linux/module.h:372:13: warning: 'module_enable_nx' defined but not used [-Wunused-function]
     372 | static void module_enable_nx(const struct module *mod) { }
         |             ^~~~~~~~~~~~~~~~
   include/linux/module.h:356:13: warning: 'module_enable_x' defined but not used [-Wunused-function]
     356 | static void module_enable_x(const struct module *mod) { }
         |             ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +142 kernel/module/internal.h

a80d594cdec224 Aaron Tomlin 2022-01-30  134  
a80d594cdec224 Aaron Tomlin 2022-01-30  135  static void mod_tree_insert(struct module *mod) { }
a80d594cdec224 Aaron Tomlin 2022-01-30  136  static void mod_tree_remove_init(struct module *mod) { }
a80d594cdec224 Aaron Tomlin 2022-01-30  137  static void mod_tree_remove(struct module *mod) { }
a80d594cdec224 Aaron Tomlin 2022-01-30  138  static struct module *mod_find(unsigned long addr)
a80d594cdec224 Aaron Tomlin 2022-01-30  139  {
a80d594cdec224 Aaron Tomlin 2022-01-30  140  	struct module *mod;
a80d594cdec224 Aaron Tomlin 2022-01-30  141  
a80d594cdec224 Aaron Tomlin 2022-01-30 @142  	list_for_each_entry_rcu(mod, &modules, list,
a80d594cdec224 Aaron Tomlin 2022-01-30 @143  				lockdep_is_held(&module_mutex)) {
a80d594cdec224 Aaron Tomlin 2022-01-30  144  		if (within_module(addr, mod))
a80d594cdec224 Aaron Tomlin 2022-01-30  145  			return mod;
a80d594cdec224 Aaron Tomlin 2022-01-30  146  	}
a80d594cdec224 Aaron Tomlin 2022-01-30  147  
a80d594cdec224 Aaron Tomlin 2022-01-30  148  	return NULL;
a80d594cdec224 Aaron Tomlin 2022-01-30  149  }
a80d594cdec224 Aaron Tomlin 2022-01-30  150  #endif /* CONFIG_MODULES_TREE_LOOKUP */
a9958f8b57f826 Aaron Tomlin 2022-01-30  151  

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

  reply	other threads:[~2022-01-31  0:41 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-30 21:32 [RFC PATCH v4 00/13] module: core code clean up Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 01/13] module: Move all into module/ Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 02/13] module: Simple refactor in preparation for split Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 03/13] module: Move livepatch support to a separate file Aaron Tomlin
2022-01-30 23:50   ` kernel test robot
2022-02-08 11:42   ` Petr Mladek
2022-02-08 15:18     ` Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 04/13] module: Move latched RB-tree " Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 05/13] module: Move arch strict rwx " Aaron Tomlin
2022-01-30 23:50   ` kernel test robot
2022-01-30 21:32 ` [RFC PATCH v4 06/13] module: Move " Aaron Tomlin
2022-01-31  0:30   ` kernel test robot
2022-01-30 21:32 ` [RFC PATCH v4 07/13] module: Move extra signature support out of core code Aaron Tomlin
2022-02-09 14:28   ` Miroslav Benes
2022-02-09 14:37     ` Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 08/13] module: Move kmemleak support to a separate file Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 09/13] module: Move kallsyms support into " Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 10/13] module: Move procfs " Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 11/13] module: Move sysfs " Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 12/13] module: Move kdb_modules list out of core code Aaron Tomlin
2022-01-30 21:32 ` [RFC PATCH v4 13/13] module: Move version support into a separate file Aaron Tomlin
2022-01-31  0:41   ` kernel test robot [this message]
2022-02-01 16:44 ` [RFC PATCH v4 00/13] module: core code clean up Allen
2022-02-05 20:33   ` Aaron Tomlin
2022-02-02  2:44 ` Luis Chamberlain
2022-02-06 14:40   ` Aaron Tomlin
2022-02-03  0:20 ` Luis Chamberlain
2022-02-03  7:48   ` Christophe Leroy
2022-02-06 14:45     ` Aaron Tomlin
2022-02-03 18:01   ` Christophe Leroy
2022-02-06 16:54     ` Aaron Tomlin
2022-02-07 16:46     ` Aaron Tomlin
2022-02-07 17:17       ` Christophe Leroy
2022-02-07 18:01         ` Aaron Tomlin
2022-02-08  7:50           ` Christophe Leroy
2022-02-08 10:05             ` Aaron Tomlin
2022-02-03 18:15   ` Christophe Leroy
2022-02-06 16:57     ` Aaron Tomlin
2022-02-03 19:43   ` Michal Suchánek
2022-02-03 20:13     ` Luis Chamberlain
2022-02-03 20:10   ` Luis Chamberlain
2022-02-06 17:00     ` Aaron Tomlin
2022-02-06 14:42   ` Aaron Tomlin
  -- strict thread matches above, loose matches on Subject: below --
2022-01-31 12:45 [RFC PATCH v4 01/13] module: Move all into module/ Aaron Tomlin
2022-01-31 12:45 ` [RFC PATCH v4 13/13] module: Move version support into a separate file Aaron Tomlin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202201310837.htvWxdpM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.