From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: "Gao, Yunpeng" <yunpeng.gao@intel.com>
Cc: kosaki.motohiro@jp.fujitsu.com,
"linux-ia64@vger.kernel.org" <linux-ia64@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: how to fix nand driver build breakage
Date: Mon, 19 Jan 2009 13:25:04 +0900 (JST) [thread overview]
Message-ID: <20090120132317.B0B3.KOSAKI.MOTOHIRO@jp.fujitsu.com> (raw)
In-Reply-To: <38D9F46DFF92C54980D2F2C1E8EE31301FC5E7FB@pdsmsx503.ccr.corp.intel.com>
> Hi all,
>
> I have to use 64bit variable in my 2.6.27 kernel NAND driver as below:
> ---------------------------------------------------------------------------
> u64 NAND_capacity;
> unsigned int block_num, block_size;
> ...
> block_num = NAND_capacity / block_size;
> ---------------------------------------------------------------------------
> but it failed when compiling and reports 'undefined reference to `__udivdi3'.
>
> Does any idea about this? I need to include some special head file or change something in Kconfig?
>
> BTW, the environment is Fedora Core 9, gcc 4.3.0.
Couldn't you use do_div()?
next prev parent reply other threads:[~2009-01-19 4:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-19 2:54 Gao, Yunpeng
2009-01-19 3:07 ` your mail Matthew Wilcox
2009-01-19 4:25 ` KOSAKI Motohiro [this message]
2009-01-19 11:46 ` how to fix nand driver build breakage Simon Holm Thøgersen
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=20090120132317.B0B3.KOSAKI.MOTOHIRO@jp.fujitsu.com \
--to=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yunpeng.gao@intel.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
all inboxes | Powered by JetHome®