summaryrefslogtreecommitdiffstats
path: root/sound/parisc
diff options
context:
space:
mode:
authorNathan Huckleberry <nhuck@google.com>2019-08-13 10:34:48 -0700
committerVinod Koul <vkoul@kernel.org>2019-08-20 17:06:36 +0530
commit698f7a9be9b2389384c69750d87a0c68202c0621 (patch)
tree5264bed9136dc67fcf9cbe52ff17e6b12517598e /sound/parisc
parent3a1144f83c531dea36bad013b04888fd6e69aa0b (diff)
downloadlinux-stable-698f7a9be9b2389384c69750d87a0c68202c0621.tar.gz
linux-stable-698f7a9be9b2389384c69750d87a0c68202c0621.tar.bz2
linux-stable-698f7a9be9b2389384c69750d87a0c68202c0621.zip
dmaengine: mv_xor_v2: Fix -Wshift-negative-value
Clang produces the following warning drivers/dma/mv_xor_v2.c:264:40: warning: shifting a negative signed value is undefined [-Wshift-negative-value] reg &= (~MV_XOR_V2_DMA_IMSG_THRD_MASK << MV_XOR_V2_DMA_IMSG_THRD_SHIFT); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ drivers/dma/mv_xor_v2.c:271:46: warning: shifting a negative signed value is undefined [-Wshift-negative-value] reg &= (~MV_XOR_V2_DMA_IMSG_TIMER_THRD_MASK << ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ Upon further investigation MV_XOR_V2_DMA_IMSG_THRD_SHIFT and MV_XOR_V2_DMA_IMSG_TIMER_THRD_SHIFT are both 0. Since shifting by 0 does nothing, these variables can be removed. Cc: clang-built-linux@googlegroups.com Link: https://github.com/ClangBuiltLinux/linux/issues/521 Signed-off-by: Nathan Huckleberry <nhuck@google.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Link: https://lore.kernel.org/r/20190813173448.109859-1-nhuck@google.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'sound/parisc')
0 files changed, 0 insertions, 0 deletions