git: 7e7f7b91d080 - main - powerpc cpudep_ap_setup: Quite unused variable warnings.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Apr 2022 21:59:27 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=7e7f7b91d0800e57894fd4404271931b3bb7449e commit 7e7f7b91d0800e57894fd4404271931b3bb7449e Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-12 21:58:59 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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: