From: Andrew Morton Date: Wed, 14 May 2014 00:01:21 +0000 (+1000) Subject: kernel-posix-timersc-code-clean-up-checkpatch-fixes X-Git-Tag: next-20140516~2^2~430 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dde974deb44951845f1f9112fdb937ac1ba07bbd;p=karo-tx-linux.git kernel-posix-timersc-code-clean-up-checkpatch-fixes WARNING: space prohibited between function name and open parenthesis '(' #55: FILE: kernel/posix-timers.c:345: + sizeof (struct k_itimer), 0, ERROR: do not use assignment in if condition #70: FILE: kernel/posix-timers.c:504: + if ((event->sigev_notify & SIGEV_THREAD_ID) && total: 1 errors, 1 warnings, 192 lines checked ./patches/kernel-posix-timersc-code-clean-up.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Fabian Frederick Cc: Thomas Gleixner Signed-off-by: Andrew Morton --- diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c index 40652b2cd693..86535c06a154 100644 --- a/kernel/posix-timers.c +++ b/kernel/posix-timers.c @@ -342,7 +342,7 @@ static __init int init_posix_timers(void) posix_timers_register_clock(CLOCK_TAI, &clock_tai); posix_timers_cache = kmem_cache_create("posix_timers_cache", - sizeof (struct k_itimer), 0, + sizeof(struct k_itimer), 0, SLAB_PANIC, NULL); return 0; }