[PATCH v2 2/2] kbuild: fix asm-offset generation to work with clang

2017-04-21 Thread Masahiro Yamada
From: Jeroen Hofstee 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/

[PATCH v2 2/2] kbuild: fix asm-offset generation to work with clang

2017-04-21 Thread Masahiro Yamada
From: Jeroen Hofstee 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