9 May 03:17
incomplete spatch transforms?
Joe Perches <joe <at> perches.com>
2012-05-09 01:17:56 GMT
2012-05-09 01:17:56 GMT
Hi Julia. I have a cocci file I'm playing with to do a conversion of a linux kernel function compare_ether_addr to ether_addr_equal. It doesn't transform all the cases and I can't figure out why. $ spatch -version spatch version 1.0.0-rc12 with Python support and with PCRE support $ cat compare_ether_addr.cocci @@ expression a,b; @@ - !compare_ether_addr(a, b) + ether_addr_equal(a, b) @@ expression a,b; @@ - compare_ether_addr(a, b) + !ether_addr_equal(a, b) @@ expression a,b; @@ - !ether_addr_equal(a, b) == 0 + ether_addr_equal(a, b)(Continue reading)
RSS Feed