On Thu, Sep 14, 2017 at 3:01 AM, Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx> wrote: > > Hi Christopher > > I'm using SMATCH for Linux Kernel + ARM compile. > It indicates below warning for almost all files on ARM compile. > Thus, it is difficult to check "real" CHECK. > Is this my/kernel fault ? Adding linux sparse mailing list. > CC sound/soc/soc-dapm.o > CHK kernel/config_data.h > linux/arch/arm64/include/asm/lse.h:14:28: warning: Unknown escape 'l' > linux/arch/arm64/include/asm/lse.h:14:37: warning: Unknown escape 'l' > linux/arch/arm64/include/asm/alternative.h:172:28: warning: Unknown escape 'o' This is cause by the assembly syntax in arm header file. > ... > .macro alt_lse, llsc, lse > alternative_insn "\llsc", "\lse", ARM64_HAS_LSE_ATOMICS > .endm > ... > It seems that ARM has some very interesting assembly directly embed into the C source code. That is not support by sparse. Those section of code is protected by __ASSEMBLY__ macro. Can you try to turn off __ASSEMBLY__ definition in the sparse invocation? As far as I can tell. That should get rid of the warning. Chris -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html