public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Label kthread_create() with printf attribute tag.
@ 2008-04-20 20:35 Rusty Russell
  2008-04-20 20:38 ` [PATCH] usb: libusual kthread_run() called with wrong format Rusty Russell
  0 siblings, 1 reply; 3+ messages in thread
From: Rusty Russell @ 2008-04-20 20:35 UTC (permalink / raw)
  To: linux-kernel

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 include/linux/kthread.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -r 9b5082037972 include/linux/kthread.h
--- a/include/linux/kthread.h	Mon Apr 07 17:06:45 2008 +1000
+++ b/include/linux/kthread.h	Mon Apr 07 17:07:09 2008 +1000
@@ -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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] usb: libusual kthread_run() called with wrong format.
  2008-04-20 20:35 [PATCH] Label kthread_create() with printf attribute tag Rusty Russell
@ 2008-04-20 20:38 ` Rusty Russell
  0 siblings, 0 replies; 3+ messages in thread
From: Rusty Russell @ 2008-04-20 20:38 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg Kroah-Hartman, linux-usb-devel, mdharm-usb

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 drivers/usb/storage/libusual.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -r bf2ff23fda93 drivers/usb/storage/libusual.c
--- a/drivers/usb/storage/libusual.c	Mon Apr 07 17:07:09 2008 +1000
+++ b/drivers/usb/storage/libusual.c	Mon Apr 07 17:30:33 2008 +1000
@@ -134,7 +134,7 @@ static int usu_probe(struct usb_interfac
 	stat[type].fls |= USU_MOD_FL_THREAD;
 	spin_unlock_irqrestore(&usu_lock, flags);
 
-	task = kthread_run(usu_probe_thread, (void*)type, "libusual_%d", type);
+	task = kthread_run(usu_probe_thread, (void*)type, "libusual_%ld", type);
 	if (IS_ERR(task)) {
 		rc = PTR_ERR(task);
 		printk(KERN_WARNING "libusual: "

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] Label kthread_create() with printf attribute tag.
@ 2008-07-25  2:11 Rusty Russell
  0 siblings, 0 replies; 3+ messages in thread
From: Rusty Russell @ 2008-07-25  2:11 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Andrew Morton, linux-kernel

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

Linus please apply.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 include/linux/kthread.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -r 9b5082037972 include/linux/kthread.h
--- a/include/linux/kthread.h	Mon Apr 07 17:06:45 2008 +1000
+++ b/include/linux/kthread.h	Mon Apr 07 17:07:09 2008 +1000
@@ -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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-25  2:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-20 20:35 [PATCH] Label kthread_create() with printf attribute tag Rusty Russell
2008-04-20 20:38 ` [PATCH] usb: libusual kthread_run() called with wrong format Rusty Russell
  -- strict thread matches above, loose matches on Subject: below --
2008-07-25  2:11 [PATCH] Label kthread_create() with printf attribute tag Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox