From: kernel test robot <lkp@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [devsec-tsm:devsec-phase2 8/24] include/linux/device/trust.h:35:54: error: incomplete definition of type 'struct module'
Date: Fri, 28 Aug 2026 13:36:05 +0800 [thread overview]
Message-ID: <202608281310.mh1EkInv-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/devsec/tsm devsec-phase2
head: fca18645f5a7726a7d2723322a520ecff3e72b45
commit: 2a323f22915efbb3253657c0b11a0b81b5d582ef [8/24] device core: Initial device trust infrastructure
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20260828/202608281310.mh1EkInv-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260828/202608281310.mh1EkInv-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608281310.mh1EkInv-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/arm/kernel/asm-offsets.c:15:
In file included from include/linux/dma-mapping.h:5:
In file included from include/linux/device.h:32:
In file included from include/linux/device/driver.h:21:
In file included from include/linux/module.h:32:
>> include/linux/device/trust.h:35:54: error: incomplete definition of type 'struct module'
35 | pr_warn("module: %s: trust= support disabled\n", mod->name);
| ~~~^
include/linux/printk.h:564:37: note: expanded from macro 'pr_warn'
564 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/printk.h:511:60: note: expanded from macro 'printk'
511 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/printk.h:483:19: note: expanded from macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/printk.h:404:8: note: forward declaration of 'struct module'
404 | struct module;
| ^
1 error generated.
make[3]: *** [scripts/Makefile.build:184: arch/arm/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1405: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +35 include/linux/device/trust.h
28
29 #ifdef CONFIG_DEVICE_TRUST
30 void module_driver_trust(struct module *mod, const char *val);
31 void module_driver_trust_init(struct module *mod, bool distrust);
32 #else
33 static inline void module_driver_trust(struct module *mod, const char *val)
34 {
> 35 pr_warn("module: %s: trust= support disabled\n", mod->name);
36 }
37 static inline void module_driver_trust_init(struct module *mod, bool distrust)
38 {
39 }
40 #endif
41
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-08-28 5:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 5:36 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-07-06 2:54 [devsec-tsm:devsec-phase2 8/24] include/linux/device/trust.h:35:54: error: incomplete definition of type 'struct module' kernel test robot
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=202608281310.mh1EkInv-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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.