Module Name: src
Committed By: joerg
Date: Thu Jun 9 14:47:16 UTC 2011
Modified Files:
src/sys/external/bsd/drm/dist/bsd-core: drmP.h
Log Message:
dma_addr_t may not be a 64bit type, so add an explicit cast here instead
of silent truncation
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/external/bsd/drm/dist/bsd-core/drmP.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm/dist/bsd-core/drmP.h
diff -u src/sys/external/bsd/drm/dist/bsd-core/drmP.h:1.21 src/sys/external/bsd/drm/dist/bsd-core/drmP.h:1.22
--- src/sys/external/bsd/drm/dist/bsd-core/drmP.h:1.21 Thu Feb 24 07:59:44 2011
+++ src/sys/external/bsd/drm/dist/bsd-core/drmP.h Thu Jun 9 14:47:15 2011
@@ -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))