aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/nvram_64.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/nvram_64.c b/arch/powerpc/kernel/nvram_64.c
index 4a4d785a08d3..0ed31f220482 100644
--- a/arch/powerpc/kernel/nvram_64.c
+++ b/arch/powerpc/kernel/nvram_64.c
@@ -38,8 +38,6 @@ static struct nvram_partition * nvram_part;
38static long nvram_error_log_index = -1; 38static long nvram_error_log_index = -1;
39static long nvram_error_log_size = 0; 39static long nvram_error_log_size = 0;
40 40
41extern volatile int error_log_cnt;
42
43struct err_log_info { 41struct err_log_info {
44 int error_type; 42 int error_type;
45 unsigned int seq_num; 43 unsigned int seq_num;
@@ -627,7 +625,8 @@ void __exit nvram_cleanup(void)
627 * sequence #: The unique sequence # for each event. (until it wraps) 625 * sequence #: The unique sequence # for each event. (until it wraps)
628 * error log: The error log from event_scan 626 * error log: The error log from event_scan
629 */ 627 */
630int nvram_write_error_log(char * buff, int length, unsigned int err_type) 628int nvram_write_error_log(char * buff, int length,
629 unsigned int err_type, unsigned int error_log_cnt)
631{ 630{
632 int rc; 631 int rc;
633 loff_t tmp_index; 632 loff_t tmp_index;
@@ -665,7 +664,8 @@ int nvram_write_error_log(char * buff, int length, unsigned int err_type)
665 * 664 *
666 * Reads nvram for error log for at most 'length' 665 * Reads nvram for error log for at most 'length'
667 */ 666 */
668int nvram_read_error_log(char * buff, int length, unsigned int * err_type) 667int nvram_read_error_log(char * buff, int length,
668 unsigned int * err_type, unsigned int * error_log_cnt)
669{ 669{
670 int rc; 670 int rc;
671 loff_t tmp_index; 671 loff_t tmp_index;
@@ -691,7 +691,7 @@ int nvram_read_error_log(char * buff, int length, unsigned int * err_type)
691 return rc; 691 return rc;
692 } 692 }
693 693
694 error_log_cnt = info.seq_num; 694 *error_log_cnt = info.seq_num;
695 *err_type = info.error_type; 695 *err_type = info.error_type;
696 696
697 return 0; 697 return 0;