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 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