projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f261c4e
)
kernel/workqueue: Use __printf markup to silence compiler in function 'alloc_workqueue'
author
Mathieu Malaterre
<malat@debian.org>
Tue, 12 Mar 2019 20:21:26 +0000
(21:21 +0100)
committer
Tejun 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
patch
|
blob
|
blame
|
history
diff --git
a/kernel/workqueue.c
b/kernel/workqueue.c
index 4026d1871407ecbc78dbeaff6c88b2b41aa56647..56b7cf898f108220915c1a7d84a871c224c19b40 100644
(file)
--- a/
kernel/workqueue.c
+++ b/
kernel/workqueue.c
@@
-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, ...)