Skip to contentSkip to conversation

hyper-v. Fix broken build due to missing references. All credits go to Jan Kiszka, who reported and fixed this issue.

PATCH New Vadim Rozenfeld 1 participant 1 message Jan 19, 2012 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hyper-v. Fix broken build due to missing references. All credits go to Jan Kiszka, who reported and fixed this issue.

---
 target-i386/hyperv.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
target-i386/hyperv.h +6 -0
index 0d742f8..15467bf 100644
@@ -24,9 +24,15 @@
 #define KVM_CPUID_SIGNATURE_NEXT                0x40000100
 #endif
 
+#ifndef CONFIG_USER_ONLY
 void hyperv_enable_vapic_recommended(bool val);
 void hyperv_enable_relaxed_timing(bool val);
 void hyperv_set_spinlock_retries(int val);
+#else
+static inline void hyperv_enable_vapic_recommended(bool val) { }
+static inline void hyperv_enable_relaxed_timing(bool val) { }
+static inline void hyperv_set_spinlock_retries(int val) { }
+#endif
 
 bool hyperv_enabled(void);
 bool hyperv_hypercall_available(void);
Signature · 1 line
1.7.4.4