diff options
Diffstat (limited to 'drivers/edac/e752x_edac.c')
-rw-r--r-- | drivers/edac/e752x_edac.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c index 959f584f5687..770a5a633079 100644 --- a/drivers/edac/e752x_edac.c +++ b/drivers/edac/e752x_edac.c | |||
@@ -13,7 +13,7 @@ | |||
13 | * Wang Zhenyu at intel.com | 13 | * Wang Zhenyu at intel.com |
14 | * Dave Jiang at mvista.com | 14 | * Dave Jiang at mvista.com |
15 | * | 15 | * |
16 | * $Id: bluesmoke_e752x.c,v 1.5.2.11 2005/10/05 00:43:44 dsp_llnl Exp $ | 16 | * $Id: edac_e752x.c,v 1.5.2.11 2005/10/05 00:43:44 dsp_llnl Exp $ |
17 | * | 17 | * |
18 | */ | 18 | */ |
19 | 19 | ||
@@ -376,14 +376,14 @@ static inline void process_threshold_ce(struct mem_ctl_info *mci, u16 error, | |||
376 | mci->mc_idx); | 376 | mci->mc_idx); |
377 | } | 377 | } |
378 | 378 | ||
379 | char *global_message[11] = { | 379 | static char *global_message[11] = { |
380 | "PCI Express C1", "PCI Express C", "PCI Express B1", | 380 | "PCI Express C1", "PCI Express C", "PCI Express B1", |
381 | "PCI Express B", "PCI Express A1", "PCI Express A", | 381 | "PCI Express B", "PCI Express A1", "PCI Express A", |
382 | "DMA Controler", "HUB Interface", "System Bus", | 382 | "DMA Controler", "HUB Interface", "System Bus", |
383 | "DRAM Controler", "Internal Buffer" | 383 | "DRAM Controler", "Internal Buffer" |
384 | }; | 384 | }; |
385 | 385 | ||
386 | char *fatal_message[2] = { "Non-Fatal ", "Fatal " }; | 386 | static char *fatal_message[2] = { "Non-Fatal ", "Fatal " }; |
387 | 387 | ||
388 | static void do_global_error(int fatal, u32 errors) | 388 | static void do_global_error(int fatal, u32 errors) |
389 | { | 389 | { |
@@ -405,7 +405,7 @@ static inline void global_error(int fatal, u32 errors, int *error_found, | |||
405 | do_global_error(fatal, errors); | 405 | do_global_error(fatal, errors); |
406 | } | 406 | } |
407 | 407 | ||
408 | char *hub_message[7] = { | 408 | static char *hub_message[7] = { |
409 | "HI Address or Command Parity", "HI Illegal Access", | 409 | "HI Address or Command Parity", "HI Illegal Access", |
410 | "HI Internal Parity", "Out of Range Access", | 410 | "HI Internal Parity", "Out of Range Access", |
411 | "HI Data Parity", "Enhanced Config Access", | 411 | "HI Data Parity", "Enhanced Config Access", |
@@ -432,7 +432,7 @@ static inline void hub_error(int fatal, u8 errors, int *error_found, | |||
432 | do_hub_error(fatal, errors); | 432 | do_hub_error(fatal, errors); |
433 | } | 433 | } |
434 | 434 | ||
435 | char *membuf_message[4] = { | 435 | static char *membuf_message[4] = { |
436 | "Internal PMWB to DRAM parity", | 436 | "Internal PMWB to DRAM parity", |
437 | "Internal PMWB to System Bus Parity", | 437 | "Internal PMWB to System Bus Parity", |
438 | "Internal System Bus or IO to PMWB Parity", | 438 | "Internal System Bus or IO to PMWB Parity", |
@@ -458,6 +458,7 @@ static inline void membuf_error(u8 errors, int *error_found, int handle_error) | |||
458 | do_membuf_error(errors); | 458 | do_membuf_error(errors); |
459 | } | 459 | } |
460 | 460 | ||
461 | #if 0 | ||
461 | char *sysbus_message[10] = { | 462 | char *sysbus_message[10] = { |
462 | "Addr or Request Parity", | 463 | "Addr or Request Parity", |
463 | "Data Strobe Glitch", | 464 | "Data Strobe Glitch", |
@@ -469,6 +470,7 @@ char *sysbus_message[10] = { | |||
469 | "Memory Parity", | 470 | "Memory Parity", |
470 | "IO Subsystem Parity" | 471 | "IO Subsystem Parity" |
471 | }; | 472 | }; |
473 | #endif /* 0 */ | ||
472 | 474 | ||
473 | static void do_sysbus_error(int fatal, u32 errors) | 475 | static void do_sysbus_error(int fatal, u32 errors) |
474 | { | 476 | { |
@@ -1044,7 +1046,7 @@ static struct pci_driver e752x_driver = { | |||
1044 | }; | 1046 | }; |
1045 | 1047 | ||
1046 | 1048 | ||
1047 | int __init e752x_init(void) | 1049 | static int __init e752x_init(void) |
1048 | { | 1050 | { |
1049 | int pci_rc; | 1051 | int pci_rc; |
1050 | 1052 | ||