hw/arm/smmuv3.c: Avoid shadowing variable
Avoid shadowing a variable in smmuv3_notify_iova(): ../../hw/arm/smmuv3.c: In function ‘smmuv3_notify_iova’: ../../hw/arm/smmuv3.c:1043:23: warning: declaration of ‘event’ shadows a previous local [-Wshadow=local] 1043 | SMMUEventInfo event = {.inval_ste_allowed = true}; | ^~~~~ ../../hw/arm/smmuv3.c:1038:19: note: shadowed declaration is here 1038 | IOMMUTLBEvent event; | ^~~~~ Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-ID: <20230922152944.3583438-4-peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
b2e7e2048b
commit
9e2135ee93
@ -1040,8 +1040,8 @@ static void smmuv3_notify_iova(IOMMUMemoryRegion *mr,
|
|||||||
SMMUv3State *s = sdev->smmu;
|
SMMUv3State *s = sdev->smmu;
|
||||||
|
|
||||||
if (!tg) {
|
if (!tg) {
|
||||||
SMMUEventInfo event = {.inval_ste_allowed = true};
|
SMMUEventInfo eventinfo = {.inval_ste_allowed = true};
|
||||||
SMMUTransCfg *cfg = smmuv3_get_config(sdev, &event);
|
SMMUTransCfg *cfg = smmuv3_get_config(sdev, &eventinfo);
|
||||||
SMMUTransTableInfo *tt;
|
SMMUTransTableInfo *tt;
|
||||||
|
|
||||||
if (!cfg) {
|
if (!cfg) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user