]> git.kernelconcepts.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>
Thu, 8 Dec 2011 04:42:52 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Dec 2011 06:43:35 +0000 (17:43 +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