]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kbuild: Increase kallsyms max symbol length
authorJoe Mario <jmario@redhat.com>
Wed, 23 Oct 2013 13:06:53 +0000 (15:06 +0200)
committerMichal Marek <mmarek@suse.cz>
Wed, 6 Nov 2013 21:25:42 +0000 (22:25 +0100)
commiteea0e9cbb9e65cd553d302a4aefd4c7b70d9fd90
tree1c7a1c62fb7b271f10a9d1504dc76677162f8a8b
parent80970472179a45609c0b11b80619bc8c32b15f77
kbuild: Increase kallsyms max symbol length

[AK: This seems like a ticking time bomb even without LTO,
so should be merged now. It causes very weird problems.
Thanks to Joe for tracking them down.]

With the added postfixes that LTO adds for local
symbols, the longest name in the kernel overflows
the namebuf[KSYM_NAME_LEN] array by two bytes.  That name is:
__pci_fixup_resumePCI_VENDOR_ID_SERVERWORKSPCI_DEVICE_ID_SERVERWORKS_HT1000SBquirk_disable_broadcom_boot_interrupt.1488004.672802

Double the max symbol name length.

v2: Use 255  (Joe Perches)
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
include/linux/kallsyms.h