Label kthread_create() with printf attribute tag.
Subsystems (2)
PATCH 1/1 Label kthread_create() with printf attribute tag.
Signed-off-by Rusty Russell <[email protected]>
--- include/linux/kthread.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
include/linux/kthread.h +2 -1
@@ -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.
PATCH 1/1 usb: libusual kthread_run() called with wrong format.
Signed-off-by Rusty Russell <[email protected]>
--- drivers/usb/storage/libusual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/storage/libusual.c +1 -1
@@ -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: "