From: kn Date: Sat, 30 Jan 2021 19:32:44 +0000 (+0000) Subject: Move global domain declaration to parse.y X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=53681a8bcbe1d42a7feb380b5f5190469e11537a;p=openbsd Move global domain declaration to parse.y This is the only object that uses it; required for "-fno-common". OK kettenis --- diff --git a/usr.sbin/ldomctl/ldomctl.h b/usr.sbin/ldomctl/ldomctl.h index a6dd1e688dc..b5210ee3c0e 100644 --- a/usr.sbin/ldomctl/ldomctl.h +++ b/usr.sbin/ldomctl/ldomctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ldomctl.h,v 1.14 2020/02/21 19:39:28 kn Exp $ */ +/* $OpenBSD: ldomctl.h,v 1.15 2021/01/30 19:32:44 kn Exp $ */ /* * Copyright (c) 2012 Mark Kettenis @@ -188,7 +188,7 @@ struct domain { SIMPLEQ_HEAD(, vnet) vnet_list; SIMPLEQ_HEAD(, var) var_list; SIMPLEQ_HEAD(, iodev) iodev_list; -} *domain; +}; struct ldom_config { SIMPLEQ_HEAD(, domain) domain_list; diff --git a/usr.sbin/ldomctl/parse.y b/usr.sbin/ldomctl/parse.y index d28b6752432..e5659d215db 100644 --- a/usr.sbin/ldomctl/parse.y +++ b/usr.sbin/ldomctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.22 2020/09/14 18:09:57 kn Exp $ */ +/* $OpenBSD: parse.y,v 1.23 2021/01/30 19:32:44 kn Exp $ */ /* * Copyright (c) 2012 Mark Kettenis @@ -64,6 +64,7 @@ int lungetc(int); int findeol(void); struct ldom_config *conf; +struct domain *domain; struct vcpu_opts { uint64_t count;