Re: linux-next: build failure after merge of the sound tree

Christophe Leroy
2025-06-16T05:50:35Z

Le 16/06/2025 à 05:01, Stephen Rothwell a écrit :
> Hi all,
>
> After merging the sound tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> In file included from include/linux/uaccess.h:12,
> from include/linux/sched/task.h:13,
> from include/linux/sched/signal.h:9,
> from include/linux/rcuwait.h:6,
> from include/linux/percpu-rwsem.h:7,
> from include/linux/fs.h:34,
> from include/linux/compat.h:17,
> from sound/core/pcm_native.c:7:
> sound/core/pcm_compat.c: In function 'snd_pcm_ioctl_sync_ptr_x32':
> sound/core/pcm_native.c:3081:60: error: 'struct snd_pcm_mmap_status_x32' has no member named 'tstamp'
> 3081 | unsafe_put_user(__s.tstamp.tv_sec, &__src->s.status.tstamp.tv_sec, failed); \
> | ^

...

>
> Caused by (sone of) commits
>
> 2acd83beb4d3 ("ALSA: pcm: refactor copy from/to user in SNDRV_PCM_IOCTL_SYNC_PTR")
> de32a6120b80 ("ALSA: pcm: Convert snd_pcm_sync_ptr() to user_access_begin/user_access_end()")
> a0f3992ee86e ("ALSA: pcm: Replace [audio_]tstamp_[n]sec by struct __snd_timespec in struct snd_pcm_mmap_status32")
> a9b49bf8ad59 ("ALSA: pcm: Convert SNDRV_PCM_IOCTL_SYNC_PTR to user_access_begin/user_access_end()")
>
> I have used the sound tree from next-20250613 for today.
>

This is caused by a0f3992ee86e.

Fix here :
https://lore.kernel.org/linux-sound/e46139ed61bc52fab51babadb8b656fa1aa15506.1750050658.git.christophe.leroy@csgroup.eu/T/#u

Christophe