qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/4] hw/arm/smmuv3.c: Avoid shadowing variable


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 3/4] hw/arm/smmuv3.c: Avoid shadowing variable
Date: Fri, 22 Sep 2023 17:38:24 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1

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.maydell@linaro.org>
---
  hw/arm/smmuv3.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]