From nobody Fri Apr 08 08:24:01 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3703B1A83AE5; Fri, 8 Apr 2022 08:24:11 +0000 (UTC) (envelope-from dchagin@heemeyer.club) Received: from heemeyer.club (heemeyer.club [195.93.173.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZWVx6nK6z3tHv; Fri, 8 Apr 2022 08:24:09 +0000 (UTC) (envelope-from dchagin@heemeyer.club) Received: from heemeyer.club (localhost [127.0.0.1]) by heemeyer.club (8.17.1/8.16.1) with ESMTP id 2388O2mO094436; Fri, 8 Apr 2022 11:24:02 +0300 (MSK) (envelope-from dchagin@heemeyer.club) Received: (from dchagin@localhost) by heemeyer.club (8.17.1/8.16.1/Submit) id 2388O28W094435; Fri, 8 Apr 2022 11:24:02 +0300 (MSK) (envelope-from dchagin) Date: Fri, 8 Apr 2022 11:24:01 +0300 From: Dmitry Chagin To: John Baldwin 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: References: <202204080004.238040Av087093@gitrepo.freebsd.org> List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202204080004.238040Av087093@gitrepo.freebsd.org> X-Rspamd-Queue-Id: 4KZWVx6nK6z3tHv X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dchagin@heemeyer.club has no SPF policy when checking 195.93.173.158) smtp.mailfrom=dchagin@heemeyer.club X-Spamd-Result: default: False [-0.51 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[dchagin]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.29)[0.289]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MLMMJ_DEST(0.00)[dev-commits-src-all,dev-commits-src-main]; FORGED_SENDER(0.30)[dchagin@freebsd.org,dchagin@heemeyer.club]; R_SPF_NA(0.00)[no SPF record]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:61400, ipnet:195.93.173.0/24, country:RU]; FROM_NEQ_ENVFROM(0.00)[dchagin@freebsd.org,dchagin@heemeyer.club]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N 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 > AuthorDate: 2022-04-08 00:01:29 +0000 > Commit: John Baldwin > 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