[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <163916262480.23020.13492329769891837055.tip-bot2@tip-bot2>
Date: Fri, 10 Dec 2021 18:57:04 -0000
From: "tip-bot2 for Kees Cook" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Kees Cook <keescook@...omium.org>, Borislav Petkov <bp@...e.de>,
x86@...nel.org, linux-kernel@...r.kernel.org
Subject: [tip: x86/cleanups] x86/boot/string: Add missing function prototypes
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: bc7aaf52f963674690510e6c1f3710cd0394b25e
Gitweb: https://git.kernel.org/tip/bc7aaf52f963674690510e6c1f3710cd0394b25e
Author: Kees Cook <keescook@...omium.org>
AuthorDate: Fri, 19 Nov 2021 09:53:25 -08:00
Committer: Borislav Petkov <bp@...e.de>
CommitterDate: Fri, 10 Dec 2021 19:49:06 +01:00
x86/boot/string: Add missing function prototypes
Silence "warning: no previous prototype for ... [-Wmissing-prototypes]"
warnings from string.h when building under W=1.
[ bp: Clarify commit message. ]
Signed-off-by: Kees Cook <keescook@...omium.org>
Signed-off-by: Borislav Petkov <bp@...e.de>
Link: https://lore.kernel.org/r/20211119175325.3668419-1-keescook@chromium.org
---
arch/x86/boot/string.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/x86/boot/string.h b/arch/x86/boot/string.h
index a232da4..e5d2c6b 100644
--- a/arch/x86/boot/string.h
+++ b/arch/x86/boot/string.h
@@ -8,8 +8,10 @@
#undef memcmp
void *memcpy(void *dst, const void *src, size_t len);
+void *memmove(void *dst, const void *src, size_t len);
void *memset(void *dst, int c, size_t len);
int memcmp(const void *s1, const void *s2, size_t len);
+int bcmp(const void *s1, const void *s2, size_t len);
/* Access builtin version by default. */
#define memcpy(d,s,l) __builtin_memcpy(d,s,l)
@@ -25,6 +27,7 @@ extern size_t strnlen(const char *s, size_t maxlen);
extern unsigned int atou(const char *s);
extern unsigned long long simple_strtoull(const char *cp, char **endp,
unsigned int base);
+long simple_strtol(const char *cp, char **endp, unsigned int base);
int kstrtoull(const char *s, unsigned int base, unsigned long long *res);
int boot_kstrtoul(const char *s, unsigned int base, unsigned long *res);
Powered by blists - more mailing lists