From 4b2facdc8b1fd695cd8736737bf7d7be9af2c35d Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 3 Oct 2014 00:01:48 +0000 Subject: [PATCH] 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 --- kernel/time/posix-timers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c index 19184ccf6d4ede..a81083797e9729 100644 --- a/kernel/time/posix-timers.c +++ b/kernel/time/posix-timers.c @@ -344,7 +344,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; }