]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Fix compile warning.
authorhselasky <hselasky@FreeBSD.org>
Mon, 19 Oct 2015 11:29:50 +0000 (11:29 +0000)
committerhselasky <hselasky@FreeBSD.org>
Mon, 19 Oct 2015 11:29:50 +0000 (11:29 +0000)
Sponsored by: Mellanox Technologies

sys/ofed/include/linux/dma-mapping.h

index f9fc3cb095b19e6eb8fbf68b4352be9ee3c1536c..3af3e227be0109599ab2df224fc76198685a36c6 100644 (file)
@@ -87,7 +87,7 @@ struct dma_map_ops {
        int is_phys;
 };
 
-#define        DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL << (n)) - 1))
+#define        DMA_BIT_MASK(n) ((2ULL << ((n) - 1)) - 1ULL)
 
 static inline int
 dma_supported(struct device *dev, u64 mask)