Re: [PATCH v3] bus: mhi: core: Fix shadow declarations

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

 



Hello:

This patch was applied to qcom/linux.git (refs/heads/for-next):

On Fri,  9 Apr 2021 10:16:14 +0530 you wrote:
> This commit fixes below sparse warnings with W=2 about shadow
> declarations:
> 
> drivers/bus/mhi/core/main.c: In function ‘parse_xfer_event’:
> drivers/bus/mhi/core/main.c:667:17: warning: declaration of ‘flags’ shadows a previous local [-Wshadow]
>   667 |   unsigned long flags;
>       |                 ^~~~~
> drivers/bus/mhi/core/main.c:565:16: note: shadowed declaration is here
>   565 |  unsigned long flags = 0;
>       |                ^~~~~
> drivers/bus/mhi/core/main.c: In function ‘mhi_process_ctrl_ev_ring’:
> drivers/bus/mhi/core/main.c:856:23: warning: declaration of ‘new_state’ shadows a previous local [-Wshadow]
>   856 |     enum mhi_pm_state new_state;
>       |                       ^~~~~~~~~
> drivers/bus/mhi/core/main.c:837:19: note: shadowed declaration is here
>   837 |    enum mhi_state new_state;
>       |                   ^~~~~~~~~
> 
> [...]

Here is the summary with links:
  - [v3] bus: mhi: core: Fix shadow declarations
    https://git.kernel.org/qcom/c/683e77cadc83

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux