ia64/traps: Silence GCC warning about uninitialised variable
arch/ia64/kernel/traps.c: In function 'ia64_fault': arch/ia64/kernel/traps.c:433:17: warning: 'siginfo.si_code' may be used uninitialized in this function [-Wmaybe-uninitialized] struct siginfo siginfo; Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Bjorn Helgaas <helgaas@kernel.org> Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk> Signed-off-by: Tony Luck <tony.luck@intel.com>
This commit is contained in:
parent
0b184a30d0
commit
f6184df020
@ -548,6 +548,7 @@ ia64_fault (unsigned long vector, unsigned long isr, unsigned long ifa,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
switch (vector) {
|
switch (vector) {
|
||||||
|
default:
|
||||||
case 29:
|
case 29:
|
||||||
siginfo.si_code = TRAP_HWBKPT;
|
siginfo.si_code = TRAP_HWBKPT;
|
||||||
#ifdef CONFIG_ITANIUM
|
#ifdef CONFIG_ITANIUM
|
||||||
|
Loading…
Reference in New Issue
Block a user