lkml.org 
[lkml]   [2020]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[tip: efi/urgent] efi/libstub: Fix missing-prototype warning for skip_spaces()
The following commit has been merged into the efi/urgent branch of tip:

Commit-ID: 24552d10339f13d2174e013002da3ed90e26adda
Gitweb: https://git.kernel.org/tip/24552d10339f13d2174e013002da3ed90e26adda
Author: Ard Biesheuvel <ardb@kernel.org>
AuthorDate: Mon, 15 Jun 2020 12:31:14 +02:00
Committer: Ard Biesheuvel <ardb@kernel.org>
CommitterDate: Mon, 15 Jun 2020 19:43:58 +02:00

efi/libstub: Fix missing-prototype warning for skip_spaces()

Include <linux/string.h> into skip_spaces.c to silence a compiler
warning about a missing prototype.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
---
drivers/firmware/efi/libstub/skip_spaces.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/firmware/efi/libstub/skip_spaces.c b/drivers/firmware/efi/libstub/skip_spaces.c
index a700b3c..159fb4e 100644
--- a/drivers/firmware/efi/libstub/skip_spaces.c
+++ b/drivers/firmware/efi/libstub/skip_spaces.c
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0

#include <linux/ctype.h>
+#include <linux/string.h>
#include <linux/types.h>

char *skip_spaces(const char *str)
\
 
 \ /
  Last update: 2020-06-19 18:56    [W:0.871 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site