Skip to contentSkip to conversation

add __printf and __must_hold macro

PATCH In review [email protected] 2 participants 2 messages Apr 8, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add __printf and __must_hold macro

From: Jérôme Glisse <[email protected]>

---
 standard.h | 3 +++
 1 file changed, 3 insertions(+)
standard.h +3 -0
index d9200643..7ce601be 100644
@@ -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
#1 lore raw
Quoted 3 lines · On Mon, 8 Apr 2019, [email protected] wrote:

From: 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
index d9200643..7ce601be 100644
@@ -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