aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorMichael Kelley <[email protected]>2022-02-06 11:36:56 -0800
committerWei Liu <[email protected]>2022-02-07 17:55:30 +0000
commit6bf625a4140f24b490766043b307f8252519578b (patch)
tree2c7e6d3eb00d586d1d3ddd9b201895960d3d4480 /lib/test_overflow.c
parent8bc69f86328e87a0ffa79438430cc82f3aa6a194 (diff)
Drivers: hv: vmbus: Rework use of DMA_BIT_MASK(64)
Using DMA_BIT_MASK(64) as an initializer for a global variable causes problems with Clang 12.0.1. The compiler doesn't understand that value 64 is excluded from the shift at compile time, resulting in a build error. While this is a compiler problem, avoid the issue by setting up the dma_mask memory as part of struct hv_device, and initialize it using dma_set_mask(). Reported-by: Nathan Chancellor <[email protected]> Reported-by: Vitaly Chikunov <[email protected]> Reported-by: Jakub Kicinski <[email protected]> Fixes: 743b237c3a7b ("scsi: storvsc: Add Isolation VM support for storvsc driver") Signed-off-by: Michael Kelley <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Tested-by: Nathan Chancellor <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions