Powered by Linux
Re: SMATCH indicates warning to almost all files in Linux Kernel + ARM — Semantic Matching Tool

Re: SMATCH indicates warning to almost all files in Linux Kernel + ARM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 14, 2017 at 5:55 PM, Christopher Li <sparse@xxxxxxxxxxx> wrote:
> 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.

Adding Dan & smatch 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

This is solved in sparse since commit f83c2b8f0b5fcb8f60342b5a2fa51a84901f355a:
    "warn on unknown escapes after preprocessing"

-- Luc Van Oostenryck
--
To unsubscribe from this list: send the line "unsubscribe smatch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux