]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kernel/workqueue: Use __printf markup to silence compiler in function 'alloc_workqueue'
authorMathieu Malaterre <malat@debian.org>
Tue, 12 Mar 2019 20:21:26 +0000 (21:21 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 15 Mar 2019 15:47:22 +0000 (08:47 -0700)
Silence warnings (triggered at W=1) by adding relevant __printf attributes.

  kernel/workqueue.c:4249:2: warning: function 'alloc_workqueue' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c

index 4026d1871407ecbc78dbeaff6c88b2b41aa56647..56b7cf898f108220915c1a7d84a871c224c19b40 100644 (file)
@@ -4208,6 +4208,7 @@ static int init_rescuer(struct workqueue_struct *wq)
        return 0;
 }
 
+__printf(1, 4)
 struct workqueue_struct *alloc_workqueue(const char *fmt,
                                         unsigned int flags,
                                         int max_active, ...)