Message ID | a3c8c1d9fa406ff68484225fd9356ac82f8090b9.1523465700.git.geoff@infradead.org |
---|---|
State | Not Applicable |
Headers | show |
Series | [1/4] kexec: Fix printf warning | expand |
diff --git a/purgatory/arch/ppc64/console-ppc64.c b/purgatory/arch/ppc64/console-ppc64.c index b80183c..2403312 100644 --- a/purgatory/arch/ppc64/console-ppc64.c +++ b/purgatory/arch/ppc64/console-ppc64.c @@ -29,7 +29,7 @@ extern int debug; void putchar(int c) { - char buff[16]; + char buff[16] = ""; unsigned long *lbuf = (unsigned long *)buff; if (!debug) /* running on non pseries */
Fixes warnings like these when building kexec for powerpc (32 bit): console-ppc64.c: warning: ‘*((void *)&buff+8)’ may be used uninitialized Signed-off-by: Geoff Levand <geoff@infradead.org> --- purgatory/arch/ppc64/console-ppc64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)