lkml.org 
[lkml]   [2016]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] kthread:fix coding style issue
Date
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

\
 
 \ /
  Last update: 2016-12-15 09:24    [W:0.034 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site