summaryrefslogtreecommitdiff
path: root/drivers/firmware
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2020-09-21 04:53:23 +0300
committerArd Biesheuvel <ardb@kernel.org>2020-09-26 00:29:04 +0300
commitaad0f3d693bbb356b9478879ecd245d4f7a2beb0 (patch)
tree3acfd975fb4918bd230b56eebce5ab04e4cdf186 /drivers/firmware
parent6277e374b0b07c1a93c829f0a27e38739b3b7a1b (diff)
downloadlinux-aad0f3d693bbb356b9478879ecd245d4f7a2beb0.tar.xz
efi/libstub: Fix missing-prototypes in string.c
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> Link: https://lore.kernel.org/r/1600653203-57909-1-git-send-email-tiantao6@hisilicon.com Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/efi/libstub/string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/firmware/efi/libstub/string.c b/drivers/firmware/efi/libstub/string.c
index 1ac2f8764715..5d13e43869ee 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>