Re: [cocci] Checking data structure member accesses after function return value assignments?

Markus Elfring <[email protected]>
Newsgroups fr.inria.cocci
Message-ID <[email protected]>
>> Under which circumstances will corresponding software improvements become more likely?
> 
> If a semantic patch doesn't match when you expect it to, the most likely
> issue is that the C code you expected to match doesn't parse.

Please take another look at a linked information source.
https://elixir.bootlin.com/linux/v6.19-rc5/source/drivers/regulator/fp9931.c#L441-L442


>                                                                Did you try
> spatch --parse-c on that file.  You have to see if there is BUG or bug at
> the beginning of the relevant lines.

Markus_Elfring@Sonne:…/Projekte/Linux/next-analyses> time /usr/bin/spatch --parse-c drivers/regulator/fp9931.c
…
nb good = 553,  nb bad = 0 =========> 100.00% good or passed

real    0m0,057s
user    0m0,045s
sys     0m0,009s


Regards,
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.