[PATCH 1/1] net: remove duplicate definition of ip_to_string()

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Mon Nov 25 16:08:34 CET 2024


ip_to_string() was added to net-common.h but not removed from net-legacy.h
in commit 9063dba2d326 ("net: net_utils: Move ip_to_string to
lib/net_utils.c").

Fixes: 9063dba2d326 ("net: net_utils: Move ip_to_string to lib/net_utils.c")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 include/net-legacy.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/include/net-legacy.h b/include/net-legacy.h
index ca1efd17af7..5a431fc6b16 100644
--- a/include/net-legacy.h
+++ b/include/net-legacy.h
@@ -502,9 +502,6 @@ static inline void net_copy_u32(void *to, void *from)
 	memcpy((void *)to, (void *)from, sizeof(u32));
 }
 
-/* Convert an IP address to a string */
-void ip_to_string(struct in_addr x, char *s);
-
 /**
  * string_to_ip() - Convert a string to ip address
  *
-- 
2.45.2



More information about the U-Boot mailing list