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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to