From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: "Ksenija Stanojević" <ksenija.stanojevic@gmail.com>
Cc: outreachy-kernel@googlegroups.com, y2038@lists.linaro.org
Subject: Re: [Outreachy kernel] [PATCH v4] Staging: olpc_dcon: Replace timespec with ktime_t
Date: Sat, 3 Oct 2015 12:09:33 +0530 [thread overview]
Message-ID: <20151003063933.GE4428@sudip-pc> (raw)
In-Reply-To: <CAL7P5jKVpNLPA318dgyw=wnA0kBxaXkVjgBsRU+-cV2dq00K2Q@mail.gmail.com>
On Sat, Oct 03, 2015 at 08:05:16AM +0200, Ksenija Stanojević wrote:
> Hi Sudip,
>
> On Sat, Oct 3, 2015 at 7:59 AM, Sudip Mukherjee
> <sudipm.mukherjee@gmail.com> wrote:
> > On Fri, Oct 02, 2015 at 07:24:05PM +0200, Ksenija Stanojevic wrote:
> >> Struct timespec will overflow in year 2038, here it will not cause an
> >> overflow because it is used with timespec_sub, but still has to be
> >> removed as part of y2038 changes. Replace it with ktime_t. Also use
> >> monotonic instead of real-time by replacing functions getnstimeofday
> >> with ktime_get.
> >>
> >> Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
> >> Reviewed-by: Arnd Bergmann <arnd@arndb.de>
> >> ---
> >> Changes in v4:
> >> -fix checkpatch.pl errors/warnings introduced by changes made
> > You missed one more checkpatch warning.
> >> in v3.
> > <snip>
> >> + delta_t = ktime_sub(now, dcon->load_time);
> >> + if (ktime_to_ns(delta_t) > NSEC_PER_MSEC * 20) {
> >> break;
> >> }
> > braces are not required for single statement if block.
>
> I didn't know whether snould I change that or not, because that change is maybe
> for another patch?
> Should I fix it and resend?
Not required. Just pointed that out. Resend if Greg asks for it.
regards
sudip
prev parent reply other threads:[~2015-10-03 6:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-02 17:24 [PATCH v4] Staging: olpc_dcon: Replace timespec with ktime_t Ksenija Stanojevic
2015-10-03 5:59 ` [Outreachy kernel] " Sudip Mukherjee
2015-10-03 6:05 ` Ksenija Stanojević
2015-10-03 6:18 ` Julia Lawall
2015-10-03 6:39 ` Sudip Mukherjee [this message]
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=20151003063933.GE4428@sudip-pc \
--to=sudipm.mukherjee@gmail.com \
--cc=ksenija.stanojevic@gmail.com \
--cc=outreachy-kernel@googlegroups.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.