mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Baolin Wang <baolin.wang@linaro.org>
Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, y2038@lists.linaro.org
Subject: Re: [PATCH v4 08/25] posix-timers:Convert to the 64bit methods for the timer_gettime syscall function
Date: Tue, 2 Jun 2015 21:20:18 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.11.1506021824450.20347@nanos> (raw)
In-Reply-To: <1433159747-4854-1-git-send-email-baolin.wang@linaro.org>


On Mon, 1 Jun 2015, Baolin Wang wrote:

Can you try to create even longer subject lines with less information?

> This patch introduces the timer_get64 method with itimerspec64
> type for k_clock structure, that makes it ready for the 2038 year.

Right. By the speed this is proceeding it will take about 2038 years
until one of these patches is going to be applied.
 
> Convert to the 64bit method with itimerspec64 type for the
> timer_gettime syscall function, and change the timer_gettime syscall
> implementation.
> 
> Also add a default 64bit method for the timer_get64 pointer of k_clock
> structure, and it will be removed after all the drivers are converted
> to 64bit methods.

This is utter crap, really. The default method is a preliminary of
converting the syscall implementation.

"Subject: posix-timers: Implement y2038 safe timer_get64() callback

 The timer_get() callback in struct k_clock is not year 2038 safe on
 32bit systems. 

 To address this implement a new callback timer_get64() which uses
 struct timespec64 along with a default implementation which is a
 wrapper for the existing timer_get() callback. The default callback
 is installed at registration time for all posix clocks which are not
 yet converted to timer_get64() and will be removed once this is
 completed.

 Use the new callback in __timer_gettime()."

That's how a proper changelog should look like.
 
> +static void default_timer_get64(struct k_itimer *timr,
> +			       struct itimerspec64 *cur_setting64)

Please align the second argument proper:

static void default_timer_get64(struct k_itimer *timr,
				struct itimerspec64 *cur_setting64)

Thanks,

	tglx

      reply	other threads:[~2015-06-02 19:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-01 11:55 Baolin Wang
2015-06-02 19:20 ` Thomas Gleixner [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=alpine.DEB.2.11.1506021824450.20347@nanos \
    --to=tglx@linutronix.de \
    --cc=arnd@arndb.de \
    --cc=baolin.wang@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®