Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm/dist/bsd-core dma_addr_t may not be a 6...



details:   https://anonhg.NetBSD.org/src/rev/889bcd9d114f
branches:  trunk
changeset: 765899:889bcd9d114f
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Jun 09 14:47:15 2011 +0000

description:
dma_addr_t may not be a 64bit type, so add an explicit cast here instead
of silent truncation

diffstat:

 sys/external/bsd/drm/dist/bsd-core/drmP.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r cb9f8e02d344 -r 889bcd9d114f sys/external/bsd/drm/dist/bsd-core/drmP.h
--- a/sys/external/bsd/drm/dist/bsd-core/drmP.h Thu Jun 09 14:46:33 2011 +0000
+++ b/sys/external/bsd/drm/dist/bsd-core/drmP.h Thu Jun 09 14:47:15 2011 +0000
@@ -696,7 +696,7 @@
 };
 
 #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))



Home | Main Index | Thread Index | Old Index