diff options
author | Mathieu Malaterre <malat@debian.org> | 2019-03-12 21:21:26 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2019-03-15 08:47:22 -0700 |
commit | a2775bbc1d58ce630517dfe86090c166f27d719f (patch) | |
tree | 6e56619ad1beb5b034aaf31ed3548ce79aa12733 /kernel | |
parent | f261c4e529dac5608a604d3dd3ae1cd2adf23c89 (diff) | |
download | linux-stable-a2775bbc1d58ce630517dfe86090c166f27d719f.tar.gz linux-stable-a2775bbc1d58ce630517dfe86090c166f27d719f.tar.bz2 linux-stable-a2775bbc1d58ce630517dfe86090c166f27d719f.zip |
kernel/workqueue: Use __printf markup to silence compiler in function 'alloc_workqueue'
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/workqueue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 4026d1871407..56b7cf898f10 100644 --- 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, ...) |