]> git.baikalelectronics.ru Git - kernel.git/commit
kthread: add __printf attributes
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>
Tue, 13 Dec 2016 00:40:39 +0000 (16:40 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 Dec 2016 02:55:06 +0000 (18:55 -0800)
commit3b209f607d8e519164dec8d54cec2376f6348ae4
treea7109f64961ac9ef94817f705eefe3bab07f12ab
parentbfce6c1fb0aae42a702c6d28708f84b8f31af798
kthread: add __printf attributes

When commit 9bb212402cae ("kthread: add kthread_create_worker*()")
introduced some kthread_create_...() functions which were taking
printf-like parametter, it introduced __printf attributes to some
functions (e.g.  kthread_create_worker()).  Nevertheless some new
functions were forgotten (they have been detected thanks to
-Wmissing-format-attribute warning flag).

Add the missing __printf attributes to the newly-introduced functions in
order to detect formatting issues at build-time with -Wformat flag.

Link: http://lkml.kernel.org/r/20161126193543.22672-1-nicolas.iooss_linux@m4x.org
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kthread.h
kernel/kthread.c