From 235e52014e02a76404b21a43d48a8c94979e86e3 Mon Sep 17 00:00:00 2001 From: yuqingli Date: Fri, 20 Dec 2024 04:27:50 +0800 Subject: [PATCH] fal_rtt.c:53:9: warning: implicit declaration of function 'memcpy' --- components/fal/src/fal_rtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/fal/src/fal_rtt.c b/components/fal/src/fal_rtt.c index 9ef5be14401..1e2382acd7c 100644 --- a/components/fal/src/fal_rtt.c +++ b/components/fal/src/fal_rtt.c @@ -50,7 +50,7 @@ static rt_err_t blk_dev_control(rt_device_t dev, rt_uint8_t cmd, void *args) return -RT_ERROR; } - memcpy(geometry, &part->geometry, sizeof(struct rt_device_blk_geometry)); + rt_memcpy(geometry, &part->geometry, sizeof(struct rt_device_blk_geometry)); } else if (cmd == RT_DEVICE_CTRL_BLK_ERASE) {