diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-10-19 11:29:50 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-10-19 11:29:50 +0000 |
commit | 5855be3ec6724e6451361f6ef8bd165bf9f949df (patch) | |
tree | 102d4c1b541a27b89566304ae0236f8d7bdea2a5 /sys/ofed/include | |
parent | d8710b53229e05873b6a3ac38688b591aba31542 (diff) | |
download | FreeBSD-src-5855be3ec6724e6451361f6ef8bd165bf9f949df.zip FreeBSD-src-5855be3ec6724e6451361f6ef8bd165bf9f949df.tar.gz |
Fix compile warning.
Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/ofed/include')
-rw-r--r-- | sys/ofed/include/linux/dma-mapping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ofed/include/linux/dma-mapping.h b/sys/ofed/include/linux/dma-mapping.h index f9fc3cb..3af3e22 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) |