Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

#include "hvkbd.h"



my kernel conf:
  # Hyper-V devices
  #vmbus*     at acpi?        # Hyper-V VMBus
  #genfb*     at vmbus?       # Hyper-V Synthetic Video Framebuffer
  #hvkbd*     at vmbus?       # Hyper-V Synthetic Keyboard
  #wskbd*     at hvkbd? console ? mux 1
  #hvn*       at vmbus?       # Hyper-V NetVSC
  #hvs*       at vmbus?       # Hyper-V StorVSC
  #hvheartbeat*   at vmbus?       # Hyper-V Heartbeat Service
  #hvshutdown*    at vmbus?       # Hyper-V Guest Shutdown Service
  #hvtimesync*    at vmbus?       # Hyper-V Time Synchronization Service
  #hvkvp*     at vmbus?       # Hyper-V Data Exchange Service



--- consinit.d ---
/usr/src/sys/arch/x86/x86/consinit.c:95:10: fatal error: hvkbd.h: No such file or directory
 #include "hvkbd.h"
          ^~~~~~~~~
compilation terminated.                                                                                             
nbmkdep: compile failed.
*** [consinit.d] Error code 1



fix with this patch:

Index: sys/arch/x86/x86/consinit.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/x86/consinit.c,v
retrieving revision 1.29
diff -u -p -r1.29 consinit.c
--- sys/arch/x86/x86/consinit.c	24 May 2019 14:28:48 -0000	1.29
+++ sys/arch/x86/x86/consinit.c	25 May 2019 23:52:55 -0000
@@ -92,8 +92,8 @@ __KERNEL_RCSID(0, "$NetBSD: consinit.c,v
 #endif
 
 #ifndef XEN
-#include "hvkbd.h"
 #if NHVKBD > 0
+#include "hvkbd.h"
 #include <dev/hyperv/hvkbdvar.h>
 #endif
 #endif


-- 
Ryosuke


Home | Main Index | Thread Index | Old Index