From: hselasky Date: Mon, 19 Oct 2015 11:29:50 +0000 (+0000) Subject: Fix compile warning. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5855be3ec6724e6451361f6ef8bd165bf9f949df;p=people%2Fjulieng%2Ffreebsd.git Fix compile warning. Sponsored by: Mellanox Technologies --- diff --git a/sys/ofed/include/linux/dma-mapping.h b/sys/ofed/include/linux/dma-mapping.h index f9fc3cb095b1..3af3e227be01 100644 --- a/sys/ofed/include/linux/dma-mapping.h +++ b/sys/ofed/include/linux/dma-mapping.h @@ -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)