Skip to content

Commit bc7aaf5

Browse files
keessuryasaimadhu
authored andcommitted
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 <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 20735d2 commit bc7aaf5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/x86/boot/string.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
#undef memcmp
99

1010
void *memcpy(void *dst, const void *src, size_t len);
11+
void *memmove(void *dst, const void *src, size_t len);
1112
void *memset(void *dst, int c, size_t len);
1213
int memcmp(const void *s1, const void *s2, size_t len);
14+
int bcmp(const void *s1, const void *s2, size_t len);
1315

1416
/* Access builtin version by default. */
1517
#define memcpy(d,s,l) __builtin_memcpy(d,s,l)
@@ -25,6 +27,7 @@ extern size_t strnlen(const char *s, size_t maxlen);
2527
extern unsigned int atou(const char *s);
2628
extern unsigned long long simple_strtoull(const char *cp, char **endp,
2729
unsigned int base);
30+
long simple_strtol(const char *cp, char **endp, unsigned int base);
2831

2932
int kstrtoull(const char *s, unsigned int base, unsigned long long *res);
3033
int boot_kstrtoul(const char *s, unsigned int base, unsigned long *res);

0 commit comments

Comments
 (0)