mirror of
https://github.com/torvalds/linux.git
synced 2024-10-23 05:30:55 +00:00
memblock test: fix implicit declaration of function 'strscpy'
Commit 1e4c64b71c
("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>
This commit is contained in:
parent
8ac13bc7c2
commit
9e3d665384
|
@ -12,6 +12,8 @@ void argv_free(char **argv);
|
|||
|
||||
int strtobool(const char *s, bool *res);
|
||||
|
||||
#define strscpy strcpy
|
||||
|
||||
/*
|
||||
* glibc based builds needs the extern while uClibc doesn't.
|
||||
* However uClibc headers also define __GLIBC__ hence the hack below
|
||||
|
|
Loading…
Reference in New Issue
Block a user