diff options
author | Matt Fleming <matt@codeblueprint.co.uk> | 2016-05-04 14:17:49 +0300 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2016-05-05 20:29:14 +0300 |
commit | f6184df02067afb366a543a19a03bec42223afb3 (patch) | |
tree | afc36e946d13fe921fd28aa538e0243a06a2693e /arch/ia64 | |
parent | 0b184a30d0df12f8366ce74bb9a5af2cff1fd3e3 (diff) | |
download | linux-f6184df02067afb366a543a19a03bec42223afb3.tar.xz |
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>
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/kernel/traps.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/ia64/kernel/traps.c b/arch/ia64/kernel/traps.c index 6f7d4a4dcf24..77edd68c5161 100644 --- a/arch/ia64/kernel/traps.c +++ b/arch/ia64/kernel/traps.c @@ -548,6 +548,7 @@ ia64_fault (unsigned long vector, unsigned long isr, unsigned long ifa, return; } switch (vector) { + default: case 29: siginfo.si_code = TRAP_HWBKPT; #ifdef CONFIG_ITANIUM |