Skip to contentSkip to conversation

kernel/panic.c: fix checkpatch erros on style and initialization.

PATCH In review Dishank Jogi 2 participants 2 messages Jul 29, 2025 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 '['.
---------------------------------------------

---
 kernel/panic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/panic.c +2 -2
index b0b9a8bf4560..38b4ad6fcb2b 100644
@@ -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,						\
Signature · 1 line
2.43.0