[Bug runtime/30415] New: conflicting types for ‘kallsyms_on_each_symbol’
mcermak at redhat dot com
sourceware-bugzilla@sourceware.org
Wed May 3 08:56:42 GMT 2023
https://sourceware.org/bugzilla/show_bug.cgi?id=30415
Bug ID: 30415
Summary: conflicting types for ‘kallsyms_on_each_symbol’
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: runtime
Assignee: systemtap at sourceware dot org
Reporter: mcermak at redhat dot com
Target Milestone: ---
Following is one of the problems CI gating shows for systemtap-4.9-1.fc39:
[root@rawh ~]# uname -r; rpm -q systemtap
6.4.0-0.rc0.20230428git33afd4b76393.7.fc39.x86_64
systemtap-4.9-1.fc39.x86_64
[root@rawh ~]#
[root@rawh ~]#
[root@rawh ~]# stap -vp4 -e 'probe nfsd.close? { printf("%s\n", filename) }
probe never { exit() }'
Pass 1: parsed user script and 484 library scripts using
124832virt/101128res/11136shr/89524data kb, in 180usr/40sys/219real ms.
Pass 2: analyzed script: 1 probe, 1 function, 0 embeds, 0 globals using
213068virt/193116res/14828shr/177760data kb, in 2040usr/430sys/2487real ms.
Pass 3: translated to C into
"/tmp/stapcVlKLM/stap_9691453a981c3fed6300ada89e578986_1302_src.c" using
213068virt/193244res/14956shr/177760data kb, in 0usr/0sys/0real ms.
In file included from /usr/local/share/systemtap/runtime/linux/runtime.h:288,
from /usr/local/share/systemtap/runtime/runtime.h:26,
from
/tmp/stapcVlKLM/stap_9691453a981c3fed6300ada89e578986_1302_src.c:21:
/usr/local/share/systemtap/runtime/sym.c:1159:5: error: conflicting types for
‘kallsyms_on_each_symbol’; have ‘int(int (*)(void *, const char *, struct
module *, long unsigned int), void *)’
1159 | int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct
module *,
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/ftrace.h:13,
from ./include/linux/kprobes.h:28,
from /usr/local/share/systemtap/runtime/linux/runtime.h:21:
./include/linux/kallsyms.h:70:5: note: previous declaration of
‘kallsyms_on_each_symbol’ with type ‘int(int (*)(void *, const char *, long
unsigned int), void *)’
70 | int kallsyms_on_each_symbol(int (*fn)(void *, const char *, unsigned
long),
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/share/systemtap/runtime/sym.c: In function
‘kallsyms_on_each_symbol’:
/usr/local/share/systemtap/runtime/sym.c:1166:85: error: passing argument 1 of
‘(int (*)(int (*)(void *, const char *, long unsigned int), void
*))_stp_kallsyms_on_each_symbol’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
1166 | return (*
(kallsyms_on_each_symbol_fn)_stp_kallsyms_on_each_symbol)(fn, data);
|
^~
|
|
|
int (*)(void *, const char *, struct module *, long unsigned int)
/usr/local/share/systemtap/runtime/sym.c:1166:85: note: expected ‘int (*)(void
*, const char *, long unsigned int)’ but argument is of type ‘int (*)(void *,
const char *, struct module *, long unsigned int)’
In file included from ./include/linux/kernel.h:30,
from ./arch/x86/include/asm/percpu.h:27,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:78,
from ./include/linux/spinlock.h:56,
from ./include/linux/mmzone.h:8,
from ./include/linux/gfp.h:7,
from
/usr/local/share/systemtap/runtime/linux/runtime_defines.h:20,
from /usr/local/share/systemtap/runtime/runtime_defines.h:8,
from
/tmp/stapcVlKLM/stap_9691453a981c3fed6300ada89e578986_1302_src.c:12:
/usr/local/share/systemtap/runtime/linux/print.c: In function
‘_stp_print_kernel_info’:
/usr/local/share/systemtap/runtime/linux/print.c:365:43: error: ‘struct module’
has no member named ‘module_core’
365 | (unsigned long) THIS_MODULE->module_core,
| ^~
./include/linux/printk.h:427:33: note: in definition of macro
‘printk_index_wrap’
427 | _p_func(_fmt, ##__VA_ARGS__);
\
| ^~~~~~~~~~~
/usr/local/share/systemtap/runtime/linux/print.c:348:9: note: in expansion of
macro ‘printk’
348 | printk(KERN_DEBUG
| ^~~~~~
/usr/local/share/systemtap/runtime/linux/print.c:366:44: error: ‘struct module’
has no member named ‘core_size’
366 | (unsigned long) (THIS_MODULE->core_size -
THIS_MODULE->core_text_size)/1024,
| ^~
./include/linux/printk.h:427:33: note: in definition of macro
‘printk_index_wrap’
427 | _p_func(_fmt, ##__VA_ARGS__);
\
| ^~~~~~~~~~~
/usr/local/share/systemtap/runtime/linux/print.c:348:9: note: in expansion of
macro ‘printk’
348 | printk(KERN_DEBUG
| ^~~~~~
/usr/local/share/systemtap/runtime/linux/print.c:366:71: error: ‘struct module’
has no member named ‘core_text_size’; did you mean ‘kprobes_text_size’?
366 | (unsigned long) (THIS_MODULE->core_size -
THIS_MODULE->core_text_size)/1024,
|
^~~~~~~~~~~~~~
./include/linux/printk.h:427:33: note: in definition of macro
‘printk_index_wrap’
427 | _p_func(_fmt, ##__VA_ARGS__);
\
| ^~~~~~~~~~~
/usr/local/share/systemtap/runtime/linux/print.c:348:9: note: in expansion of
macro ‘printk’
348 | printk(KERN_DEBUG
| ^~~~~~
/usr/local/share/systemtap/runtime/linux/print.c:367:46: error: ‘struct module’
has no member named ‘core_text_size’; did you mean ‘kprobes_text_size’?
367 | (unsigned long) (THIS_MODULE->core_text_size)/1024,
| ^~~~~~~~~~~~~~
./include/linux/printk.h:427:33: note: in definition of macro
‘printk_index_wrap’
427 | _p_func(_fmt, ##__VA_ARGS__);
\
| ^~~~~~~~~~~
/usr/local/share/systemtap/runtime/linux/print.c:348:9: note: in expansion of
macro ‘printk’
348 | printk(KERN_DEBUG
| ^~~~~~
cc1: all warnings being treated as errors
make[1]: *** [scripts/Makefile.build:252:
/tmp/stapcVlKLM/stap_9691453a981c3fed6300ada89e578986_1302_src.o] Error 1
make: *** [Makefile:2043: /tmp/stapcVlKLM] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_9691453a981c3fed6300ada89e578986_1302.ko" in
20970usr/4470sys/13543real ms.
Pass 4: compilation failed. [man error::pass4]
[root@rawh ~]#
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list