From nobody Tue Apr 12 21:59:27 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 880BC1AFBFE0; Tue, 12 Apr 2022 21:59:28 +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 4KdKPq5dN4z4hsr; Tue, 12 Apr 2022 21:59:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800768; 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=74xeYiJCYWRxxOREIL6fBy1ebi4f/rg675c3Xk1JSAc=; b=kZt9+OSENR3mSmFGIUQ6xoOFjnQObYNei2ijlJiYeluxHG6GPGszgEnL5sVAEw4ZGPzBJ7 jya5Er4gp/1YycmkvfdeExolU6pIfvUA/M8BkllcsSqrWNbghXkUblcuswkLAgLBIa4CMz jEfH5uKWBc81W9XUgzOsTroKMIbkalXQBP40Wo+CsDrOhhzocuGqI+nWlgukoh5rDsXZWu c9nDjDw9ey3MlkPPovu1xpF5fdhBP0vUsuxBIw9/G8I5Y4rix6csz79FL6w3WqS/Kkadkx I8yDkwyuTLT0SjDZY5ClE+ZwTxEM4u/U9LR8NG7E4OaCuuTggWi2iqom9o5GvA== 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 9F5331F810; Tue, 12 Apr 2022 21:59:27 +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 23CLxRRx035551; Tue, 12 Apr 2022 21:59:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23CLxRZH035550; Tue, 12 Apr 2022 21:59:27 GMT (envelope-from git) Date: Tue, 12 Apr 2022 21:59:27 GMT Message-Id: <202204122159.23CLxRZH035550@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: 7e7f7b91d080 - main - powerpc cpudep_ap_setup: Quite unused variable warnings. 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=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: 7e7f7b91d0800e57894fd4404271931b3bb7449e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800768; 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=74xeYiJCYWRxxOREIL6fBy1ebi4f/rg675c3Xk1JSAc=; b=maZKTM9kO9lKpqbcamyvg1UfymMPkiBOfd600RDn0N4iUp1TildsFh+tzu1RojH2pUP/63 WXtyy+2hNIk/BOXKIlyRGzbw5QyVG1DRR/zjAcp1hiY1tDhyeI4hVJy8KvOBxfMozRmKpn uBaOLi1UcpVGsL3oKddRSciqdnXpmdA6mhoJu7wcrfyaz7lKvIIcAiMxUBlbcnwwBcUkS7 Dtaa9ht2XWx6De0HXiIrrs4NsRVflDN6m5Q6v5bsupceT4iimG4k4LA2DwRYcch0+JF7vJ DZJ6FWQEzbO3WioJs2qGOaUVyqbayiAaf+avh+dBZeV1Y6bfYcuEDz78VU3yEw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649800768; a=rsa-sha256; cv=none; b=uL0w/faKHjq67QIVHTrFHpGgRfucYKo8c/aZBIM5aXDVzYnVLofitJ+i8Jr7qZ+v8vBdEk wEr2v+nR5wdFlyBY8vm6F5amx3Ft/NnioIpWfCPNwQn5Ma1oAJTC//g4+m+0MMCZxHjgQS HKxhmPyV3X0Ce7guQnPqUtzVu7Bue9iYJFEDOd1tv3IuD9VYPxaPQsTC+DLw3DuUm1JezI FgKg3NSjVP2VzZfV50/Xj9FAOg2AymOCnkekG9xodtv0SDXcLMBbGi+gwNOdMXbVDDn/oX 2nqpGxs/z8uTuiknA1TrKo2F7/OG7M+l/m0M6R7UkPRUCym17pFbl9eHO8spvg== 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=7e7f7b91d0800e57894fd4404271931b3bb7449e commit 7e7f7b91d0800e57894fd4404271931b3bb7449e Author: John Baldwin AuthorDate: 2022-04-12 21:58:59 +0000 Commit: John Baldwin CommitDate: 2022-04-12 21:58:59 +0000 powerpc cpudep_ap_setup: Quite unused variable warnings. --- sys/powerpc/aim/mp_cpudep.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sys/powerpc/aim/mp_cpudep.c b/sys/powerpc/aim/mp_cpudep.c index a73246487683..cb3856cc4bf0 100644 --- a/sys/powerpc/aim/mp_cpudep.c +++ b/sys/powerpc/aim/mp_cpudep.c @@ -307,8 +307,10 @@ cpudep_save_config(void *dummy) void cpudep_ap_setup() -{ +{ +#ifndef __powerpc64__ register_t reg; +#endif uint16_t vers; vers = mfpvr() >> 16; @@ -390,14 +392,14 @@ cpudep_ap_setup() case MPC7455: case MPC7457: /* Only MPC745x CPUs have an L3 cache. */ - reg = mpc745x_l3_enable(bsp_state[3]); + mpc745x_l3_enable(bsp_state[3]); default: break; } - reg = mpc74xx_l2_enable(bsp_state[2]); - reg = mpc74xx_l1d_enable(); - reg = mpc74xx_l1i_enable(); + mpc74xx_l2_enable(bsp_state[2]); + mpc74xx_l1d_enable(); + mpc74xx_l1i_enable(); break; case IBMPOWER7: