Re: [PATCH] dma: ste_dma40: fix unneeded variable warning

2019-07-22 Thread Vinod Koul
On 12-07-19, 11:13, Arnd Bergmann wrote: > clang-9 points out that there are two variables that depending on the > configuration may only be used in an ARRAY_SIZE() expression but not > referenced: > > drivers/dma/ste_dma40.c:145:12: error: variable 'd40_backup_regs' is not > needed and will not

Re: [PATCH] dma: ste_dma40: fix unneeded variable warning

2019-07-17 Thread Linus Walleij
On Fri, Jul 12, 2019 at 11:14 AM Arnd Bergmann wrote: > clang-9 points out that there are two variables that depending on the > configuration may only be used in an ARRAY_SIZE() expression but not > referenced: > > drivers/dma/ste_dma40.c:145:12: error: variable 'd40_backup_regs' is not >

Re: [PATCH] dma: ste_dma40: fix unneeded variable warning

2019-07-12 Thread Arnd Bergmann
On Fri, Jul 12, 2019 at 9:17 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Fri, Jul 12, 2019 at 10:39 AM Nathan Chancellor > wrote: > > > > On Fri, Jul 12, 2019 at 11:13:30AM +0200, Arnd Bergmann wrote: > > > clang-9 points out that there are two variables that depending on the > > >

Re: [PATCH] dma: ste_dma40: fix unneeded variable warning

2019-07-12 Thread Nick Desaulniers
On Fri, Jul 12, 2019 at 10:39 AM Nathan Chancellor wrote: > > On Fri, Jul 12, 2019 at 11:13:30AM +0200, Arnd Bergmann wrote: > > clang-9 points out that there are two variables that depending on the > > configuration may only be used in an ARRAY_SIZE() expression but not > > referenced: > > > >

Re: [PATCH] dma: ste_dma40: fix unneeded variable warning

2019-07-12 Thread Nathan Chancellor
On Fri, Jul 12, 2019 at 11:13:30AM +0200, Arnd Bergmann wrote: > clang-9 points out that there are two variables that depending on the > configuration may only be used in an ARRAY_SIZE() expression but not > referenced: > > drivers/dma/ste_dma40.c:145:12: error: variable 'd40_backup_regs' is not

[PATCH] dma: ste_dma40: fix unneeded variable warning

2019-07-12 Thread Arnd Bergmann
clang-9 points out that there are two variables that depending on the configuration may only be used in an ARRAY_SIZE() expression but not referenced: drivers/dma/ste_dma40.c:145:12: error: variable 'd40_backup_regs' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]