From e25942b0ebf57256d9ece0e3beb91a8c8cbc040c Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Fri, 14 Apr 2017 05:25:21 +0000 Subject: hyperv/storvsc: Use ULL for 64bits value shift. Reported by: PVS MFC after: 3 days Sponsored by: Microsoft --- sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c index 07c7d5b63ce9c..f1a4d53373a4e 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)) { -- cgit v1.2.3