]> 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>
Wed, 30 Nov 2011 04:12:03 +0000 (15:12 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 30 Nov 2011 04:14:07 +0000 (15:14 +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