Skip to content
Commit 6bf625a4 authored by Michael Kelley's avatar Michael Kelley Committed by Wei Liu
Browse files

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: default avatarNathan Chancellor <nathan@kernel.org>
Reported-by: default avatarVitaly Chikunov <vt@altlinux.org>
Reported-by: default avatarJakub Kicinski <kuba@kernel.org>
Fixes: 743b237c

 ("scsi: storvsc: Add Isolation VM support for storvsc driver")
Signed-off-by: default avatarMichael Kelley <mikelley@microsoft.com>
Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/1644176216-12531-1-git-send-email-mikelley@microsoft.com
Signed-off-by: default avatarWei Liu <wei.liu@kernel.org>
parent 8bc69f86
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment