Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1700083

Re: [PATCH v2 3/6] ipc: msg: Make msg_queue timestamps y2038 safe

From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject Re: [PATCH v2 3/6] ipc: msg: Make msg_queue timestamps y2038 safe
Date 2017-07-31 16:20 +0200
Message-ID <u9jI6-7iZ-17@gated-at.bofh.it> (permalink)
References <u952p-6hY-9@gated-at.bofh.it> <u952q-6hY-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jul 31, 2017 at 12:30 AM, Deepa Dinamani <deepa.kernel@gmail.com> wrote:
> @@ -1181,7 +1181,7 @@ static int sysvipc_msg_proc_show(struct seq_file *s, void *it)
>         struct msg_queue *msq = it;
>
>         seq_printf(s,
> -                  "%10d %10d  %4o  %10lu %10lu %5u %5u %5u %5u %5u %5u %10lu %10lu %10lu\n",
> +                  "%10d %10d  %4o  %10lu %10lu %5u %5u %5u %5u %5u %5u %10llu %10llu %10llu\n",
>                    msq->q_perm.key,
>                    msq->q_perm.id,
>                    msq->q_perm.mode,
> @@ -1193,9 +1193,9 @@ static int sysvipc_msg_proc_show(struct seq_file *s, void *it)
>                    from_kgid_munged(user_ns, msq->q_perm.gid),
>                    from_kuid_munged(user_ns, msq->q_perm.cuid),
>                    from_kgid_munged(user_ns, msq->q_perm.cgid),
> -                  msq->q_stime,
> -                  msq->q_rtime,
> -                  msq->q_ctime);
> +                  (unsigned long long) msq->q_stime,
> +                  (unsigned long long) msq->q_rtime,
> +                  (unsigned long long) msq->q_ctime);
>
>         return 0;

This again can skip the cast, you only need the format change.

       Arnd

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/6] Make ipc y2038 safe Deepa Dinamani <deepa.kernel@gmail.com> - 2017-07-31 00:40 +0200
  [PATCH v2 2/6] ipc: mqueue: Replace timespec with timespec64 Deepa Dinamani <deepa.kernel@gmail.com> - 2017-07-31 00:40 +0200
    Re: [PATCH v2 2/6] ipc: mqueue: Replace timespec with timespec64 Paul Moore <paul@paul-moore.com> - 2017-08-01 01:10 +0200
      Re: [PATCH v2 2/6] ipc: mqueue: Replace timespec with timespec64 Deepa Dinamani <deepa.kernel@gmail.com> - 2017-08-02 00:40 +0200
  [PATCH v2 3/6] ipc: msg: Make msg_queue timestamps y2038 safe Deepa Dinamani <deepa.kernel@gmail.com> - 2017-07-31 00:40 +0200
    Re: [PATCH v2 3/6] ipc: msg: Make msg_queue timestamps y2038 safe Arnd Bergmann <arnd@arndb.de> - 2017-07-31 16:20 +0200
  [PATCH v2 1/6] ipc: Make sys_semtimedop() y2038 safe Deepa Dinamani <deepa.kernel@gmail.com> - 2017-07-31 00:40 +0200
  [PATCH v2 5/6] ipc: shm: Make shmid_kernel timestamps y2038 safe Deepa Dinamani <deepa.kernel@gmail.com> - 2017-07-31 00:40 +0200
  [PATCH v2 6/6] utimes: Make utimes y2038 safe Deepa Dinamani <deepa.kernel@gmail.com> - 2017-07-31 00:40 +0200
  [PATCH v2 4/6] ipc: sem: Make sem_array timestamps y2038 safe Deepa Dinamani <deepa.kernel@gmail.com> - 2017-07-31 00:40 +0200
    Re: [PATCH v2 4/6] ipc: sem: Make sem_array timestamps y2038 safe Arnd Bergmann <arnd@arndb.de> - 2017-07-31 16:20 +0200
      Re: [PATCH v2 4/6] ipc: sem: Make sem_array timestamps y2038 safe Deepa Dinamani <deepa.kernel@gmail.com> - 2017-08-02 00:40 +0200
  Re: [PATCH v2 0/6] Make ipc y2038 safe Arnd Bergmann <arnd@arndb.de> - 2017-07-31 16:20 +0200

csiph-web