From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: Ksenija Stanojevic <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 11:29:09 +0530 [thread overview]
Message-ID: <20151003055909.GC4428@sudip-pc> (raw)
In-Reply-To: <1443806645-16504-1-git-send-email-ksenija.stanojevic@gmail.com>
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.
regards
sudip
next prev parent reply other threads:[~2015-10-03 5:59 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 ` Sudip Mukherjee [this message]
2015-10-03 6:05 ` [Outreachy kernel] " Ksenija Stanojević
2015-10-03 6:18 ` Julia Lawall
2015-10-03 6:39 ` Sudip Mukherjee
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=20151003055909.GC4428@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.