Messages in this thread Patch in this message | | | From | Gaosheng Wu <> | Subject | [PATCH] kthread:fix coding style issue | Date | Thu, 15 Dec 2016 16:22:53 +0800 |
| |
From: GaoShengWu <wugsh15@lzu.edu.cn>
Line 28 of kthread.c violates chapter 3 of CodingStyle - put the opening brace last on the line, and put the closing brace first.
Signed-off-by: GaoShengWu <wugsh15@lzu.edu.cn> ---
checkpatch.pl complained as the following: ERROR: open brace '{' following struct go on the same line #28: FILE: kernel/kthread.c:28: +struct kthread_create_info +{
Patch was compile checked with: x86_64_defconfig
Patch is aginst:4.9.0 (localversion-next is next-20161213)
kernel/kthread.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/kernel/kthread.c b/kernel/kthread.c index 2318fba..8888f89 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c @@ -24,8 +24,7 @@ static DEFINE_SPINLOCK(kthread_create_lock); static LIST_HEAD(kthread_create_list); struct task_struct *kthreadd_task; -struct kthread_create_info -{ +struct kthread_create_info { /* Information passed to kthread() from kthreadd. */ int (*threadfn)(void *data); void *data; -- 2.1.4
| |