On 22/9/23 17:29, Peter Maydell wrote:
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.mayd...@linaro.org>
---
  hw/arm/smmuv3.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to