The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] kernel/panic.c: fix checkpatch erros on style and initialization.
@ 2025-07-29 13:33 Dishank Jogi
  2025-07-29 15:55 ` Markus Elfring
  0 siblings, 1 reply; 2+ messages in thread
From: Dishank Jogi @ 2025-07-29 13:33 UTC (permalink / raw)
  To: Petr Mladek
  Cc: John Ogness, Thomas Gleixner, Joel Granados, Jason Gunthorpe,
	Josh Poimboeuf, Ryo Takakura, linux-kernel, Dishank Jogi

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

Signed-off-by: Dishank Jogi <jogidishank503@gmail.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-29 16:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-29 13:33 [PATCH] kernel/panic.c: fix checkpatch erros on style and initialization Dishank Jogi
2025-07-29 15:55 ` Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox