[tip: efi/urgent] efi/libstub: Fix missing-prototype warning for skip_spaces()

From: tip-bot2 for Ard Biesheuvel
Date: Fri Jun 19 2020 - 12:46:20 EST


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@xxxxxxxxxx>
AuthorDate: Mon, 15 Jun 2020 12:31:14 +02:00
Committer: Ard Biesheuvel <ardb@xxxxxxxxxx>
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@xxxxxxxxxx>
---
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)