public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* how to fix nand driver build breakage
       [not found] <38D9F46DFF92C54980D2F2C1E8EE31301FC5E7FB@pdsmsx503.ccr.corp.intel.com>
@ 2009-01-19  4:25 ` KOSAKI Motohiro
  2009-01-19 11:46   ` Simon Holm Thøgersen
  0 siblings, 1 reply; 2+ messages in thread
From: KOSAKI Motohiro @ 2009-01-19  4:25 UTC (permalink / raw)
  To: Gao, Yunpeng
  Cc: kosaki.motohiro, linux-ia64@vger.kernel.org,
	linux-kernel@vger.kernel.org

> 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()?




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

* Re: how to fix nand driver build breakage
  2009-01-19  4:25 ` how to fix nand driver build breakage KOSAKI Motohiro
@ 2009-01-19 11:46   ` Simon Holm Thøgersen
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Holm Thøgersen @ 2009-01-19 11:46 UTC (permalink / raw)
  To: KOSAKI Motohiro
  Cc: Gao, Yunpeng, linux-ia64@vger.kernel.org,
	linux-kernel@vger.kernel.org

man, 19 01 2009 kl. 13:25 +0900, skrev KOSAKI Motohiro:
> > 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()?

Perhaps rather div_u64, but otherwise he should be able to yes.


Simon Holm Th√∏gersen

--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2009-01-19 11:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <38D9F46DFF92C54980D2F2C1E8EE31301FC5E7FB@pdsmsx503.ccr.corp.intel.com>
2009-01-19  4:25 ` how to fix nand driver build breakage KOSAKI Motohiro
2009-01-19 11:46   ` Simon Holm Thøgersen

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