summaryrefslogtreecommitdiff
path: root/scripts/ver_linux
diff options
context:
space:
mode:
authorJeroen Hofstee <jeroen@myspectrum.nl>2017-04-21 09:21:11 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-27 18:07:57 +0300
commit57c47840248ca79ce57306d018dce30681c2eab7 (patch)
tree70e0a9d8cea8d5704e5ea0c7cc7dfc5533ccce2f /scripts/ver_linux
parent9ee9a0eb53d7c3eec581aacf9b8d24e8467f3e09 (diff)
downloadlinux-57c47840248ca79ce57306d018dce30681c2eab7.tar.xz
kbuild: fix asm-offset generation to work with clang
commit cf0c3e68aa81f992b0301f62e341b710d385bf68 upstream. KBuild abuses the asm statement to write to a file and clang chokes about these invalid asm statements. Hack it even more by fooling this is actual valid asm code. [masahiro: Import Jeroen's work for U-Boot: http://patchwork.ozlabs.org/patch/375026/ Tweak sed script a little to avoid garbage '#' for GCC case, like #define NR_PAGEFLAGS 23 /* __NR_PAGEFLAGS # */ ] Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> Tested-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/ver_linux')
0 files changed, 0 insertions, 0 deletions