public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* "Unknown symbol __udivdi3" with rev >= 11873
@ 2009-05-28  4:05 David Ward
  2009-05-28 19:12 ` Michael Krufky
  0 siblings, 1 reply; 4+ messages in thread
From: David Ward @ 2009-05-28  4:05 UTC (permalink / raw)
  To: linux-media

Revision 11873 (committed earlier today) has broken the cx18 driver for 
me, with the line "cx18: Unknown symbol __udivdi3" appearing in dmesg 
when the module tries to load.  I'm using Ubuntu 8.04.2 which uses 
kernel 2.6.24 and gcc 4.2.4.

I also wanted to express my appreciation to Mauro for fixing the build 
for older kernels today, as it is very desirable for me to use a 
distribution/kernel which has long-term support and updates, but I 
simply need to add a DVB driver that wasn't part of the older kernel.

Thanks so much.

David Ward

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "Unknown symbol __udivdi3" with rev >= 11873
  2009-05-28  4:05 "Unknown symbol __udivdi3" with rev >= 11873 David Ward
@ 2009-05-28 19:12 ` Michael Krufky
  2009-05-28 21:43   ` David Ward
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Krufky @ 2009-05-28 19:12 UTC (permalink / raw)
  To: David Ward; +Cc: linux-media, Andy Walls

On Thu, May 28, 2009 at 12:05 AM, David Ward <david.ward@gatech.edu> wrote:
> Revision 11873 (committed earlier today) has broken the cx18 driver for me,
> with the line "cx18: Unknown symbol __udivdi3" appearing in dmesg when the
> module tries to load.  I'm using Ubuntu 8.04.2 which uses kernel 2.6.24 and
> gcc 4.2.4.
>
> I also wanted to express my appreciation to Mauro for fixing the build for
> older kernels today, as it is very desirable for me to use a
> distribution/kernel which has long-term support and updates, but I simply
> need to add a DVB driver that wasn't part of the older kernel.
>
> Thanks so much.
>
> David Ward

Let it be known that this issue only affects 32bit kernels.  I believe
the offending line of code is here:

fsc = ((((u64)sc) * 28636360)/src_decimation) >> 13L;

(cc added to Andy Walls)

-Mike Krufky

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "Unknown symbol __udivdi3" with rev >= 11873
  2009-05-28 19:12 ` Michael Krufky
@ 2009-05-28 21:43   ` David Ward
  2009-05-28 21:50     ` Michael Krufky
  0 siblings, 1 reply; 4+ messages in thread
From: David Ward @ 2009-05-28 21:43 UTC (permalink / raw)
  To: Michael Krufky; +Cc: linux-media, Andy Walls

On 05/28/2009 03:12 PM, Michael Krufky wrote:
> On Thu, May 28, 2009 at 12:05 AM, David Ward<david.ward@gatech.edu>  wrote:
>    
>> Revision 11873 (committed earlier today) has broken the cx18 driver for me,
>> with the line "cx18: Unknown symbol __udivdi3" appearing in dmesg when the
>> module tries to load.  I'm using Ubuntu 8.04.2 which uses kernel 2.6.24 and
>> gcc 4.2.4.
>>
>> I also wanted to express my appreciation to Mauro for fixing the build for
>> older kernels today, as it is very desirable for me to use a
>> distribution/kernel which has long-term support and updates, but I simply
>> need to add a DVB driver that wasn't part of the older kernel.
>>
>> Thanks so much.
>>
>> David Ward
>>      
> Let it be known that this issue only affects 32bit kernels.  I believe
> the offending line of code is here:
>
> fsc = ((((u64)sc) * 28636360)/src_decimation)>>  13L;
>
> (cc added to Andy Walls)
>
> -Mike Krufky
>    
Some Google searching seems to suggest that the correct thing to do here 
is to use the 'do_div' macro for the division, which is declared in 
<asm/div64.h>:

http://www.captain.at/howto-udivdi3-umoddi3.php

David

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "Unknown symbol __udivdi3" with rev >= 11873
  2009-05-28 21:43   ` David Ward
@ 2009-05-28 21:50     ` Michael Krufky
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Krufky @ 2009-05-28 21:50 UTC (permalink / raw)
  To: David Ward; +Cc: linux-media, Andy Walls

On Thu, May 28, 2009 at 5:43 PM, David Ward <david.ward@gatech.edu> wrote:
> On 05/28/2009 03:12 PM, Michael Krufky wrote:
>>
>> On Thu, May 28, 2009 at 12:05 AM, David Ward<david.ward@gatech.edu>
>>  wrote:
>>
>>>
>>> Revision 11873 (committed earlier today) has broken the cx18 driver for
>>> me,
>>> with the line "cx18: Unknown symbol __udivdi3" appearing in dmesg when
>>> the
>>> module tries to load.  I'm using Ubuntu 8.04.2 which uses kernel 2.6.24
>>> and
>>> gcc 4.2.4.
>>>
>>> I also wanted to express my appreciation to Mauro for fixing the build
>>> for
>>> older kernels today, as it is very desirable for me to use a
>>> distribution/kernel which has long-term support and updates, but I simply
>>> need to add a DVB driver that wasn't part of the older kernel.
>>>
>>> Thanks so much.
>>>
>>> David Ward
>>>
>>
>> Let it be known that this issue only affects 32bit kernels.  I believe
>> the offending line of code is here:
>>
>> fsc = ((((u64)sc) * 28636360)/src_decimation)>>  13L;
>>
>> (cc added to Andy Walls)
>>
>> -Mike Krufky
>>
>
> Some Google searching seems to suggest that the correct thing to do here is
> to use the 'do_div' macro for the division, which is declared in
> <asm/div64.h>:
>
> http://www.captain.at/howto-udivdi3-umoddi3.php
>
> David


Patches welcome :-)

-MiKE

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-05-28 21:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-28  4:05 "Unknown symbol __udivdi3" with rev >= 11873 David Ward
2009-05-28 19:12 ` Michael Krufky
2009-05-28 21:43   ` David Ward
2009-05-28 21:50     ` Michael Krufky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox