From: Dave Airlie <airlied@gmail.com>
To: "Mr. James W. Laferriere" <babydr@baby-dragons.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
linux-fbdev@vger.kernel.org,
Linux Kernel Maillist <linux-kernel@vger.kernel.org>
Subject: Re: drivers/gpu/drm/radeon/radeon_test.c:45: undefined reference to `__udivdi3'
Date: Sun, 20 Dec 2009 16:11:07 +1000 [thread overview]
Message-ID: <21d7e9970912192211y6cb02557se261787f3b56d2a8@mail.gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.01.0912181147200.9874@filesrv1.baby-dragons.com>
[-- Attachment #1: Type: text/plain, Size: 565 bytes --]
On Sat, Dec 19, 2009 at 6:54 AM, Mr. James W. Laferriere
<babydr@baby-dragons.com> wrote:
> Hello Benjamin , I am not having a good time compiling 2.6.32.1 .
> First RCU 'inline' difficulties then fusion-mpt 'inline' difficulty , Now
> this .
> This one is not a simple as removing 'inline' from a statement .
> Would you please look into this ? Anything else you need please just
> ask .
> Please cc: me as I am not subscribed to linux-fbdev .
>
> Tia , JimL
>
Can you try the attached patch?
Dave.
[-- Attachment #2: 0001-drm-radeon-fix-build-on-64-bit-with-some-compilers.patch --]
[-- Type: application/octet-stream, Size: 1208 bytes --]
From 3c5faf9e1a2d429a7e3e16c7ebf0e81661972a91 Mon Sep 17 00:00:00 2001
From: Dave Airlie <airlied@linux.ie>
Date: Sun, 20 Dec 2009 16:08:40 +1000
Subject: [PATCH] drm/radeon: fix build on 64-bit with some compilers.
drivers/gpu/drm/radeon/radeon_test.c:45: undefined reference to `__udivdi3'
Reported-by: Mr. James W. Laferriere <babydr@baby-dragons.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
---
drivers/gpu/drm/radeon/radeon_test.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_test.c b/drivers/gpu/drm/radeon/radeon_test.c
index 391c973..9f5e2f9 100644
--- 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) {
--
1.6.5.2
next prev parent reply other threads:[~2009-12-20 6:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-18 20:54 Mr. James W. Laferriere
2009-12-19 9:13 ` Dave Hylands
2009-12-20 1:02 ` Mr. James W. Laferriere
2009-12-20 2:07 ` Dave Hylands
2009-12-20 6:11 ` Dave Airlie [this message]
2009-12-20 21:10 ` Mr. James W. Laferriere
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=21d7e9970912192211y6cb02557se261787f3b56d2a8@mail.gmail.com \
--to=airlied@gmail.com \
--cc=babydr@baby-dragons.com \
--cc=benh@kernel.crashing.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®