Skip to content

Commit

Permalink
KVM: make asm-generic/kvm_para.h have an ifdef __KERNEL__ block
Browse files Browse the repository at this point in the history
There are two functions in this asm-generic file.  Looking at
other arch which do not use the generic version, these two fcns
are within an #ifdef __KERNEL__ block, so make the generic one
consistent with those.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Paul Gortmaker authored and Avi Kivity committed May 21, 2012
1 parent 46a6dd1 commit 322728e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/asm-generic/kvm_para.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef _ASM_GENERIC_KVM_PARA_H
#define _ASM_GENERIC_KVM_PARA_H

#ifdef __KERNEL__

/*
* This function is used by architectures that support kvm to avoid issuing
Expand All @@ -16,4 +17,6 @@ static inline unsigned int kvm_arch_para_features(void)
return 0;
}

#endif /* _KERNEL__ */

#endif

0 comments on commit 322728e

Please sign in to comment.