LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: y2038@lists.linaro.org, linux-kernel@vger.kernel.org
Cc: Arnd Bergmann <arnd@arndb.de>, Jaroslav Kysela <perex@perex.cz>,
	tiwai@suse.com, lgirdwood@gmail.com, broonie@kernel.org,
	o-takashi@sakamocchi.jp, alsa-devel@alsa-project.org,
	Baolin Wang <baolin.wang@linaro.org>
Subject: [PATCH 0/4] ALSA: Fix year 2038 issue for sound subsystem, alternative
Date: Thu, 26 Apr 2018 14:44:18 +0200	[thread overview]
Message-ID: <20180426124422.2921744-1-arnd@arndb.de> (raw)

I've tried the suggestion from Jaroslaw, doing a minimal change to the
UAPI headers to keep the existing binary interface. As he predicted,
this is a much simpler set of kernel changes, but we will pay for that
with added complexity in alsa-lib.

The first two patches in this series are taken from Baolin's patch
set, with a small bugfix folded in to avoid a compile-time regression.

The other two patches are to redefine the UAPI and to deprecate
the support for CLOCK_REALTIME time stamps, which we can no longer
allow with user space that we expect to survive beyond 2038.

Overall, I'd still be happier with Baolin's approach since it allows
us to keep compatiblity with CLOCK_REALTIME users and requires
fewer changes in user space, but this would work as well.

	Arnd

Cc: Jaroslav Kysela <perex@perex.cz>
Cc: tiwai@suse.com
Cc: lgirdwood@gmail.com
Cc: broonie@kernel.org
Cc: o-takashi@sakamocchi.jp
Cc: y2038@lists.linaro.org
Cc: alsa-devel@alsa-project.org
Cc: linux-kernel@vger.kernel.org
Cc: Baolin Wang <baolin.wang@linaro.org>

Arnd Bergmann (2):
  ALSA: replace timespec types in uapi headers
  ALSA: Deprecate CLOCK_REALTIME timestamps

Baolin Wang (2):
  ALSA: Replace timespec with timespec64
  ALSA: Avoid using timespec for struct snd_ctl_elem_value

 include/sound/asound.h            |  8 +++++
 include/sound/pcm.h               | 22 +++++++-----
 include/sound/timer.h             |  4 +--
 include/uapi/sound/asound.h       | 53 +++++++++++++++++++++--------
 sound/core/Kconfig                | 11 ++++++
 sound/core/compat.h               | 11 ++++++
 sound/core/pcm.c                  |  3 ++
 sound/core/pcm_compat.c           | 70 ++++++++++++++++++++++-----------------
 sound/core/pcm_lib.c              | 36 ++++++++++++--------
 sound/core/pcm_native.c           | 25 ++++++++++----
 sound/core/rawmidi_compat.c       | 12 +++----
 sound/core/timer.c                | 28 ++++++++--------
 sound/core/timer_compat.c         |  4 ++-
 sound/pci/hda/hda_controller.c    | 14 +++++---
 sound/soc/intel/skylake/skl-pcm.c |  4 +--
 15 files changed, 203 insertions(+), 102 deletions(-)
 create mode 100644 sound/core/compat.h

-- 
2.9.0

             reply	other threads:[~2018-04-26 12:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-26 12:44 Arnd Bergmann [this message]
2018-04-26 12:44 ` [PATCH 1/4] ALSA: Replace timespec with timespec64 Arnd Bergmann
2018-04-26 12:44 ` [PATCH 2/4] ALSA: Avoid using timespec for struct snd_ctl_elem_value Arnd Bergmann
2018-04-26 12:44 ` [PATCH 3/4] ALSA: replace timespec types in uapi headers Arnd Bergmann
2018-04-26 12:44 ` [PATCH 4/4] ALSA: Deprecate CLOCK_REALTIME timestamps Arnd Bergmann
2018-04-26 13:30 ` [PATCH 0/4] ALSA: Fix year 2038 issue for sound subsystem, alternative Jaroslav Kysela
2018-04-26 14:32   ` 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=20180426124422.2921744-1-arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=baolin.wang@linaro.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=o-takashi@sakamocchi.jp \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    --cc=y2038@lists.linaro.org \
    --subject='Re: [PATCH 0/4] ALSA: Fix year 2038 issue for sound subsystem, alternative' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).