Module Name:    src
Committed By:   nonaka
Date:           Fri May 31 04:23:19 UTC 2019

Modified Files:
        src/sys/dev/hyperv: hyperv_common.c

Log Message:
Avoid undefined reference to `hyperv_is_gen1' without hyperv(4).


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/hyperv/hyperv_common.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/hyperv/hyperv_common.c
diff -u src/sys/dev/hyperv/hyperv_common.c:1.1 src/sys/dev/hyperv/hyperv_common.c:1.2
--- src/sys/dev/hyperv/hyperv_common.c:1.1	Fri Feb 15 08:54:01 2019
+++ src/sys/dev/hyperv/hyperv_common.c	Fri May 31 04:23:19 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: hyperv_common.c,v 1.1 2019/02/15 08:54:01 nonaka Exp $	*/
+/*	$NetBSD: hyperv_common.c,v 1.2 2019/05/31 04:23:19 nonaka Exp $	*/
 
 /*-
  * Copyright (c) 2009-2012,2016-2017 Microsoft Corp.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hyperv_common.c,v 1.1 2019/02/15 08:54:01 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hyperv_common.c,v 1.2 2019/05/31 04:23:19 nonaka Exp $");
 
 #include "hyperv.h"
 
@@ -51,6 +51,7 @@ uint64_t	hyperv_hypercall_error(uint64_t
 __weak_alias(hyperv_hypercall, hyperv_hypercall_error);
 __weak_alias(hyperv_hypercall_enabled, hyperv_nullop);
 __weak_alias(hyperv_synic_supported, hyperv_nullop);
+__weak_alias(hyperv_is_gen1, hyperv_nullop);
 __weak_alias(hyperv_set_event_proc, hyperv_voidop);
 __weak_alias(hyperv_set_message_proc, hyperv_voidop);
 __weak_alias(hyperv_send_eom, hyperv_voidop);

Reply via email to