Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 2015 11:29:51 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289571 - head/sys/ofed/include/linux
Message-ID:  <201510191129.t9JBTpJW061441@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510191129.t9JBTpJW061441>