2022-03-04 06:48:57

by Jan Kiszka

[permalink] [raw]
Subject: [PATCH] efi: Add missing prototype for efi_capsule_setup_info

From: Jan Kiszka <[email protected]>

Fixes "no previous declaration for 'efi_capsule_setup_info'" warnings
under W=1.

Fixes: 2959c95d510c ("efi/capsule: Add support for Quark security header")
Signed-off-by: Jan Kiszka <[email protected]>
---
include/linux/efi.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/linux/efi.h b/include/linux/efi.h
index ccd4d3f91c98..cc6d2be2ffd5 100644
--- a/include/linux/efi.h
+++ b/include/linux/efi.h
@@ -213,6 +213,8 @@ struct capsule_info {
size_t page_bytes_remain;
};

+int efi_capsule_setup_info(struct capsule_info *cap_info, void *kbuff,
+ size_t hdr_bytes);
int __efi_capsule_setup_info(struct capsule_info *cap_info);

/*
--
2.34.1


2022-04-14 06:22:43

by Ard Biesheuvel

[permalink] [raw]
Subject: Re: [PATCH] efi: Add missing prototype for efi_capsule_setup_info

On Fri, 4 Mar 2022 at 07:36, Jan Kiszka <[email protected]> wrote:
>
> From: Jan Kiszka <[email protected]>
>
> Fixes "no previous declaration for 'efi_capsule_setup_info'" warnings
> under W=1.
>
> Fixes: 2959c95d510c ("efi/capsule: Add support for Quark security header")
> Signed-off-by: Jan Kiszka <[email protected]>

Thanks Jan, I've queued this up now.

> ---
> include/linux/efi.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/linux/efi.h b/include/linux/efi.h
> index ccd4d3f91c98..cc6d2be2ffd5 100644
> --- a/include/linux/efi.h
> +++ b/include/linux/efi.h
> @@ -213,6 +213,8 @@ struct capsule_info {
> size_t page_bytes_remain;
> };
>
> +int efi_capsule_setup_info(struct capsule_info *cap_info, void *kbuff,
> + size_t hdr_bytes);
> int __efi_capsule_setup_info(struct capsule_info *cap_info);
>
> /*
> --
> 2.34.1