diff options
| author | Arnd Bergmann <[email protected]> | 2019-07-12 09:13:30 +0000 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2019-07-22 15:28:33 +0000 |
| commit | 5d6fb560729a5d5554e23db8d00eb57cd0021083 (patch) | |
| tree | 1ab9807b9b97a1ca3e7215b92b02124c880e2927 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | dmaengine: dw-edma: fix endianess confusion (diff) | |
| download | kernel-5d6fb560729a5d5554e23db8d00eb57cd0021083.tar.gz kernel-5d6fb560729a5d5554e23db8d00eb57cd0021083.zip | |
dmaengine: ste_dma40: fix unneeded variable warning
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]
static u32 d40_backup_regs[] = {
^
drivers/dma/ste_dma40.c:214:12: error: variable 'd40_backup_regs_chan' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
static u32 d40_backup_regs_chan[] = {
Mark these __maybe_unused to shut up the warning.
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
