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]
Message-ID: <20250729133340.9613-1-jogidishank503@gmail.com>
Date: Tue, 29 Jul 2025 13:33:40 +0000
From: Dishank Jogi <jogidishank503@...il.com>
To: Petr Mladek <pmladek@...e.com>
Cc: John Ogness <john.ogness@...utronix.de>,
	Thomas Gleixner <tglx@...utronix.de>,
	Joel Granados <joel.granados@...nel.org>,
	Jason Gunthorpe <jgg@...pe.ca>,
	Josh Poimboeuf <jpoimboe@...nel.org>,
	Ryo Takakura <takakura@...inux.co.jp>,
	linux-kernel@...r.kernel.org,
	Dishank Jogi <jogidishank503@...il.com>
Subject: [PATCH] kernel/panic.c: fix checkpatch erros on style and initialization.

---------------------------------------------
Fixes:
  - ERROR: do not initialise globals to false.
  - ERROR: space prohibited before open square bracket '['.
---------------------------------------------

Signed-off-by: Dishank Jogi <jogidishank503@...il.com>
---
 kernel/panic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/panic.c b/kernel/panic.c
index b0b9a8bf4560..38b4ad6fcb2b 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -61,7 +61,7 @@ static DEFINE_SPINLOCK(pause_on_oops_lock);
 bool crash_kexec_post_notifiers;
 int panic_on_warn __read_mostly;
 unsigned long panic_on_taint;
-bool panic_on_taint_nousertaint = false;
+bool panic_on_taint_nousertaint;
 static unsigned int warn_limit __read_mostly;
 
 bool panic_triggering_all_cpu_backtrace;
@@ -509,7 +509,7 @@ void panic(const char *fmt, ...)
 EXPORT_SYMBOL(panic);
 
 #define TAINT_FLAG(taint, _c_true, _c_false, _module)			\
-	[ TAINT_##taint ] = {						\
+	[TAINT_##taint] = {						\
 		.c_true = _c_true, .c_false = _c_false,			\
 		.module = _module,					\
 		.desc = #taint,						\
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ