Skip to contentSkip to conversation

Label kthread_create() with printf attribute tag.

PATCH New Rusty Russell 1 participant 1 message Jul 25, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Label kthread_create() with printf attribute tag.

Obvious misc patch been in my queue (& linux-next) for over a cycle.

Linus please apply.

---
 include/linux/kthread.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/linux/kthread.h +2 -1
diff -r 9b5082037972 include/linux/kthread.h
@@ -6,7 +6,8 @@
 
 struct task_struct *kthread_create(int (*threadfn)(void *data),
 				   void *data,
-				   const char namefmt[], ...);
+				   const char namefmt[], ...)
+	__attribute__((format(printf, 3, 4)));
 
 /**
  * kthread_run - create and wake a thread.