diff options
author | Wanlong Gao <wanlong.gao@gmail.com> | 2017-06-30 22:07:03 +0800 |
---|---|---|
committer | Jessica Yu <jeyu@kernel.org> | 2017-07-25 15:08:19 +0200 |
commit | 4fd3e4ef1f7e94299b42c2f473e196d0b8c114d0 (patch) | |
tree | 83acdc3581b72c357a89a3ebe639622e89237588 /firmware | |
parent | 520eccdfe187591a51ea9ab4c1a024ae4d0f68d9 (diff) |
modpost: abort if module name is too long
Module name has a limited length, but currently the build system
allows the build finishing even if the module name is too long.
CC /root/kprobe_example/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz.mod.o
/root/kprobe_example/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz.mod.c:9:2:
warning: initializer-string for array of chars is too long [enabled by default]
.name = KBUILD_MODNAME,
^
but it's merely a warning.
This patch adds the check of the module name length in modpost and stops
the build properly.
Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions