]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib/vsprintf.c: remove unused ip6_addr_string()
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Thu, 27 May 2021 22:20:46 +0000 (00:20 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 15 Jul 2021 22:44:36 +0000 (18:44 -0400)
commit23b542aa3f9c663c98e1baa2732cce99c333f030
tree8a4a013a5e1921f344cdcc05b7fae517a3ba2bc3
parentce452157e6a8b68b76cfc5e3d30f7d7b10ace575
lib/vsprintf.c: remove unused ip6_addr_string()

There's currently no user of %p[iI]6, so including ip6_addr_string()
in the image is a waste of bytes. It's easy enough to have the
compiler elide it without removing the code completely.

The closest I can find to anybody "handling" ipv6 in U-Boot currently
is in efi_net.c which does

        if (ipv6) {
                ret = EFI_UNSUPPORTED;

As indicated in the comment, it can easily be put back, but preferably
under a config knob.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
lib/vsprintf.c