diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-10-22 14:38:18 +0000 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2016-10-22 20:10:38 +0200 |
commit | 240ea9214a6042f3807fd09f149d74ae5700e117 (patch) | |
tree | 01f4928c0e95823417f02c4277494caa1b828b8d /drivers/edac | |
parent | 9a9260ca926c6e7b6bcfd3c93a1820d86565ff4f (diff) |
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: Wei 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.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/skx_edac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/skx_edac.c b/drivers/edac/skx_edac.c index f3b3d3be1e84..9edcb29b3001 100644 --- a/drivers/edac/skx_edac.c +++ b/drivers/edac/skx_edac.c @@ -263,7 +263,7 @@ fail: 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 }, { } }; @@ -1037,7 +1037,7 @@ static void skx_remove(void) * search for all the devices we need * check which DIMMs are present. */ -int __init skx_init(void) +static int __init skx_init(void) { const struct x86_cpu_id *id; const struct munit *m; |