From: Kalle Valo <kvalo@adurom.com>
To: Christian Lamparter <chunkeey@googlemail.com>
Cc: linux-wireless@vger.kernel.org, linville@tuxdriver.com
Subject: Re: car9170: undefined reference to `__udivdi3'
Date: Thu, 25 Aug 2011 16:59:17 +0300 [thread overview]
Message-ID: <4E565535.1050901@adurom.com> (raw)
In-Reply-To: <201108251500.54814.lach1012@hs-karlsruhe.de>
On 08/25/2011 04:00 PM, Christian Lamparter wrote:
> Please try the attached patch:
> ---
> [PATCH v1] carl9170: Use do_div for 64-bit division to fix 32-bit kernels
>
> Use the do_div macro for 64-bit division. Otherwise, the module will
> reference __udivdi3 under 32-bit kernels, which is not allowed in
> kernel space.
>
> drivers/built-in.o: In function `carl9170_collect_tally':
> cmd.c:191: undefined reference to `__udivdi3'
> cmd.c:192: undefined reference to `__udivdi3'
> cmd.c:193: undefined reference to `__udivdi3'
Works. Thanks for fixing this quickly.
> Reported-by: Kalle Valo <kvalo@adurom.com>
> Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Tested-by: Kalle Valo <kvalo@adurom.com>
Kalle
prev parent reply other threads:[~2011-08-25 14:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-25 9:28 car9170: undefined reference to `__udivdi3' Kalle Valo
2011-08-25 13:00 ` Christian Lamparter
2011-08-25 13:59 ` Kalle Valo [this message]
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=4E565535.1050901@adurom.com \
--to=kvalo@adurom.com \
--cc=chunkeey@googlemail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/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;
as well as URLs for NNTP newsgroup(s).