Fix a checkpatch warning:
ras-events.c:66: WARNING:AVOID_EXTERNS: externs should be avoided in .c files
by better handing how checks_inside var is handled.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
#define ENDIAN KBUFFER_ENDIAN_BIG
#endif
-extern char *choices_disable;
+char *choices_disable;
static const struct event_trigger event_triggers[] = {
{ "mc_event", &mc_event_trigger_setup },
#include "types.h"
+extern char *choices_disable;
+
struct mce_priv;
struct ras_mc_offline_event;
#define TOOL_DESCRIPTION "RAS daemon to log the RAS events."
#define ARGS_DOC "<options>"
#define DISABLE "DISABLE"
-char *choices_disable;
const char *argp_program_version = TOOL_NAME " " VERSION;
const char *argp_program_bug_address = "Mauro Carvalho Chehab <mchehab@kernel.org>";