diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-15 10:10:15 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 11:01:22 -0500 |
commit | a03d7f4b544f699bbdd3cf14692bd8f476cb9d24 (patch) | |
tree | b75d424b1a14f80d06ddfa7a2b12c8097f76f7d7 | |
parent | 6c14280125a374d4c279a68276f97245e03e3f68 (diff) |
KVM: Put kvm_para.h include outside __KERNEL__
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>
-rw-r--r-- | include/linux/kvm_para.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kvm_para.h b/include/linux/kvm_para.h index 6af91a506fbf..5497aac0d2f8 100644 --- a/include/linux/kvm_para.h +++ b/include/linux/kvm_para.h | |||
@@ -14,12 +14,12 @@ | |||
14 | 14 | ||
15 | #define KVM_HC_VAPIC_POLL_IRQ 1 | 15 | #define KVM_HC_VAPIC_POLL_IRQ 1 |
16 | 16 | ||
17 | #ifdef __KERNEL__ | ||
18 | /* | 17 | /* |
19 | * hypercalls use architecture specific | 18 | * hypercalls use architecture specific |
20 | */ | 19 | */ |
21 | #include <asm/kvm_para.h> | 20 | #include <asm/kvm_para.h> |
22 | 21 | ||
22 | #ifdef __KERNEL__ | ||
23 | static inline int kvm_para_has_feature(unsigned int feature) | 23 | static inline int kvm_para_has_feature(unsigned int feature) |
24 | { | 24 | { |
25 | if (kvm_arch_para_features() & (1UL << feature)) | 25 | if (kvm_arch_para_features() & (1UL << feature)) |