Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

memblock test: fix implicit declaration of function 'strscpy'

Commit 1e4c64b71c9b ("mm/memblock: Add "reserve_mem" to reserved named
memory at boot up") introduce the usage of strscpy, which breaks the
memblock test.

Let's define it as strcpy in userspace to fix it.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Link: https://lore.kernel.org/r/20240806010319.29194-5-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>

authored by

Wei Yang and committed by
Mike Rapoport (Microsoft)
9e3d6653 8ac13bc7

+2
+2
tools/include/linux/string.h
··· 12 12 13 13 int strtobool(const char *s, bool *res); 14 14 15 + #define strscpy strcpy 16 + 15 17 /* 16 18 * glibc based builds needs the extern while uClibc doesn't. 17 19 * However uClibc headers also define __GLIBC__ hence the hack below