EDAC, mce_amd_inj: Make inj_type static
authorkbuild test robot <fengguang.wu@intel.com>
Fri, 5 Jun 2015 11:24:26 +0000 (19:24 +0800)
committerBorislav Petkov <bp@suse.de>
Wed, 24 Jun 2015 16:16:11 +0000 (18:16 +0200)
It is used there only anyway.

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Cc: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: kbuild-all@01.org
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20150605112426.GA97073@lkp-sb04
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/mce_amd_inj.c

index b8385ccd10647075e9918b7a7e670294f1437c5d..eb8356e2df3e1e5c96f95c2d15c61bf7883aafcb 100644 (file)
@@ -44,7 +44,7 @@ static const char * const flags_options[] = {
 };
 
 /* Set default injection to SW_INJ */
-enum injection_type inj_type = SW_INJ;
+static enum injection_type inj_type = SW_INJ;
 
 #define MCE_INJECT_SET(reg)                                            \
 static int inj_##reg##_set(void *data, u64 val)                                \