Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

EDAC/mce/amd: Unexport amd_decode_mce()

It is not used outside of the driver anymore.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Yazen Ghannam <Yazen.Ghannam@amd.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170123183514.13356-7-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Borislav Petkov and committed by
Ingo Molnar
1fbcd909 bd43f60a

+2 -3
+2 -2
drivers/edac/mce_amd.c
··· 942 942 return "Corrected error, no action required."; 943 943 } 944 944 945 - int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data) 945 + static int 946 + amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data) 946 947 { 947 948 struct mce *m = (struct mce *)data; 948 949 struct cpuinfo_x86 *c = &cpu_data(m->extcpu); ··· 1048 1047 1049 1048 return NOTIFY_STOP; 1050 1049 } 1051 - EXPORT_SYMBOL_GPL(amd_decode_mce); 1052 1050 1053 1051 static struct notifier_block amd_mce_dec_nb = { 1054 1052 .notifier_call = amd_decode_mce,
-1
drivers/edac/mce_amd.h
··· 79 79 void amd_report_gart_errors(bool); 80 80 void amd_register_ecc_decoder(void (*f)(int, struct mce *)); 81 81 void amd_unregister_ecc_decoder(void (*f)(int, struct mce *)); 82 - int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data); 83 82 84 83 #endif /* _EDAC_MCE_AMD_H */