projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e265f39
)
drm/radeon: fix build on 64-bit with some compilers.
author
Dave Airlie
<
[email protected]
>
Sun, 20 Dec 2009 06:08:40 +0000
(16:08 +1000)
committer
Dave Airlie
<
[email protected]
>
Wed, 23 Dec 2009 00:04:02 +0000
(10:04 +1000)
drivers/gpu/drm/radeon/radeon_test.c:45: undefined reference to `__udivdi3'
Reported-by: Mr. James W. Laferriere <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Dave Airlie <
[email protected]
>
drivers/gpu/drm/radeon/radeon_test.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_test.c
b/drivers/gpu/drm/radeon/radeon_test.c
index 391c973ec4dbb7ef3c83bdfd3b757ff8b1ecb8b4..9f5e2f929da98e92cd8c418d010587ad7045d451 100644
(file)
--- a/
drivers/gpu/drm/radeon/radeon_test.c
+++ b/
drivers/gpu/drm/radeon/radeon_test.c
@@
-42,8
+42,8
@@
void radeon_test_moves(struct radeon_device *rdev)
/* Number of tests =
* (Total GTT - IB pool - writeback page - ring buffer) / test size
*/
- n = (rdev->mc.gtt_size - RADEON_IB_POOL_SIZE*64*1024 - RADEON_GPU_PAGE_SIZE -
- rdev->cp.ring_size) / size;
+ n = (
(u32)(
rdev->mc.gtt_size - RADEON_IB_POOL_SIZE*64*1024 - RADEON_GPU_PAGE_SIZE -
+ rdev->cp.ring_size)
)
/ size;
gtt_obj = kzalloc(n * sizeof(*gtt_obj), GFP_KERNEL);
if (!gtt_obj) {