Skip to content

Commit

Permalink
efivars: add missing parameter to efi_pstore_read()
Browse files Browse the repository at this point in the history
In the case where CONFIG_PSTORE=n, the function efi_pstore_read() doesn't
have the correct list of parameters. This patch provides a definition
of efi_pstore_read() with 'char **buf' added to fix this warning:
"drivers/firmware/efivars.c:609: warning: initialization from".

problem introduced in commit f6f8285

Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Christoph Fritz authored and Tony Luck committed Nov 28, 2011
1 parent f6f8285 commit eee628d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/firmware/efivars.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,8 @@ static int efi_pstore_close(struct pstore_info *psi)
}

static ssize_t efi_pstore_read(u64 *id, enum pstore_type_id *type,
struct timespec *time, struct pstore_info *psi)
struct timespec *timespec,
char **buf, struct pstore_info *psi)
{
return -1;
}
Expand Down

0 comments on commit eee628d

Please sign in to comment.