Re: [PATCH v6] Kunit to check the longest symbol length

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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%2F+DtvAVS@xxxxxxxxx/

Cheers,
 Sergio

 Sergio





[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux