From 532c7ae0174dba0c7be2dd9d338d04ac30c3e0ae Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 30 Nov 2011 15:12:03 +1100 Subject: [PATCH] workqueue-make-alloc_workqueue-take-printf-fmt-and-args-for-name-fix use __printf Cc: Tejun Heo Signed-off-by: Andrew Morton --- include/linux/workqueue.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index c87e86b297f4..eb8b9f15f2e0 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h @@ -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 -- 2.39.5