From nobody Tue Apr 12 21:59:21 2022 X-Original-To: dev-commits-src-all@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 D18061AFB92B; Tue, 12 Apr 2022 21:59:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KdKPk2kJKz4hc9; Tue, 12 Apr 2022 21:59:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Dalq4J9Jc2f8KkrWoVW4f1NUCxanNww4timTxypLACA=; b=xwiHjSDJqD/SFnFqjaA6tGp1HlBo3ONxm44Om+YDLLR/XmaGPPxymWO1MWBlTo4vdfpsZP cpla8FFBgVdlsnWYmV9M0ZmtjQ81kPe+Ti5FBlK8ix1uwqSuvDwoGdPeKhgkaYuty9VYbT Y+p4Of5Vqf05GTWJMQb8KYwgDfzxC40TlGJuEwm9IX5pVEum0yRLm9qtSMC6ZKV/rwa80n RO2fHXrO9Jy3bLfMN/Fl2tFw4nSce7K2ISuhbsAgwYVkdsKz+YTOTyPDeveS6SdKiRLxQC rLLulFdz29UrsYbntQLqljoWYxGTEiQjUOtbevcMDHfaBYUmNaXCjrwc7eMe4Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 08C5F1F885; Tue, 12 Apr 2022 21:59:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23CLxL2f035427; Tue, 12 Apr 2022 21:59:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23CLxLbw035426; Tue, 12 Apr 2022 21:59:21 GMT (envelope-from git) Date: Tue, 12 Apr 2022 21:59:21 GMT Message-Id: <202204122159.23CLxLbw035426@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 2ad93a4f6b03 - main - grackle badaddr: Use void casts instead of a dummy variable. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2ad93a4f6b034b18e3be98d1aa71d200da659f6c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Dalq4J9Jc2f8KkrWoVW4f1NUCxanNww4timTxypLACA=; b=YMouuNvatLuWUvTsrRBhjw7h0MuNF+bFHgl4iLTS+/OZTSDle4/FDEaOdRHxi/FE7bQ1Ox bcLnAhSCv2tyVV8cSHyWXLC+EOdzz9U+dPT1p27O/ZVoDDxjR0zJHBl4kwqIpkdrEgH/UO fRvdFof3e3Q+rw5Oq+te2tg2id/GXVn6sZnq9iTgVgxOC72GNLptGBlYw65/U/E8Qz2Sbf cIqhBjjcBv3g0XP3A7tcNAysr9aua57gF9w0/iwgFN236pRa24Wl5LUFCMtkmLPtv2dTFP /aFgidYwNkG8K37VUBwusOMEMZnhcLmTY+/nPwddgs7uco6/dtOvOtCstvTWGA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649800762; a=rsa-sha256; cv=none; b=wRxSmlJplAfvOtruKgANClZRxF3wFVjyitkIrEFQVHB+OCn0oEohffAm8fWHGPHM9Ygspk fAnT3B/6C3ApIl2fkQ4Yalwr8pcyXJfK9ly6oriBD64mxoA1T6aQChpGeWkwwX3QcmuC6e 9ZPgGVwKY9o655Xdpny5HbUfDv0Posyj5lzWc67eOkhB9YnVHKpA9rPQ84IqUVzHcvLm/s Z1THKAXwnAEKYiQPJg0uSg2w6341P59tBClB2CT5MsY+ZEeEvLeiYRW2VVgt/AKr6s0Hyy 3SqL856pkYbrkDWiBVKMSgkemuC7Fn6HT8hFWIyGj7sWkcfcE4iwolJDTNaz0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=2ad93a4f6b034b18e3be98d1aa71d200da659f6c commit 2ad93a4f6b034b18e3be98d1aa71d200da659f6c Author: John Baldwin AuthorDate: 2022-04-12 21:58:58 +0000 Commit: John Baldwin CommitDate: 2022-04-12 21:58:58 +0000 grackle badaddr: Use void casts instead of a dummy variable. --- sys/powerpc/powermac/grackle.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/powerpc/powermac/grackle.c b/sys/powerpc/powermac/grackle.c index d3eb9ded1736..06b5992e99a0 100644 --- a/sys/powerpc/powermac/grackle.c +++ b/sys/powerpc/powermac/grackle.c @@ -243,7 +243,6 @@ badaddr(void *addr, size_t size) { struct thread *td; jmp_buf env, *oldfaultbuf; - int x; /* Get rid of any stale machine checks that have been waiting. */ __asm __volatile ("sync; isync"); @@ -262,13 +261,13 @@ badaddr(void *addr, size_t size) switch (size) { case 1: - x = *(volatile int8_t *)addr; + (void)*(volatile int8_t *)addr; break; case 2: - x = *(volatile int16_t *)addr; + (void)*(volatile int16_t *)addr; break; case 4: - x = *(volatile int32_t *)addr; + (void)*(volatile int32_t *)addr; break; default: panic("badaddr: invalid size (%zd)", size);