diff mbox series

efi/libstub: Fix missing-prototypes in string.c

Message ID 1600653203-57909-1-git-send-email-tiantao6@hisilicon.com
State Accepted
Commit aad0f3d693bbb356b9478879ecd245d4f7a2beb0
Headers show
Series efi/libstub: Fix missing-prototypes in string.c | expand

Commit Message

Tian Tao Sept. 21, 2020, 1:53 a.m. UTC
Fix the following warnings.
drivers/firmware/efi/libstub/string.c:83:20: warning: no previous
prototype for ‘simple_strtoull’ [-Wmissing-prototypes]
drivers/firmware/efi/libstub/string.c:108:6: warning: no previous
prototype for ‘simple_strtol’ [-Wmissing-prototypes]

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 drivers/firmware/efi/libstub/string.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Ard Biesheuvel Sept. 24, 2020, 2:38 p.m. UTC | #1
On Mon, 21 Sep 2020 at 03:57, Tian Tao <tiantao6@hisilicon.com> wrote:
>
> Fix the following warnings.
> drivers/firmware/efi/libstub/string.c:83:20: warning: no previous
> prototype for ‘simple_strtoull’ [-Wmissing-prototypes]
> drivers/firmware/efi/libstub/string.c:108:6: warning: no previous
> prototype for ‘simple_strtol’ [-Wmissing-prototypes]
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>

Applied as a fix, thanks.

> ---
>  drivers/firmware/efi/libstub/string.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/firmware/efi/libstub/string.c b/drivers/firmware/efi/libstub/string.c
> index 1ac2f87..5d13e43 100644
> --- a/drivers/firmware/efi/libstub/string.c
> +++ b/drivers/firmware/efi/libstub/string.c
> @@ -7,6 +7,7 @@
>   */
>
>  #include <linux/ctype.h>
> +#include <linux/kernel.h>
>  #include <linux/types.h>
>  #include <linux/string.h>
>
> --
> 2.7.4
>
diff mbox series

Patch

diff --git a/drivers/firmware/efi/libstub/string.c b/drivers/firmware/efi/libstub/string.c
index 1ac2f87..5d13e43 100644
--- a/drivers/firmware/efi/libstub/string.c
+++ b/drivers/firmware/efi/libstub/string.c
@@ -7,6 +7,7 @@ 
  */
 
 #include <linux/ctype.h>
+#include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/string.h>