lkml.org 
[lkml]   [2009]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: how to fix nand driver build breakage
From
Date
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-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-01-19 12:49    [W:0.037 / U:1.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site