lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 15 Dec 2016 16:22:53 +0800
From:   Gaosheng Wu <wugsh15@....edu.cn>
To:     linux-kernel@...r.kernel.org
Cc:     GaoShengWu <wugsh15@....edu.cn>
Subject: [PATCH] kthread:fix coding style issue

From: GaoShengWu <wugsh15@....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@....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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ