On Tue, Jan 28, 2025 at 1:24 PM Sergio González Collado sergio.collado@gmail.com wrote:
+#include <linux/kallsysms.h>
Typo?
#include <linux/kallsysms.h> is needed to be able to read KSYM_NAME_LEN: https://elixir.bootlin.com/linux/v6.13/source/include/linux/kallsyms.h#L18
What I meant is that the `#include` in the patch is:
kallsysms.h
which is different from:
kallsyms.h
Does that file build? Or am I missing something?
I just tried, and I indeed get:
HOSTCC arch/x86/tools/insn_decoder_test arch/x86/tools/insn_decoder_test.c:13:10: fatal error: 'linux/kallsysms.h' file not found 13 | #include <linux/kallsysms.h> | ^~~~~~~~~~~~~~~~~~~ 1 error generated.
Thanks!
Cheers, Miguel