dma_addr_t may not be a 64bit type, so add an explicit cast here instead

of silent truncation
This commit is contained in:
joerg 2011-06-09 14:47:15 +00:00
parent 2c0909e78c
commit 38d1b26693
1 changed files with 1 additions and 1 deletions

View File

@ -696,7 +696,7 @@ struct drm_ati_pcigart_info {
};
#ifndef DMA_BIT_MASK
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : (1ULL<<(n)) - 1)
#define DMA_BIT_MASK(n) ((dma_addr_t)(((n) == 64) ? ~0ULL : (1ULL<<(n)) - 1))
#endif
#define upper_32_bits(n) ((u32)(((n) >> 16) >> 16))