mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
pnv/psi: Clean up local variable shadowing
to fix : ../hw/ppc/pnv_psi.c: In function ‘pnv_psi_p9_mmio_write’: ../hw/ppc/pnv_psi.c:741:24: warning: declaration of ‘addr’ shadows a parameter [-Wshadow=compatible-local] 741 | hwaddr addr = val & ~(PSIHB9_ESB_CI_VALID | PSIHB10_ESB_CI_64K); | ^~~~ ../hw/ppc/pnv_psi.c:702:56: note: shadowed declaration is here 702 | static void pnv_psi_p9_mmio_write(void *opaque, hwaddr addr, | ~~~~~~~^~~~ Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-ID: <20230918145850.241074-3-clg@kaod.org> Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
90231ce1a3
commit
694616d684
1 changed files with 3 additions and 2 deletions
|
@ -738,8 +738,9 @@ static void pnv_psi_p9_mmio_write(void *opaque, hwaddr addr,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!(psi->regs[reg] & PSIHB9_ESB_CI_VALID)) {
|
if (!(psi->regs[reg] & PSIHB9_ESB_CI_VALID)) {
|
||||||
hwaddr addr = val & ~(PSIHB9_ESB_CI_VALID | PSIHB10_ESB_CI_64K);
|
hwaddr esb_addr =
|
||||||
memory_region_add_subregion(sysmem, addr,
|
val & ~(PSIHB9_ESB_CI_VALID | PSIHB10_ESB_CI_64K);
|
||||||
|
memory_region_add_subregion(sysmem, esb_addr,
|
||||||
&psi9->source.esb_mmio);
|
&psi9->source.esb_mmio);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue