From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH 04/12] module: Move latched RB-tree support to a separate file
Date: Wed, 29 Dec 2021 08:40:40 +0800 [thread overview]
Message-ID: <202112290839.p18Q37Av-lkp@intel.com> (raw)
In-Reply-To: <20211228213041.1356334-5-atomlin@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 14635 bytes --]
Hi Aaron,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on jeyu/modules-next]
[also build test ERROR on v5.16-rc7 next-20211224]
[cannot apply to linus/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Aaron-Tomlin/module-Move-all-into-module/20211229-063051
base: https://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux.git modules-next
config: i386-tinyconfig (https://download.01.org/0day-ci/archive/20211229/202112290839.p18Q37Av-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/dd28c799193d8a45ed717910883b4c0b335774fe
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Aaron-Tomlin/module-Move-all-into-module/20211229-063051
git checkout dd28c799193d8a45ed717910883b4c0b335774fe
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash kernel/module/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from <command-line>:
kernel/module/tree_lookup.c: In function '__mod_tree_val':
>> include/linux/kernel.h:495:51: error: dereferencing pointer to incomplete type 'struct module_layout'
495 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~
include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:495:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
495 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
include/linux/kernel.h:495:20: note: in expansion of macro '__same_type'
495 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~
kernel/module/tree_lookup.c:23:33: note: in expansion of macro 'container_of'
23 | struct module_layout *layout = container_of(n, struct module_layout, mtn.node);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:140:35: error: invalid use of undefined type 'struct module_layout'
140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^~~~~~~~~~~~~~~~~~
include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:498:21: note: in expansion of macro 'offsetof'
498 | ((type *)(__mptr - offsetof(type, member))); })
| ^~~~~~~~
kernel/module/tree_lookup.c:23:33: note: in expansion of macro 'container_of'
23 | struct module_layout *layout = container_of(n, struct module_layout, mtn.node);
| ^~~~~~~~~~~~
kernel/module/tree_lookup.c: In function '__mod_tree_size':
>> include/linux/kernel.h:495:51: error: dereferencing pointer to incomplete type 'struct module_layout'
495 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~
include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:495:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
495 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
include/linux/kernel.h:495:20: note: in expansion of macro '__same_type'
495 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~
kernel/module/tree_lookup.c:30:33: note: in expansion of macro 'container_of'
30 | struct module_layout *layout = container_of(n, struct module_layout, mtn.node);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:140:35: error: invalid use of undefined type 'struct module_layout'
140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^~~~~~~~~~~~~~~~~~
include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:498:21: note: in expansion of macro 'offsetof'
498 | ((type *)(__mptr - offsetof(type, member))); })
| ^~~~~~~~
kernel/module/tree_lookup.c:30:33: note: in expansion of macro 'container_of'
30 | struct module_layout *layout = container_of(n, struct module_layout, mtn.node);
| ^~~~~~~~~~~~
kernel/module/tree_lookup.c: At top level:
>> kernel/module/tree_lookup.c:63:40: warning: 'struct mod_tree_node' declared inside parameter list will not be visible outside of this definition or declaration
63 | noinline void __mod_tree_insert(struct mod_tree_node *node)
| ^~~~~~~~~~~~~
kernel/module/tree_lookup.c:63:15: warning: no previous prototype for '__mod_tree_insert' [-Wmissing-prototypes]
63 | noinline void __mod_tree_insert(struct mod_tree_node *node)
| ^~~~~~~~~~~~~~~~~
kernel/module/tree_lookup.c: In function '__mod_tree_insert':
>> kernel/module/tree_lookup.c:65:25: error: dereferencing pointer to incomplete type 'struct mod_tree_node'
65 | latch_tree_insert(&node->node, &mod_tree.root, &mod_tree_ops);
| ^~
>> kernel/module/tree_lookup.c:65:34: error: 'mod_tree' undeclared (first use in this function); did you mean 'mod_timer'?
65 | latch_tree_insert(&node->node, &mod_tree.root, &mod_tree_ops);
| ^~~~~~~~
| mod_timer
kernel/module/tree_lookup.c:65:34: note: each undeclared identifier is reported only once for each function it appears in
kernel/module/tree_lookup.c: At top level:
kernel/module/tree_lookup.c:68:31: warning: 'struct mod_tree_node' declared inside parameter list will not be visible outside of this definition or declaration
68 | void __mod_tree_remove(struct mod_tree_node *node)
| ^~~~~~~~~~~~~
kernel/module/tree_lookup.c:68:6: warning: no previous prototype for '__mod_tree_remove' [-Wmissing-prototypes]
68 | void __mod_tree_remove(struct mod_tree_node *node)
| ^~~~~~~~~~~~~~~~~
kernel/module/tree_lookup.c: In function '__mod_tree_remove':
kernel/module/tree_lookup.c:70:24: error: dereferencing pointer to incomplete type 'struct mod_tree_node'
70 | latch_tree_erase(&node->node, &mod_tree.root, &mod_tree_ops);
| ^~
kernel/module/tree_lookup.c:70:33: error: 'mod_tree' undeclared (first use in this function); did you mean 'mod_timer'?
70 | latch_tree_erase(&node->node, &mod_tree.root, &mod_tree_ops);
| ^~~~~~~~
| mod_timer
kernel/module/tree_lookup.c: At top level:
>> kernel/module/tree_lookup.c:77:6: warning: no previous prototype for 'mod_tree_insert' [-Wmissing-prototypes]
77 | void mod_tree_insert(struct module *mod)
| ^~~~~~~~~~~~~~~
kernel/module/tree_lookup.c: In function 'mod_tree_insert':
>> kernel/module/tree_lookup.c:79:5: error: dereferencing pointer to incomplete type 'struct module'
79 | mod->core_layout.mtn.mod = mod;
| ^~
kernel/module/tree_lookup.c: At top level:
>> kernel/module/tree_lookup.c:87:6: warning: no previous prototype for 'mod_tree_remove_init' [-Wmissing-prototypes]
87 | void mod_tree_remove_init(struct module *mod)
| ^~~~~~~~~~~~~~~~~~~~
>> kernel/module/tree_lookup.c:93:6: warning: no previous prototype for 'mod_tree_remove' [-Wmissing-prototypes]
93 | void mod_tree_remove(struct module *mod)
| ^~~~~~~~~~~~~~~
>> kernel/module/tree_lookup.c:99:16: warning: no previous prototype for 'mod_find' [-Wmissing-prototypes]
99 | struct module *mod_find(unsigned long addr)
| ^~~~~~~~
kernel/module/tree_lookup.c: In function 'mod_find':
kernel/module/tree_lookup.c:103:39: error: 'mod_tree' undeclared (first use in this function); did you mean 'mod_timer'?
103 | ltn = latch_tree_find((void *)addr, &mod_tree.root, &mod_tree_ops);
| ^~~~~~~~
| mod_timer
In file included from <command-line>:
>> include/linux/kernel.h:495:51: error: dereferencing pointer to incomplete type 'struct mod_tree_node'
495 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~
include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:495:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
495 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
include/linux/kernel.h:495:20: note: in expansion of macro '__same_type'
495 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~
kernel/module/tree_lookup.c:107:9: note: in expansion of macro 'container_of'
107 | return container_of(ltn, struct mod_tree_node, node)->mod;
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:140:35: error: invalid use of undefined type 'struct mod_tree_node'
140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^~~~~~~~~~~~~~~~~~
include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:498:21: note: in expansion of macro 'offsetof'
498 | ((type *)(__mptr - offsetof(type, member))); })
| ^~~~~~~~
kernel/module/tree_lookup.c:107:9: note: in expansion of macro 'container_of'
107 | return container_of(ltn, struct mod_tree_node, node)->mod;
| ^~~~~~~~~~~~
kernel/module/tree_lookup.c: In function '__mod_tree_val':
kernel/module/tree_lookup.c:26:1: error: control reaches end of non-void function [-Werror=return-type]
26 | }
| ^
kernel/module/tree_lookup.c: In function '__mod_tree_size':
kernel/module/tree_lookup.c:33:1: error: control reaches end of non-void function [-Werror=return-type]
33 | }
| ^
kernel/module/tree_lookup.c: In function 'mod_find':
kernel/module/tree_lookup.c:108:1: error: control reaches end of non-void function [-Werror=return-type]
108 | }
| ^
cc1: some warnings being treated as errors
vim +495 include/linux/kernel.h
cf14f27f82af78 Alexei Starovoitov 2018-03-28 485
^1da177e4c3f41 Linus Torvalds 2005-04-16 486 /**
^1da177e4c3f41 Linus Torvalds 2005-04-16 487 * container_of - cast a member of a structure out to the containing structure
^1da177e4c3f41 Linus Torvalds 2005-04-16 488 * @ptr: the pointer to the member.
^1da177e4c3f41 Linus Torvalds 2005-04-16 489 * @type: the type of the container struct this is embedded in.
^1da177e4c3f41 Linus Torvalds 2005-04-16 490 * @member: the name of the member within the struct.
^1da177e4c3f41 Linus Torvalds 2005-04-16 491 *
^1da177e4c3f41 Linus Torvalds 2005-04-16 492 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 493 #define container_of(ptr, type, member) ({ \
c7acec713d14c6 Ian Abbott 2017-07-12 494 void *__mptr = (void *)(ptr); \
c7acec713d14c6 Ian Abbott 2017-07-12 @495 BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
c7acec713d14c6 Ian Abbott 2017-07-12 496 !__same_type(*(ptr), void), \
c7acec713d14c6 Ian Abbott 2017-07-12 497 "pointer type mismatch in container_of()"); \
c7acec713d14c6 Ian Abbott 2017-07-12 498 ((type *)(__mptr - offsetof(type, member))); })
^1da177e4c3f41 Linus Torvalds 2005-04-16 499
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next prev parent reply other threads:[~2021-12-29 0:40 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-24 17:33 [RFC PATCH] module: Introduce module unload taint tracking Aaron Tomlin
2021-11-24 22:52 ` kernel test robot
2021-11-24 22:52 ` kernel test robot
2021-11-25 6:55 ` kernel test robot
2021-12-08 20:47 ` Luis Chamberlain
2021-12-09 16:49 ` Aaron Tomlin
2021-12-09 23:42 ` Luis Chamberlain
2021-12-10 10:00 ` Petr Mladek
2021-12-10 16:09 ` Aaron Tomlin
2021-12-10 17:09 ` Luis Chamberlain
2021-12-13 15:16 ` Petr Mladek
2021-12-21 11:58 ` Aaron Tomlin
2021-12-10 17:03 ` Luis Chamberlain
2021-12-10 15:48 ` Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 00/12] module: core code clean up Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 01/12] module: Move all into module/ Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 02/12] module: Simple refactor in preparation for split Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 03/12] module: Move livepatch support to a separate file Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 04/12] module: Move latched RB-tree " Aaron Tomlin
2021-12-29 0:10 ` kernel test robot
2021-12-29 0:40 ` kernel test robot [this message]
2021-12-28 21:30 ` [RFC PATCH 05/12] module: Move arch strict rwx " Aaron Tomlin
2022-01-12 16:13 ` Luis Chamberlain
2021-12-28 21:30 ` [RFC PATCH 06/12] module: Move " Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 07/12] module: Move extra signature support out of core code Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 08/12] module: Move kmemleak support to a separate file Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 09/12] module: Move kallsyms support into " Aaron Tomlin
2021-12-29 0:30 ` kernel test robot
2021-12-29 3:53 ` kernel test robot
2021-12-30 3:19 ` kernel test robot
2021-12-28 21:30 ` [RFC PATCH 10/12] module: Move procfs " Aaron Tomlin
2021-12-28 21:30 ` [RFC PATCH 11/12] module: Move sysfs " Aaron Tomlin
2022-01-12 16:20 ` Luis Chamberlain
2021-12-28 21:30 ` [RFC PATCH 12/12] module: Move kdb_modules list out of core code Aaron Tomlin
2021-12-29 8:58 ` [RFC PATCH 00/12] module: core code clean up Aaron Tomlin
2022-01-12 16:21 ` Luis Chamberlain
2021-12-13 13:00 ` [RFC PATCH] module: Introduce module unload taint tracking Allen
2021-12-20 19:23 ` Luis Chamberlain
2021-12-21 11:44 ` 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=202112290839.p18Q37Av-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.