From: Rusty Russell Date: Fri, 25 Jul 2008 02:11:09 +0000 (+1000) Subject: Label kthread_create() with printf attribute tag. X-Git-Tag: v2.6.27-rc1~505 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ed9559d38a87a44e3bda87d73a50aab92471d7dc;p=linux-2.6-omap-h63xx.git Label kthread_create() with printf attribute tag. Obvious misc patch been in my queue (& linux-next) for over a cycle. Signed-off-by: Rusty Russell Signed-off-by: Linus Torvalds --- diff --git a/include/linux/kthread.h b/include/linux/kthread.h index 00dd957e245..aabc8a13ba7 100644 --- a/include/linux/kthread.h +++ b/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.