Skip to content

Commit

Permalink
Label kthread_create() with printf attribute tag.
Browse files Browse the repository at this point in the history
Obvious misc patch been in my queue (& linux-next) for over a cycle.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Rusty Russell authored and Linus Torvalds committed Jul 25, 2008
1 parent fb2e405 commit ed9559d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/linux/kthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ed9559d

Please sign in to comment.