diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-10-24 18:33:18 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-10-25 12:45:13 +0300 |
commit | d320b9a5bd85f6178cc3ed8b0a1a9960f2b5bc7b (patch) | |
tree | 845d20f6c0d638613688731a496a51ae9d6339f1 /arch/m32r | |
parent | a2209b742e6cf978b85d4f31a25a269c3d3b062b (diff) | |
download | linux-d320b9a5bd85f6178cc3ed8b0a1a9960f2b5bc7b.tar.xz |
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 <arnd@arndb.de>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-pci@vger.kernel.org
Link: http://lkml.kernel.org/r/20161024153325.2752428-1-arnd@arndb.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/m32r')
0 files changed, 0 insertions, 0 deletions