aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hyperv
diff options
context:
space:
mode:
authorSepherosa Ziehau <sephe@FreeBSD.org>2017-04-14 05:25:21 +0000
committerSepherosa Ziehau <sephe@FreeBSD.org>2017-04-14 05:25:21 +0000
commite25942b0ebf57256d9ece0e3beb91a8c8cbc040c (patch)
treeff30f01ea08f464044dd82eb6bcb7c093ffdc54d /sys/dev/hyperv
parent7737abe4f2505109d31f82df06badb0d62c8d507 (diff)
downloadsrc-e25942b0ebf57256d9ece0e3beb91a8c8cbc040c.tar.gz
src-e25942b0ebf57256d9ece0e3beb91a8c8cbc040c.zip
hyperv/storvsc: Use ULL for 64bits value shift.
Reported by: PVS MFC after: 3 days Sponsored by: Microsoft
Notes
Notes: svn path=/head/; revision=316813
Diffstat (limited to 'sys/dev/hyperv')
-rw-r--r--sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
index 07c7d5b63ce9..f1a4d53373a4 100644
--- a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
+++ b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
@@ -1771,7 +1771,7 @@ storvsc_check_bounce_buffer_sgl(bus_dma_segment_t *sgl,
}
pre_aligned = TRUE;
} else {
- tmp_bits |= 1 << i;
+ tmp_bits |= 1ULL << i;
if (!pre_aligned) {
if (phys_addr != vtophys(sgl[i-1].ds_addr +
sgl[i-1].ds_len)) {