* [mark:arm64/module-space-rework 6/7] arch/arm64/kernel/ftrace.c:200:36: error: invalid use of undefined type 'struct module'
@ 2023-05-08 3:03 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-05-08 3:03 UTC (permalink / raw)
To: Mark Rutland; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/module-space-rework
head: a96e2e587515d06f8caeb9a27c144f7d33b93d20
commit: cc163cbb102f4856e1e1b3a87b530f223cd509ff [6/7] arm64: module: mandate MODULE_PLTS
config: arm64-randconfig-c041-20230507 (https://download.01.org/0day-ci/archive/20230508/202305081035.i0vMAOOz-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=cc163cbb102f4856e1e1b3a87b530f223cd509ff
git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark arm64/module-space-rework
git checkout cc163cbb102f4856e1e1b3a87b530f223cd509ff
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kernel/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305081035.i0vMAOOz-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/arm64/kernel/ftrace.c: In function 'get_ftrace_plt':
>> arch/arm64/kernel/ftrace.c:200:36: error: invalid use of undefined type 'struct module'
200 | struct plt_entry *plt = mod->arch.ftrace_trampolines;
| ^~
vim +200 arch/arm64/kernel/ftrace.c
bd7d38dbdf356e AKASHI Takahiro 2014-04-30 197
3b23e4991fb66f Torsten Duwe 2019-02-08 198 static struct plt_entry *get_ftrace_plt(struct module *mod, unsigned long addr)
3b23e4991fb66f Torsten Duwe 2019-02-08 199 {
3b23e4991fb66f Torsten Duwe 2019-02-08 @200 struct plt_entry *plt = mod->arch.ftrace_trampolines;
3b23e4991fb66f Torsten Duwe 2019-02-08 201
3b23e4991fb66f Torsten Duwe 2019-02-08 202 if (addr == FTRACE_ADDR)
3b23e4991fb66f Torsten Duwe 2019-02-08 203 return &plt[FTRACE_PLT_IDX];
cc163cbb102f48 Mark Rutland 2023-04-19 204
3b23e4991fb66f Torsten Duwe 2019-02-08 205 return NULL;
3b23e4991fb66f Torsten Duwe 2019-02-08 206 }
3b23e4991fb66f Torsten Duwe 2019-02-08 207
:::::: The code at line 200 was first introduced by commit
:::::: 3b23e4991fb66f6d152f9055ede271a726ef9f21 arm64: implement ftrace with regs
:::::: TO: Torsten Duwe <duwe@lst.de>
:::::: CC: Mark Rutland <mark.rutland@arm.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] 2+ messages in thread
* [mark:arm64/module-space-rework 6/7] arch/arm64/kernel/ftrace.c:200:36: error: invalid use of undefined type 'struct module'
@ 2023-04-22 1:33 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-04-22 1:33 UTC (permalink / raw)
To: Mark Rutland; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/module-space-rework
head: 1ac179f2c4d6f8091e8332a1f1cfa7a8be901a75
commit: c4418e1c18cfe1261d69bf1313263475dd16b2a3 [6/7] arm64: mandate MODULE_PLTS for MODULES
config: arm64-buildonly-randconfig-r003-20230421 (https://download.01.org/0day-ci/archive/20230422/202304220932.iSUZ5Tex-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=c4418e1c18cfe1261d69bf1313263475dd16b2a3
git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark arm64/module-space-rework
git checkout c4418e1c18cfe1261d69bf1313263475dd16b2a3
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kernel/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304220932.iSUZ5Tex-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/arm64/kernel/ftrace.c: In function 'get_ftrace_plt':
>> arch/arm64/kernel/ftrace.c:200:36: error: invalid use of undefined type 'struct module'
200 | struct plt_entry *plt = mod->arch.ftrace_trampolines;
| ^~
arch/arm64/kernel/ftrace.c: At top level:
arch/arm64/kernel/ftrace.c:427:6: warning: no previous prototype for 'prepare_ftrace_return' [-Wmissing-prototypes]
427 | void prepare_ftrace_return(unsigned long self_addr, unsigned long *parent,
| ^~~~~~~~~~~~~~~~~~~~~
vim +200 arch/arm64/kernel/ftrace.c
bd7d38dbdf356e AKASHI Takahiro 2014-04-30 197
3b23e4991fb66f Torsten Duwe 2019-02-08 198 static struct plt_entry *get_ftrace_plt(struct module *mod, unsigned long addr)
3b23e4991fb66f Torsten Duwe 2019-02-08 199 {
3b23e4991fb66f Torsten Duwe 2019-02-08 @200 struct plt_entry *plt = mod->arch.ftrace_trampolines;
3b23e4991fb66f Torsten Duwe 2019-02-08 201
3b23e4991fb66f Torsten Duwe 2019-02-08 202 if (addr == FTRACE_ADDR)
3b23e4991fb66f Torsten Duwe 2019-02-08 203 return &plt[FTRACE_PLT_IDX];
c4418e1c18cfe1 Mark Rutland 2023-04-19 204
3b23e4991fb66f Torsten Duwe 2019-02-08 205 return NULL;
3b23e4991fb66f Torsten Duwe 2019-02-08 206 }
3b23e4991fb66f Torsten Duwe 2019-02-08 207
:::::: The code at line 200 was first introduced by commit
:::::: 3b23e4991fb66f6d152f9055ede271a726ef9f21 arm64: implement ftrace with regs
:::::: TO: Torsten Duwe <duwe@lst.de>
:::::: CC: Mark Rutland <mark.rutland@arm.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-08 3:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-08 3:03 [mark:arm64/module-space-rework 6/7] arch/arm64/kernel/ftrace.c:200:36: error: invalid use of undefined type 'struct module' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2023-04-22 1:33 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).