diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-11-13 17:49:14 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-12-13 11:25:58 +0100 |
commit | 1cfaef9617033f38eba9cc725809ed32bcdb3dc5 (patch) | |
tree | a8669f0fec3dab3ff2ffaae1a6b884ef3ed97790 /fs/hfs | |
parent | 80fe7430c7085951d1246d83f638cc17e6c0be36 (diff) | |
download | linux-stable-1cfaef9617033f38eba9cc725809ed32bcdb3dc5.tar.gz linux-stable-1cfaef9617033f38eba9cc725809ed32bcdb3dc5.tar.bz2 linux-stable-1cfaef9617033f38eba9cc725809ed32bcdb3dc5.zip |
ALSA: bump uapi version numbers
Change SNDRV_PCM_VERSION, SNDRV_RAWMIDI_VERSION and SNDRV_TIMER_VERSION
to indicate the addition of the time64 version of the mmap interface and
these ioctl commands:
SNDRV_PCM_IOCTL_SYNC
SNDRV_RAWMIDI_IOCTL_STATUS
SNDRV_PCM_IOCTL_STATUS
SNDRV_PCM_IOCTL_STATUS_EXT
SNDRV_TIMER_IOCTL_TREAD
SNDRV_TIMER_IOCTL_STATUS
32-bit applications built with 64-bit time_t require both the headers
and the running kernel to support at least the new API version. When
built with earlier kernel headers, some of these may not work
correctly, so applications are encouraged to fail compilation like
#if SNDRV_PCM_VERSION < SNDRV_PROTOCOL_VERSION(2, 0, 15)
extern int __fail_build_for_time_64[sizeof(long) - sizeof(time_t)];
#endif
or provide their own updated copy of the header file.
At runtime, the interface is unchanged for 32-bit time_t, but new
kernels are required to work with user compiled with 64-bit time_t.
A runtime check can be used to detect old kernel versions and
warn about those.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'fs/hfs')
0 files changed, 0 insertions, 0 deletions