forked from luck/tmp_suning_uos_patched
EDAC, MCE, AMD: Remove unneeded exports
Initially, those strings describing different parts of an MCE message were shared with amd64_edac and were therefore exported to modules. However, all except pp_msgs are used only in one place right now so hide them and make them static. No functionality change. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Borislav Petkov <bp@alien8.de>
This commit is contained in:
parent
980eec8b20
commit
0f08669e86
|
@ -39,33 +39,28 @@ EXPORT_SYMBOL_GPL(amd_unregister_ecc_decoder);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* transaction type */
|
/* transaction type */
|
||||||
const char * const tt_msgs[] = { "INSN", "DATA", "GEN", "RESV" };
|
static const char * const tt_msgs[] = { "INSN", "DATA", "GEN", "RESV" };
|
||||||
EXPORT_SYMBOL_GPL(tt_msgs);
|
|
||||||
|
|
||||||
/* cache level */
|
/* cache level */
|
||||||
const char * const ll_msgs[] = { "RESV", "L1", "L2", "L3/GEN" };
|
static const char * const ll_msgs[] = { "RESV", "L1", "L2", "L3/GEN" };
|
||||||
EXPORT_SYMBOL_GPL(ll_msgs);
|
|
||||||
|
|
||||||
/* memory transaction type */
|
/* memory transaction type */
|
||||||
const char * const rrrr_msgs[] = {
|
static const char * const rrrr_msgs[] = {
|
||||||
"GEN", "RD", "WR", "DRD", "DWR", "IRD", "PRF", "EV", "SNP"
|
"GEN", "RD", "WR", "DRD", "DWR", "IRD", "PRF", "EV", "SNP"
|
||||||
};
|
};
|
||||||
EXPORT_SYMBOL_GPL(rrrr_msgs);
|
|
||||||
|
|
||||||
/* participating processor */
|
/* participating processor */
|
||||||
const char * const pp_msgs[] = { "SRC", "RES", "OBS", "GEN" };
|
const char * const pp_msgs[] = { "SRC", "RES", "OBS", "GEN" };
|
||||||
EXPORT_SYMBOL_GPL(pp_msgs);
|
EXPORT_SYMBOL_GPL(pp_msgs);
|
||||||
|
|
||||||
/* request timeout */
|
/* request timeout */
|
||||||
const char * const to_msgs[] = { "no timeout", "timed out" };
|
static const char * const to_msgs[] = { "no timeout", "timed out" };
|
||||||
EXPORT_SYMBOL_GPL(to_msgs);
|
|
||||||
|
|
||||||
/* memory or i/o */
|
/* memory or i/o */
|
||||||
const char * const ii_msgs[] = { "MEM", "RESV", "IO", "GEN" };
|
static const char * const ii_msgs[] = { "MEM", "RESV", "IO", "GEN" };
|
||||||
EXPORT_SYMBOL_GPL(ii_msgs);
|
|
||||||
|
|
||||||
/* internal error type */
|
/* internal error type */
|
||||||
const char * const uu_msgs[] = { "RESV", "RESV", "HWA", "RESV" };
|
static const char * const uu_msgs[] = { "RESV", "RESV", "HWA", "RESV" };
|
||||||
|
|
||||||
static const char * const f15h_mc1_mce_desc[] = {
|
static const char * const f15h_mc1_mce_desc[] = {
|
||||||
"UC during a demand linefill from L2",
|
"UC during a demand linefill from L2",
|
||||||
|
|
|
@ -35,6 +35,8 @@
|
||||||
#define MCI_STATUS_DEFERRED BIT_64(44)
|
#define MCI_STATUS_DEFERRED BIT_64(44)
|
||||||
#define MCI_STATUS_POISON BIT_64(43)
|
#define MCI_STATUS_POISON BIT_64(43)
|
||||||
|
|
||||||
|
extern const char * const pp_msgs[];
|
||||||
|
|
||||||
enum tt_ids {
|
enum tt_ids {
|
||||||
TT_INSTR = 0,
|
TT_INSTR = 0,
|
||||||
TT_DATA,
|
TT_DATA,
|
||||||
|
@ -68,13 +70,6 @@ enum rrrr_ids {
|
||||||
R4_SNOOP,
|
R4_SNOOP,
|
||||||
};
|
};
|
||||||
|
|
||||||
extern const char * const tt_msgs[];
|
|
||||||
extern const char * const ll_msgs[];
|
|
||||||
extern const char * const rrrr_msgs[];
|
|
||||||
extern const char * const pp_msgs[];
|
|
||||||
extern const char * const to_msgs[];
|
|
||||||
extern const char * const ii_msgs[];
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* per-family decoder ops
|
* per-family decoder ops
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user