v4.5-rc1 : arch/x86/kernel/hw_breakpoint.c:360:20: warning: âalignâ may be used uninitialized

From: Toralf FÃrster
Date: Tue Jan 26 2016 - 14:29:49 EST


As a n00b I do wonder about he following warning:


CC arch/x86/kernel/hw_breakpoint.o
arch/x86/kernel/hw_breakpoint.c: In function âarch_validate_hwbkpt_settingsâ:
arch/x86/kernel/hw_breakpoint.c:360:20: warning: âalignâ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (info->address & align)
^

at a 32 bit Gentoo KVM. Why isn't "align" set to some value in the "default:" branch of the switch above -or- why there is a "default:" there if it can't be reached ?

--
Toralf, pgp: C4EACDDE 0076E94E