diff options
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/efivars.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index a54a6b972ced..0a53a05a850d 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 | ||
498 | static int efi_pstore_write(enum pstore_type_id type, u64 *id, | 498 | static 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, | |||
565 | static int efi_pstore_erase(enum pstore_type_id type, u64 id, | 566 | static 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 | } |
@@ -586,7 +587,8 @@ static ssize_t efi_pstore_read(u64 *id, enum pstore_type_id *type, | |||
586 | return -1; | 587 | return -1; |
587 | } | 588 | } |
588 | 589 | ||
589 | static int efi_pstore_write(enum pstore_type_id type, u64 *id, | 590 | static int efi_pstore_write(enum pstore_type_id type, |
591 | enum kmsg_dump_reason reason, u64 *id, | ||
590 | unsigned int part, size_t size, struct pstore_info *psi) | 592 | unsigned int part, size_t size, struct pstore_info *psi) |
591 | { | 593 | { |
592 | return 0; | 594 | return 0; |