Date: Fri, 8 Apr 2022 11:24:01 +0300 From: Dmitry Chagin <dchagin@freebsd.org> To: John Baldwin <jhb@freebsd.org> Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 572edd3dae9f - main - vmm: Re-quiet set but unused warnings. Message-ID: <Yk/xIeNx60ETSCNF@heemeyer.club> In-Reply-To: <202204080004.238040Av087093@gitrepo.freebsd.org> References: <202204080004.238040Av087093@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 08, 2022 at 12:04:00AM +0000, John Baldwin wrote: > The branch main has been updated by jhb: > > URL: https://cgit.FreeBSD.org/src/commit/?id=572edd3dae9fc3e67dfb1cb9ba023e8d3fe2a9bb > > commit 572edd3dae9fc3e67dfb1cb9ba023e8d3fe2a9bb > Author: John Baldwin <jhb@FreeBSD.org> > AuthorDate: 2022-04-08 00:01:29 +0000 > Commit: John Baldwin <jhb@FreeBSD.org> > CommitDate: 2022-04-08 00:01:29 +0000 > > vmm: Re-quiet set but unused warnings. > > __diagused is no longer used for KTR, so instead use #ifdef KTR or > expand KTR-only variables into their values in traces. > --- > sys/amd64/vmm/io/vrtc.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/sys/amd64/vmm/io/vrtc.c b/sys/amd64/vmm/io/vrtc.c > index dd32b279cf03..10bab96700e4 100644 > --- a/sys/amd64/vmm/io/vrtc.c > +++ b/sys/amd64/vmm/io/vrtc.c > @@ -285,12 +285,13 @@ rtc_to_secs(struct vrtc *vrtc) > struct clocktime ct; > struct timespec ts; > struct rtcdev *rtc; > - struct vm *vm __diagused; > +#ifdef KTR > + struct vm *vm = vtrc->vm; > +#endif seems a typo ^^^^^^^ vrtc should be
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Yk/xIeNx60ETSCNF>