Skip to contentSkip to conversation

linux-next: build warning in Linus' tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Mar 23, 2021 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

Building Linus' tree, today's linux-next build (x86_64 allnoconfig) produced this warning:

kernel/static_call.c: In function '__static_call_update':
kernel/static_call.c:153:18: warning: unused variable 'mod' [-Wunused-variable]
153 | struct module *mod = site_mod->mod;
| ^~~

Introduced by commit

698bacefe993 ("static_call: Align static_call_is_init() patching condition")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 5 lines · Stephen Rothwell

Hi all,

Building Linus' tree, today's linux-next build (x86_64 allnoconfig) produced this warning:

Quoted 8 lines

kernel/static_call.c: In function '__static_call_update':
kernel/static_call.c:153:18: warning: unused variable 'mod' [-Wunused-variable]
153 | struct module *mod = site_mod->mod;
| ^~~

Introduced by commit

698bacefe993 ("static_call: Align static_call_is_init() patching condition")

Blergh... that's MODULE=n. I'll see if I can find something that's not too ugly there..