Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eee628da authored by Christoph Fritz's avatar Christoph Fritz Committed by Tony Luck
Browse files

efivars: add missing parameter to efi_pstore_read()



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 f6f82851

Signed-off-by: default avatarChristoph Fritz <chf.fritz@googlemail.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent f6f82851
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
}