]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
workqueue-make-alloc_workqueue-take-printf-fmt-and-args-for-name-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 16 Dec 2011 04:50:43 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 19 Dec 2011 07:19:55 +0000 (18:19 +1100)
use __printf

Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/workqueue.h

index c87e86b297f44e281a7c4f4f72f6708153fbbf16..eb8b9f15f2e03b24ec6ca89b188ee9b955478268 100644 (file)
@@ -298,8 +298,7 @@ extern struct workqueue_struct *system_freezable_wq;
 
 extern struct workqueue_struct *
 __alloc_workqueue_key(const char *fmt, unsigned int flags, int max_active,
-                     struct lock_class_key *key, const char *lock_name, ...)
-       __attribute__((format (printf, 1, 6)));
+       struct lock_class_key *key, const char *lock_name, ...) __printf(1, 6);
 
 /**
  * alloc_workqueue - allocate a workqueue