add __printf and __must_hold macro
PATCH 1/1 add __printf and __must_hold macro
From: Jérôme Glisse <[email protected]>
Signed-off-by Jérôme Glisse <[email protected]>
--- standard.h | 3 +++ 1 file changed, 3 insertions(+)
standard.h +3 -0
@@ -368,6 +368,9 @@#define __releases (x)#define __acquires (x) +#define __must_hold (x) +#define __printf (a,b) +//now in lexer //#define __declspec(x)
Signature · 6 lines
2.20.1 _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
Quoted 3 lines · On Mon, 8 Apr 2019, [email protected] wrote:
From: Jérôme Glisse <[email protected]>
Signed-off-by Jérôme Glisse <[email protected]>
Thanks for the contribution. It's now available on github.
For macros, it would be helpful to do the following:
spatch --parse-c linuxkernel
apply patch
spatch --parse-c linuxkernel
Observe an improvement in the numbers that are printed out at the end.
These look safe enough, though.
julia
Quoted 19 lines
--- standard.h | 3 +++ 1 file changed, 3 insertions(+)standard.h +3
-1@@ -368,6 +368,9 @@#define __releases (x)#define __acquires (x) +#define __must_hold (x) +#define __printf (a,b) +//now in lexer //#define __declspec(x) --
Quoted 3 lines
2.20.1
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci