Skip to content

Commit

Permalink
KVM: Put kvm_para.h include outside __KERNEL__
Browse files Browse the repository at this point in the history
kvm_para.h potentially contains definitions that are to be used by userspace,
so it should not be included inside the __KERNEL__ block. To protect its own
data structures, kvm_para.h already includes its own __KERNEL__ block.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Acked-by: Amit Shah <amit.shah@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
  • Loading branch information
Glauber de Oliveira Costa authored and Avi Kivity committed Jan 30, 2008
1 parent 6c14280 commit a03d7f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/kvm_para.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

#define KVM_HC_VAPIC_POLL_IRQ 1

#ifdef __KERNEL__
/*
* hypercalls use architecture specific
*/
#include <asm/kvm_para.h>

#ifdef __KERNEL__
static inline int kvm_para_has_feature(unsigned int feature)
{
if (kvm_arch_para_features() & (1UL << feature))
Expand Down

0 comments on commit a03d7f4

Please sign in to comment.