svn commit: r289571 - head/sys/ofed/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Oct 19 11:29:52 UTC 2015
Author: hselasky
Date: Mon Oct 19 11:29:50 2015
New Revision: 289571
URL: https://svnweb.freebsd.org/changeset/base/289571
Log:
Fix compile warning.
Sponsored by: Mellanox Technologies
Modified:
head/sys/ofed/include/linux/dma-mapping.h
Modified: head/sys/ofed/include/linux/dma-mapping.h
==============================================================================
--- head/sys/ofed/include/linux/dma-mapping.h Mon Oct 19 11:17:54 2015 (r289570)
+++ head/sys/ofed/include/linux/dma-mapping.h Mon Oct 19 11:29:50 2015 (r289571)
@@ -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)
More information about the svn-src-head
mailing list