diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-04 10:29:25 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-11 12:23:52 -0400 |
commit | 03f7eae80f4b913929be84e0c883ee98196fd6ff (patch) | |
tree | 5babfa8755aa6f421745ae7c0d29882d5da8e355 /drivers/edac/e752x_edac.c | |
parent | 075f30901e32feefd3641e6c5537611fd7e27b59 (diff) |
edac: remove arch-specific parameter for the error handler
Remove the arch-dependent parameter, as it were not used,
as the MCE tracepoint weren't implemented. It probably doesn't
make sense to have an MCE-specific tracepoint, as this will
cost more bytes at the tracepoint, and tracepoint is not free.
The changes at the EDAC drivers were done by this small perl script:
$file .=$_ while (<>);
$file =~ s/(edac_mc_handle_error)\s*\(([^\;]+)\,([^\,\)]+)\s*\)/$1($2)/g;
print $file;
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac/e752x_edac.c')
-rw-r--r-- | drivers/edac/e752x_edac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c index 675ba3c284eb..b5a8bf1292ac 100644 --- a/drivers/edac/e752x_edac.c +++ b/drivers/edac/e752x_edac.c | |||
@@ -374,7 +374,7 @@ static void do_process_ce(struct mem_ctl_info *mci, u16 error_one, | |||
374 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, | 374 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, |
375 | page, offset_in_page(sec1_add << 4), sec1_syndrome, | 375 | page, offset_in_page(sec1_add << 4), sec1_syndrome, |
376 | row, channel, -1, | 376 | row, channel, -1, |
377 | "e752x CE", "", NULL); | 377 | "e752x CE", ""); |
378 | } | 378 | } |
379 | 379 | ||
380 | static inline void process_ce(struct mem_ctl_info *mci, u16 error_one, | 380 | static inline void process_ce(struct mem_ctl_info *mci, u16 error_one, |
@@ -412,7 +412,7 @@ static void do_process_ue(struct mem_ctl_info *mci, u16 error_one, | |||
412 | block_page, | 412 | block_page, |
413 | offset_in_page(error_2b << 4), 0, | 413 | offset_in_page(error_2b << 4), 0, |
414 | row, -1, -1, | 414 | row, -1, -1, |
415 | "e752x UE from Read", "", NULL); | 415 | "e752x UE from Read", ""); |
416 | 416 | ||
417 | } | 417 | } |
418 | if (error_one & 0x0404) { | 418 | if (error_one & 0x0404) { |
@@ -431,7 +431,7 @@ static void do_process_ue(struct mem_ctl_info *mci, u16 error_one, | |||
431 | block_page, | 431 | block_page, |
432 | offset_in_page(error_2b << 4), 0, | 432 | offset_in_page(error_2b << 4), 0, |
433 | row, -1, -1, | 433 | row, -1, -1, |
434 | "e752x UE from Scruber", "", NULL); | 434 | "e752x UE from Scruber", ""); |
435 | } | 435 | } |
436 | } | 436 | } |
437 | 437 | ||
@@ -456,7 +456,7 @@ static inline void process_ue_no_info_wr(struct mem_ctl_info *mci, | |||
456 | edac_dbg(3, "\n"); | 456 | edac_dbg(3, "\n"); |
457 | edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 0, 0, 0, | 457 | edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 0, 0, 0, |
458 | -1, -1, -1, | 458 | -1, -1, -1, |
459 | "e752x UE log memory write", "", NULL); | 459 | "e752x UE log memory write", ""); |
460 | } | 460 | } |
461 | 461 | ||
462 | static void do_process_ded_retry(struct mem_ctl_info *mci, u16 error, | 462 | static void do_process_ded_retry(struct mem_ctl_info *mci, u16 error, |