summaryrefslogtreecommitdiff
path: root/include/stdio_dev.h
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2026-05-12 15:41:52 -0600
committerTom Rini <[email protected]>2026-05-12 15:41:52 -0600
commite3e651c480c46b332f16a7555b97c6c6fd640a40 (patch)
tree01f7277b103a10ef301e6981d7f4ca2e33f653db /include/stdio_dev.h
parent5732bd0f457b4c671e46574d64d4acb099c0f0a5 (diff)
parent8d209186a1e4aca4ec44745d05d51de7e80f7e3e (diff)
Merge patch series "add memdup_nul(), use it and memdup() in a few places"
Rasmus Villemoes <[email protected]> says: There are quite a few places where we allocate X+1 bytes, initialize the first X bytes via memcpy() and then set the last byte to 0. The kernel has a helper for that, kmemdup_nul(). Introduce a similar one, and start making use of it in a few places. Also the existing memdup() helper can be put to more use. There are lots more places one could modify. But for code shared with host tools, one would need to do some refactoring, putting memdup() and memdup_nul() in their own str-util.c TU which could then also be included in the tools build. Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/stdio_dev.h')
-rw-r--r--include/stdio_dev.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/stdio_dev.h b/include/stdio_dev.h
index f7f9c10199e..d93604331ff 100644
--- a/include/stdio_dev.h
+++ b/include/stdio_dev.h
@@ -96,7 +96,6 @@ int stdio_add_devices(void);
int stdio_deregister_dev(struct stdio_dev *dev, int force);
struct list_head *stdio_get_list(void);
struct stdio_dev *stdio_get_by_name(const char *name);
-struct stdio_dev *stdio_clone(struct stdio_dev *dev);
int drv_lcd_init(void);
int drv_video_init(void);