Re: git: 572edd3dae9f - main - vmm: Re-quiet set but unused warnings.
- In reply to: John Baldwin : "git: 572edd3dae9f - main - vmm: Re-quiet set but unused warnings."
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Apr 2022 08:24:01 UTC
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