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]

 



Hi Luc

> > I tried variously things, and it seems smatch doesn't check #if ?
> > This lse.h file is this construction.
> >
> > --- lse.h ----------
> >         ...
> >         #if defined(CONFIG_AS_LSE) && defined(CONFIG_ARM64_LSE_ATOMICS)
> 
> I'm sure that smatch does check #if, but the wrong warnings you saw about the
> escaped 'l' & 'o' are issued during tokenization, before the
> pre-processing took place.
> So using #ifdef __ASSEMBLER  or anything using pre-processing won't help you.
> The commit I gave here above is really needed.

OK, thank you for your help.
I'm looking forward to use your patch

Best regards
---
Kuninori Morimoto
--
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