From: Arnd Bergmann <arnd@arndb.de>
To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: "Ksenija Stanojević" <ksenija.stanojevic@gmail.com>,
y2038@lists.linaro.org, outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] Re: [Y2038] [PATCH v2] Staging: fbtbt: Replace timespec with ktime_t
Date: Mon, 05 Oct 2015 10:20:12 +0200 [thread overview]
Message-ID: <9607634.7a18Wz6LMX@wuerfel> (raw)
In-Reply-To: <20151005051705.GA20276@sudip-pc>
On Monday 05 October 2015 10:47:05 Sudip Mukherjee wrote:
> On Sun, Oct 04, 2015 at 09:34:40PM +0200, Arnd Bergmann wrote:
> > On Saturday 03 October 2015 21:15:46 Ksenija Stanojević wrote:
> > Two possible explanations why you don't get it:
> >
> > - your .config file got changed back to CONFIG_64BIT being enabled
> > - you don't have CONFIG_FB_TFT enabled in this build.
>
> After modifying manually .config file use make oldconfig and then make
> prepare.
> I think i missed the beginning of the thread. Are you saying that fbtft
> build fails on 32 bit arch?
Ksenija's patch from last week causes this build regression, but it is not
merged yet. This is my original comment:
| > - ts_duration = timespec_sub(ts_end, ts_start);
| > - duration_ms = (ts_duration.tv_sec * 1000) + ((ts_duration.tv_nsec / 1000000) % 1000);
| > - duration_us = (ts_duration.tv_nsec / 1000) % 1000;
| > - throughput = duration_ms * 1000 + duration_us;
| > + throughput = ktime_us_delta(ts_end, ts_start);
| > throughput = throughput ? (len * 1000) / throughput : 0;
| > throughput = throughput * 1000 / 1024;
|
| As mentioned above, throughput is a 64-bit 'long long', so the last line
| of the context will result in a 64-bit division, which is not allowed in
| 32-bit kernels.
Arnd
next prev parent reply other threads:[~2015-10-05 8:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 16:10 [PATCH v2] Staging: fbtbt: Replace timespec with ktime_t Ksenija Stanojevic
2015-09-30 21:52 ` [Y2038] " Arnd Bergmann
2015-10-01 17:44 ` Ksenija Stanojević
2015-10-01 20:05 ` Arnd Bergmann
2015-10-03 19:15 ` Ksenija Stanojević
2015-10-04 19:34 ` Arnd Bergmann
2015-10-05 5:17 ` [Outreachy kernel] " Sudip Mukherjee
2015-10-05 8:20 ` Arnd Bergmann [this message]
2015-10-05 14:52 ` Sudip Mukherjee
2015-10-07 18:46 ` Ksenija Stanojević
2015-10-07 19:08 ` Arnd Bergmann
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=9607634.7a18Wz6LMX@wuerfel \
--to=arnd@arndb.de \
--cc=ksenija.stanojevic@gmail.com \
--cc=outreachy-kernel@googlegroups.com \
--cc=sudipm.mukherjee@gmail.com \
--cc=y2038@lists.linaro.org \
/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.