Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Add missing calls to va_end()

cppcheck picked up that there were a couple of missing va_end()
calls in functions using va_start().

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Daniel Axtens and committed by
Michael Ellerman
1b855e16 e9d764f8

+2
+1
arch/powerpc/kernel/prom_init.c
··· 389 389 break; 390 390 } 391 391 } 392 + va_end(args); 392 393 } 393 394 394 395
+1
arch/powerpc/platforms/powermac/bootx_init.c
··· 84 84 break; 85 85 } 86 86 } 87 + va_end(args); 87 88 } 88 89 #else /* CONFIG_BOOTX_TEXT */ 89 90 static void __init bootx_printf(const char *format, ...) {}