Files
u-boot/include/linux
Rasmus Villemoes ca1c292d2e string: fix prototype of memdup()
It doesn't make sense to restrict memdup() to only return char*
pointers, especially when it is already defined to accept void*. This
makes it uglier to use to e.g. duplicate a struct.

Make it return void*, just as kmemdup() does in the kernel (and which
our kmemdup() in fact also does).

While in here, make a small optimization: memcpy() is defined to
return the destination register, so we write this in a way that the
compiler may do a tail call.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
2026-05-12 15:38:00 -06:00
..
2025-12-04 09:38:58 -06:00
2023-05-15 14:08:45 -04:00
2025-06-11 09:42:55 +02:00
2024-07-29 15:01:04 -06:00
2025-09-18 17:20:39 +02:00
2022-11-28 10:25:17 -05:00
2023-11-07 14:50:52 -05:00
2025-06-03 17:18:03 -06:00
2025-04-02 20:00:59 -06:00
2023-05-15 14:08:45 -04:00
2026-05-12 15:38:00 -06:00
2023-07-25 12:44:46 -04:00