Commit 240ea921 authored by Wei Yongjun's avatar Wei Yongjun Committed by Borislav Petkov

EDAC, skx_edac: Fix non static symbol warnings

Fix the following sparse warnings:

  drivers/edac/skx_edac.c:266:25: warning:
   symbol 'skx_cpuids' was not declared. Should it be static?
  drivers/edac/skx_edac.c:1040:12: warning:
   symbol 'skx_init' was not declared. Should it be static?
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1477147098-2842-1-git-send-email-weiyj.lk@gmail.comSigned-off-by: default avatarBorislav Petkov <bp@suse.de>
parent 9a9260ca
...@@ -263,7 +263,7 @@ static int get_all_munits(const struct munit *m) ...@@ -263,7 +263,7 @@ static int get_all_munits(const struct munit *m)
return -ENODEV; return -ENODEV;
} }
const struct x86_cpu_id skx_cpuids[] = { static const struct x86_cpu_id skx_cpuids[] = {
{ X86_VENDOR_INTEL, 6, INTEL_FAM6_SKYLAKE_X, 0, 0 }, { X86_VENDOR_INTEL, 6, INTEL_FAM6_SKYLAKE_X, 0, 0 },
{ } { }
}; };
...@@ -1037,7 +1037,7 @@ static void skx_remove(void) ...@@ -1037,7 +1037,7 @@ static void skx_remove(void)
* search for all the devices we need * search for all the devices we need
* check which DIMMs are present. * check which DIMMs are present.
*/ */
int __init skx_init(void) static int __init skx_init(void)
{ {
const struct x86_cpu_id *id; const struct x86_cpu_id *id;
const struct munit *m; const struct munit *m;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment