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

Tom Rini trini at konsulko.com
Mon Nov 25 18:26:32 CET 2024


On Mon, Nov 25, 2024 at 04:08:34PM +0100, Heinrich Schuchardt wrote:

> 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(-)

This leads to:
/home/uboot/u-boot/u-boot/cmd/net.c: In function 'netboot_update_env':
/home/uboot/u-boot/u-boot/cmd/net.c:214:17: warning: implicit declaration of function 'ip_to_string'; did you mean 'vlan_to_string'? [-Wimplicit-function-declaration]
  214 |                 ip_to_string(net_gateway, tmp);
      |                 ^~~~~~~~~~~~
      |                 vlan_to_string

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20241125/eceb54e0/attachment.sig>


More information about the U-Boot mailing list