diff options
author | Matt Fleming <matt@codeblueprint.co.uk> | 2016-05-04 12:17:49 +0100 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2016-05-05 10:29:14 -0700 |
commit | f6184df02067afb366a543a19a03bec42223afb3 (patch) | |
tree | afc36e946d13fe921fd28aa538e0243a06a2693e /arch | |
parent | 0b184a30d0df12f8366ce74bb9a5af2cff1fd3e3 (diff) | |
download | op-kernel-dev-f6184df02067afb366a543a19a03bec42223afb3.zip op-kernel-dev-f6184df02067afb366a543a19a03bec42223afb3.tar.gz |
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')
-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 6f7d4a4..77edd68 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 |