diff options
author | Wanlong Gao <wanlong.gao@gmail.com> | 2017-06-30 16:07:03 +0200 |
---|---|---|
committer | Jessica Yu <jeyu@kernel.org> | 2017-07-25 15:08:19 +0200 |
commit | 4fd3e4ef1f7e94299b42c2f473e196d0b8c114d0 (patch) | |
tree | 83acdc3581b72c357a89a3ebe639622e89237588 /scripts/namespace.pl | |
parent | Linux 4.13-rc2 (diff) | |
download | linux-4fd3e4ef1f7e94299b42c2f473e196d0b8c114d0.tar.xz linux-4fd3e4ef1f7e94299b42c2f473e196d0b8c114d0.zip |
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 'scripts/namespace.pl')
0 files changed, 0 insertions, 0 deletions