From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Thu, 20 May 2021 11:51:45 -0600 Subject: [PATCH 4/5] lib/vsprintf.c: remove unused ip6_addr_string() In-Reply-To: <20210520100528.322846-5-rasmus.villemoes@prevas.dk> References: <20210520100528.322846-1-rasmus.villemoes@prevas.dk> <20210520100528.322846-5-rasmus.villemoes@prevas.dk> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 20 May 2021 at 04:05, Rasmus Villemoes wrote: > > 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. > > Signed-off-by: Rasmus Villemoes > --- > lib/vsprintf.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) Reviewed-by: Simon Glass