From f79e098e9698f9e09c8dc6845ee1da7b847936ae Mon Sep 17 00:00:00 2001 From: CppHacker-dev <120784194+CppHacker-dev@users.noreply.github.com> Date: Thu, 17 Oct 2024 22:23:53 +0200 Subject: [PATCH 1/2] Update exit.c --- kernel/exit.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kernel/exit.c b/kernel/exit.c index 619f0014c33b..21b64e44ffef 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -79,10 +79,12 @@ #include "exit.h" /* - * The default value should be high enough to not crash a system that randomly - * crashes its kernel from time to time, but low enough to at least not permit - * overflowing 32-bit refcounts or the ldsem writer count. + * The default value should be set high enough to prevent system crashes + * caused by occasional kernel faults, but still low enough to avoid issues + * like overflowing 32-bit reference counters or exceeding the writer count + * for ldsem. */ + static unsigned int oops_limit = 10000; #ifdef CONFIG_SYSCTL From aebfba0c551396959bfa1f246fd16f429c63cd3d Mon Sep 17 00:00:00 2001 From: CppHacker-dev <120784194+CppHacker-dev@users.noreply.github.com> Date: Wed, 23 Oct 2024 13:35:13 +0200 Subject: [PATCH 2/2] Update stratix10-smc.h --- include/linux/firmware/intel/stratix10-smc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/firmware/intel/stratix10-smc.h b/include/linux/firmware/intel/stratix10-smc.h index ee80ca4bb0d0..2c22e31af4b9 100644 --- a/include/linux/firmware/intel/stratix10-smc.h +++ b/include/linux/firmware/intel/stratix10-smc.h @@ -3,6 +3,8 @@ * Copyright (C) 2017-2018, Intel Corporation */ +#pragma once + #ifndef __STRATIX10_SMC_H #define __STRATIX10_SMC_H