hw-breakpoints, x86: Fix modular KVM build
authorIngo Molnar <mingo@elte.hu>
Sat, 14 Nov 2009 00:35:29 +0000 (01:35 +0100)
committerIngo Molnar <mingo@elte.hu>
Sat, 14 Nov 2009 14:32:53 +0000 (15:32 +0100)
commit68efa37df779b3e04280598e8b5b3a1919b65fee
tree6954b55c7a22d9f13871771437407de13a6edfb4
parent688bcaff291cf2fe2734e43f2793d4d05b850518
hw-breakpoints, x86: Fix modular KVM build

This build error:

arch/x86/kvm/x86.c:3655: error: implicit declaration of function 'hw_breakpoint_restore'

Happens because in the CONFIG_KVM=m case there's no 'CONFIG_KVM' define
in the kernel - it's CONFIG_KVM_MODULE in that case.

Make the prototype available unconditionally.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Prasad <prasad@linux.vnet.ibm.com>
LKML-Reference: <1258114575-32655-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/debugreg.h
arch/x86/kernel/hw_breakpoint.c