Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/hyperv Avoid undefined reference to `hyperv_is_gen1'...



details:   https://anonhg.NetBSD.org/src/rev/8a4492408337
branches:  trunk
changeset: 451698:8a4492408337
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Fri May 31 04:23:19 2019 +0000

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

diffstat:

 sys/dev/hyperv/hyperv_common.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r c7d26c6a53b2 -r 8a4492408337 sys/dev/hyperv/hyperv_common.c
--- a/sys/dev/hyperv/hyperv_common.c    Fri May 31 03:41:32 2019 +0000
+++ b/sys/dev/hyperv/hyperv_common.c    Fri May 31 04:23:19 2019 +0000
@@ -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 @@
 __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);



Home | Main Index | Thread Index | Old Index