diff options
author | Nathan Huckleberry <[email protected]> | 2019-08-13 10:34:48 -0700 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2019-08-20 17:06:36 +0530 |
commit | 698f7a9be9b2389384c69750d87a0c68202c0621 (patch) | |
tree | 5264bed9136dc67fcf9cbe52ff17e6b12517598e /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 3a1144f83c531dea36bad013b04888fd6e69aa0b (diff) |
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: [email protected]
Link: https://github.com/ClangBuiltLinux/linux/issues/521
Signed-off-by: Nathan Huckleberry <[email protected]>
Reviewed-by: Nick Desaulniers <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions