From nobody Tue Apr 12 21:59:14 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 7F3F71AFB448; Tue, 12 Apr 2022 21:59:16 +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 4KdKPb1ng6z4hWP; Tue, 12 Apr 2022 21:59:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800756; 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=ekj2yEFutiHE5JzsmIRToLfk6GCDpxhrkKF7bbX8PTc=; b=vfDWJUoXhjj8KEvMjqdrzdCwFYG+dOJSuIDWhSJNrWpp2fqt3xlgtOC8WxhIa1BZXxUhbM aFqZxxe8Ra8RD54TnwOsCkmA9fbdHxuAXvTys8ASuujRYUl8IMV3oG5c8BxkGauhRAzk4Q tePbDtsDLuBwe+7ttUrvUfJOKIlBgAE7cGI4xglrDX1f9VIctdTt0WX0onzdTAOG2TWKhI tUjvuQPLBN9LOcJnZp13vg5REYt61W7DOGrYwd4rOwiK7b475JJA+9xkwszk8XghJjs6nt abLeJpOh9m3d57EAViuRnOJ/KXnOwjNUUMT0NOUSvFjoTu8Fm8RSPgqKDT9guQ== 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 148A41F5CB; Tue, 12 Apr 2022 21:59:15 +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 23CLxEnV035273; Tue, 12 Apr 2022 21:59:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23CLxEp7035272; Tue, 12 Apr 2022 21:59:14 GMT (envelope-from git) Date: Tue, 12 Apr 2022 21:59:14 GMT Message-Id: <202204122159.23CLxEp7035272@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: 8d95af873f6b - main - ppc aim flush_disable_caches: 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: 8d95af873f6bbc112603684f5feaa188fe2f962a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800756; 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=ekj2yEFutiHE5JzsmIRToLfk6GCDpxhrkKF7bbX8PTc=; b=ZcdKRfUknHJZi9GuPZ+ErSdEjkW8E2ss0vW/sBkYVQLujjb0nIK+p7VPNOnuE3hZqEKoLz mkKvfGU5eI646fEySTpC+tMerYeCikpZg3oXY8w9fBtNM0Ol7cLCmV5xhKhEikQ6v4GIBf 2d+FvDEZZLP1mjDt/oUyi9xrMtQA9tjcwBk4VPtcl0FD1Elv5bGPmrjU/o0NImCE8riMOP e0971RJrxaiK4xBo4laeux+iPM9Ixc/MrkJPjs37sRWKNRn+MsacAwrWdpiEm8i78tPNz4 x9aefd/nMEvkLlda5or5IfXJ9QQ4U8lwNrSsJ6dJyFNBgncGymo+YJ+TOmR92g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649800756; a=rsa-sha256; cv=none; b=w43L+8YEi3CThYPBBKR8VM/qCUOKLKKZV/GHP/B0GefcrwPsOUseaPntRYGX3OJoy94bug O/lAJ2IFskiIQ0DP5EyOUBEH+7KOaUtQBGW9hPjib7a/J8/2pkoSpDMOIygF545CNsCVVQ EleHkNdSC850HELOIo4NoYEqYIJxfUwyfv9cnTk+esDy0mRembSP1vHN2RP12+huNFj0Fo tEb4Ek16zBQKfh+yhx0onYPx2gxmU0FVwJjbTm/KCuAPUu8JRgdK13Q89LDAkZ1VvohdzZ 3SxFT3qZO+AFqBa3W8oMw+V4Nd/l2sxeLaxeLCEAdcL9krNVv7v3GIwC7ZYUNw== 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=8d95af873f6bbc112603684f5feaa188fe2f962a commit 8d95af873f6bbc112603684f5feaa188fe2f962a Author: John Baldwin AuthorDate: 2022-04-12 21:58:58 +0000 Commit: John Baldwin CommitDate: 2022-04-12 21:58:58 +0000 ppc aim flush_disable_caches: Use void casts instead of a dummy variable. --- sys/powerpc/aim/aim_machdep.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/powerpc/aim/aim_machdep.c b/sys/powerpc/aim/aim_machdep.c index c5f84675ebd3..7a42bc6b960e 100644 --- a/sys/powerpc/aim/aim_machdep.c +++ b/sys/powerpc/aim/aim_machdep.c @@ -649,7 +649,6 @@ flush_disable_caches(void) register_t msscr0; register_t cache_reg; volatile uint32_t *memp; - uint32_t temp; int i; int x; @@ -682,7 +681,7 @@ flush_disable_caches(void) */ memp = (volatile uint32_t *)0x00000000; for (i = 0; i < 128 * 1024; i++) { - temp = *memp; + (void)*memp; __asm__ __volatile__("dcbf 0,%0" :: "r"(memp)); memp += 32/sizeof(*memp); } @@ -693,7 +692,7 @@ flush_disable_caches(void) for (; x != 0xff;) { mtspr(SPR_LDSTCR, x); for (i = 0; i < 128; i++) { - temp = *memp; + (void)*memp; __asm__ __volatile__("dcbf 0,%0" :: "r"(memp)); memp += 32/sizeof(*memp); }