diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-08-08 07:46:20 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2015-08-08 12:22:08 +0200 |
commit | 5cfb203a304deaaa8c7c5368722b214d24583137 (patch) | |
tree | 922f699aaabbb7dd1154af56005357b1d14a0f8e /kernel | |
parent | Merge tag 'arc-v4.2-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff) | |
download | linux-5cfb203a304deaaa8c7c5368722b214d24583137.tar.xz linux-5cfb203a304deaaa8c7c5368722b214d24583137.zip |
modpost: abort if a module symbol is too long
Module symbols have a limited length, but currently the build system
allows the build finishing even if the driver code contains a too long
symbol name, which eventually overflows the modversion_info[] item.
The compiler may catch at compiling *.mod.c like
CC xxx.mod.o
xxx.mod.c:18:16: warning: initializer-string for array of chars is too long
but it's merely a warning.
This patch adds the check of the symbol length in modpost and stops
the build properly.
Currently MODULE_NAME_LEN is defined in modpost.c instead of referring
to the definition in kernel header because including linux/module.h is
messy and we must cover cross-compilation.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions