diff options
author | Arnd Bergmann <[email protected]> | 2016-10-24 17:33:18 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-10-25 11:45:13 +0200 |
commit | d320b9a5bd85f6178cc3ed8b0a1a9960f2b5bc7b (patch) | |
tree | 845d20f6c0d638613688731a496a51ae9d6339f1 /scripts/gdb/linux/utils.py | |
parent | a2209b742e6cf978b85d4f31a25a269c3d3b062b (diff) |
x86/quirks: Hide maybe-uninitialized warning
gcc -Wmaybe-uninitialized detects that quirk_intel_brickland_xeon_ras_cap
uses uninitialized data when CONFIG_PCI is not set:
arch/x86/kernel/quirks.c: In function ‘quirk_intel_brickland_xeon_ras_cap’:
arch/x86/kernel/quirks.c:641:13: error: ‘capid0’ is used uninitialized in this function [-Werror=uninitialized]
However, the function is also not called in this configuration, so we
can avoid the warning by moving the existing #ifdef to cover it as well.
Signed-off-by: Arnd Bergmann <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions