Hello

> > +#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

In the file insn_decoder_test.c, is added otherwise, when configuring
that test with CONFIG_X86_DECODER_SELFTEST, you would get the error
```
arch/x86/tools/insn_decoder_test.c:110:24: error: ‘KSYM_NAME_LEN’
undeclared (first use in this function)
  110 | #define BUFSIZE (256 + KSYM_NAME_LEN)
```
This was proposed here:
https://lore.kernel.org/lkml/y9es4ukl%[email protected]/

Cheers,
 Sergio

 Sergio

Reply via email to