]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Fix allnoconfig build warning
authorIngo Molnar <mingo@kernel.org>
Mon, 25 May 2020 07:42:41 +0000 (09:42 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:15:03 +0000 (15:15 +0200)
commit657087a10cdb9acc007063cc7fd887c81c3e8477
tree1cde6bd5ab5e3dc83ffe623a1c13eea24d9ea7a7
parent946d759a479d0ae3822c88a1ceb1ba065d819a02
x86/entry: Fix allnoconfig build warning

The following commit:

  095b7a3e7745 ("x86/entry: Convert double fault exception to IDTENTRY_DF")

introduced a new build warning on 64-bit allnoconfig kernels, that have CONFIG_VMAP_STACK disabled:

  arch/x86/kernel/traps.c:332:16: warning: unused variable ‘address’ [-Wunused-variable]

This variable is only used if CONFIG_VMAP_STACK is defined, so make it
dependent on that, not CONFIG_X86_64.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Alexandre Chartre <alexandre.chartre@oracle.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
arch/x86/kernel/traps.c