aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-01-06 21:03:02 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-06 21:03:02 -0500
commit6ed23fd6c08b3ffa17c1f841098d2fa2ab3a59dd (patch)
tree5cb5bb5dbefbb6458eff4bdae3c091ca3c02d685 /drivers
parent5ee354a0295c34aa7da07be8490f86edee2c7883 (diff)
parent2174f6df7891fa331800beb72634c969f017900b (diff)
Merge branch 'pstore' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux
* 'pstore' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux: pstore: gracefully handle NULL pstore_info functions pstore: pass reason to backend write callback
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/apei/erst.c6
-rw-r--r--drivers/firmware/efivars.c8
2 files changed, 9 insertions, 5 deletions
diff --git a/drivers/acpi/apei/erst.c b/drivers/acpi/apei/erst.c
index 631b9477b99c..6a9e3bad13f4 100644
--- a/drivers/acpi/apei/erst.c
+++ b/drivers/acpi/apei/erst.c
@@ -934,7 +934,8 @@ static int erst_close_pstore(struct pstore_info *psi);
934static ssize_t erst_reader(u64 *id, enum pstore_type_id *type, 934static ssize_t erst_reader(u64 *id, enum pstore_type_id *type,
935 struct timespec *time, char **buf, 935 struct timespec *time, char **buf,
936 struct pstore_info *psi); 936 struct pstore_info *psi);
937static int erst_writer(enum pstore_type_id type, u64 *id, unsigned int part, 937static int erst_writer(enum pstore_type_id type, enum kmsg_dump_reason reason,
938 u64 *id, unsigned int part,
938 size_t size, struct pstore_info *psi); 939 size_t size, struct pstore_info *psi);
939static int erst_clearer(enum pstore_type_id type, u64 id, 940static int erst_clearer(enum pstore_type_id type, u64 id,
940 struct pstore_info *psi); 941 struct pstore_info *psi);
@@ -1053,7 +1054,8 @@ out:
1053 return (rc < 0) ? rc : (len - sizeof(*rcd)); 1054 return (rc < 0) ? rc : (len - sizeof(*rcd));
1054} 1055}
1055 1056
1056static int erst_writer(enum pstore_type_id type, u64 *id, unsigned int part, 1057static int erst_writer(enum pstore_type_id type, enum kmsg_dump_reason reason,
1058 u64 *id, unsigned int part,
1057 size_t size, struct pstore_info *psi) 1059 size_t size, struct pstore_info *psi)
1058{ 1060{
1059 struct cper_pstore_record *rcd = (struct cper_pstore_record *) 1061 struct cper_pstore_record *rcd = (struct cper_pstore_record *)
diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c
index b0a81173a268..d25599f2a3f8 100644
--- a/drivers/firmware/efivars.c
+++ b/drivers/firmware/efivars.c
@@ -495,7 +495,8 @@ static ssize_t efi_pstore_read(u64 *id, enum pstore_type_id *type,
495 return 0; 495 return 0;
496} 496}
497 497
498static int efi_pstore_write(enum pstore_type_id type, u64 *id, 498static int efi_pstore_write(enum pstore_type_id type,
499 enum kmsg_dump_reason reason, u64 *id,
499 unsigned int part, size_t size, struct pstore_info *psi) 500 unsigned int part, size_t size, struct pstore_info *psi)
500{ 501{
501 char name[DUMP_NAME_LEN]; 502 char name[DUMP_NAME_LEN];
@@ -565,7 +566,7 @@ static int efi_pstore_write(enum pstore_type_id type, u64 *id,
565static int efi_pstore_erase(enum pstore_type_id type, u64 id, 566static int efi_pstore_erase(enum pstore_type_id type, u64 id,
566 struct pstore_info *psi) 567 struct pstore_info *psi)
567{ 568{
568 efi_pstore_write(type, &id, (unsigned int)id, 0, psi); 569 efi_pstore_write(type, 0, &id, (unsigned int)id, 0, psi);
569 570
570 return 0; 571 return 0;
571} 572}
@@ -587,7 +588,8 @@ static ssize_t efi_pstore_read(u64 *id, enum pstore_type_id *type,
587 return -1; 588 return -1;
588} 589}
589 590
590static int efi_pstore_write(enum pstore_type_id type, u64 *id, 591static int efi_pstore_write(enum pstore_type_id type,
592 enum kmsg_dump_reason reason, u64 *id,
591 unsigned int part, size_t size, struct pstore_info *psi) 593 unsigned int part, size_t size, struct pstore_info *psi)
592{ 594{
593 return 0; 595 return 0;