1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Fix compile warning.

Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2015-10-19 11:29:50 +00:00
parent 6e9c45e0ee
commit ecfc226c7d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289571

View File

@ -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)