Skip to content

Commit

Permalink
EDAC, MCE: Remove unused function parameter
Browse files Browse the repository at this point in the history
Remove remains from previous functionality.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
  • Loading branch information
Borislav Petkov authored and Borislav Petkov committed Oct 21, 2010
1 parent c9f281f commit 0ee8efa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion drivers/edac/amd64_edac_dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static ssize_t amd64_nbea_store(struct mem_ctl_info *mci, const char *data,

/* Process the Mapping request */
/* TODO: Add race prevention */
amd_decode_nb_mce(pvt->mc_node_id, &pvt->ctl_error_info, 1);
amd_decode_nb_mce(pvt->mc_node_id, &pvt->ctl_error_info);

return count;
}
Expand Down
7 changes: 2 additions & 5 deletions drivers/edac/edac_mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,10 @@ static void amd_decode_ls_mce(u64 mc3_status)
pr_emerg(HW_ERR "Corrupted LS MCE info?\n");
}

void amd_decode_nb_mce(int node_id, struct err_regs *regs, int handle_errors)
void amd_decode_nb_mce(int node_id, struct err_regs *regs)
{
u32 ec = ERROR_CODE(regs->nbsl);

if (!handle_errors)
return;

/*
* GART TLB error reporting is disabled by default. Bail out early.
*/
Expand Down Expand Up @@ -402,7 +399,7 @@ static int amd_decode_mce(struct notifier_block *nb, unsigned long val,
regs.nbeah = (u32)(m->addr >> 32);
node = amd_get_nb_id(m->extcpu);

amd_decode_nb_mce(node, &regs, 1);
amd_decode_nb_mce(node, &regs);
break;

case 5:
Expand Down
2 changes: 1 addition & 1 deletion drivers/edac/edac_mce_amd.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ struct err_regs {
void amd_report_gart_errors(bool);
void amd_register_ecc_decoder(void (*f)(int, struct err_regs *));
void amd_unregister_ecc_decoder(void (*f)(int, struct err_regs *));
void amd_decode_nb_mce(int, struct err_regs *, int);
void amd_decode_nb_mce(int, struct err_regs *);

#endif /* _EDAC_MCE_AMD_H */

0 comments on commit 0ee8efa

Please sign in to comment.