x86/vdso: Only define prctl_map_vdso() if CONFIG_CHECKPOINT_RESTORE
authorIngo Molnar <mingo@kernel.org>
Thu, 15 Sep 2016 06:42:51 +0000 (08:42 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 15 Sep 2016 06:45:39 +0000 (08:45 +0200)
commit91b7bd39e62e190700aa1398e451a6dfa6d24465
treeefda1b5bf2040e8ad376888ba22f57dd1a46bbed
parent6846351052e685c2d1428e80ead2d7ca3d7ed913
x86/vdso: Only define prctl_map_vdso() if CONFIG_CHECKPOINT_RESTORE

... otherwise the compiler complains:

  arch/x86/kernel/process_64.c:528:13: warning: ‘prctl_map_vdso’ defined but not used [-Wunused-function]

Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Dmitry Safonov <dsafonov@virtuozzo.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: gorcunov@openvz.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-mm@kvack.org
Cc: oleg@redhat.com
Cc: xemul@virtuozzo.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/process_64.c