From: Adrian Bunk <bunk@stusta.de>
To: Andrew Morton <akpm@osdl.org>
Cc: Matt Reuther <mreuther@umich.edu>,
LKML <linux-kernel@vger.kernel.org>, Jay Lan <jlan@sgi.com>
Subject: Re: [-mm patch] add timespec_to_us() and use it in kernel/tsacct.c
Date: Mon, 7 Aug 2006 22:46:06 +0200 [thread overview]
Message-ID: <20060807204606.GN3691@stusta.de> (raw)
In-Reply-To: <20060807132418.037048a5.akpm@osdl.org>
On Mon, Aug 07, 2006 at 01:24:18PM -0700, Andrew Morton wrote:
> On Mon, 7 Aug 2006 15:32:41 +0200
> Adrian Bunk <bunk@stusta.de> wrote:
>
> > On Sun, Aug 06, 2006 at 10:21:29PM -0700, Andrew Morton wrote:
> > > On Sun, 6 Aug 2006 23:30:19 -0400
> > > Matt Reuther <mreuther@umich.edu> wrote:
> > >
> > > > I got an Error while compiling 2.6.18-rc3-mm2:
> > > >
> > > > AR arch/i386/lib/lib.a
> > > > GEN .version
> > > > CHK include/linux/compile.h
> > > > UPD include/linux/compile.h
> > > > CC init/version.o
> > > > LD init/built-in.o
> > > > LD .tmp_vmlinux1
> > > > kernel/built-in.o(.text+0x45667): In function `bacct_add_tsk':
> > > > include/linux/time.h:130: undefined reference to `__divdi3'
> > > > make: *** [.tmp_vmlinux1] Error 1
> > > >
> > > > I attached the .config file.
> > > >
> > >
> > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.18-rc3/2.6.18-rc3-mm2/hot-fixes/csa-basic-accounting-over-taskstats-fix.patch
> > > should fix this, thanks.
> >
> > This doesn't look correct since do_div() does not guarantee to return
> > more than 32bit.
>
> eh? We use do_div() to do 64bit/something all the time??
Sorry, this was my thinko.
> > What about the patch below that adds a timespec_to_us() to time.h and
> > uses this function in kernel/tsacct.c?
>
> Seems reasonable, but it'd be better as two patches..
Feel free to split this patch however you want, I thought it was not
worth splitting it.
> Do we do timespec->microseconds anywhere else?
I haven't found another place.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2006-08-07 20:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-07 3:30 2.6.18-rc3-mm2 Compile Error Matt Reuther
2006-08-07 5:21 ` Andrew Morton
2006-08-07 11:31 ` Matt Reuther
2006-08-07 13:32 ` [-mm patch] add timespec_to_us() and use it in kernel/tsacct.c Adrian Bunk
2006-08-07 20:24 ` Andrew Morton
2006-08-07 20:46 ` Adrian Bunk [this message]
2006-08-08 0:02 ` Paul Mackerras
2006-08-09 11:57 ` Matt Reuther
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=20060807204606.GN3691@stusta.de \
--to=bunk@stusta.de \
--cc=akpm@osdl.org \
--cc=jlan@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mreuther@umich.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.