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

From: Stephen Rothwell <[email-masked]>
Date: Mon, 16 Jun 2025 13:01:26 +1000

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);             \
      |                                                            ^
arch/x86/include/asm/uaccess.h:234:22: note: in definition of macro '__put_user_size'
  234 |         __typeof__(*(ptr)) __x = (x); /* eval x once */                 \
      |                      ^~~
sound/core/pcm_native.c:3081:9: note: in expansion of macro 'unsafe_put_user'
 3081 |         unsafe_put_user(__s.tstamp.tv_sec, &__src->s.status.tstamp.tv_sec, failed);             \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
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);             \
      |                                                            ^
arch/x86/include/asm/uaccess.h:234:35: note: in definition of macro '__put_user_size'
  234 |         __typeof__(*(ptr)) __x = (x); /* eval x once */                 \
      |                                   ^
sound/core/pcm_native.c:3081:9: note: in expansion of macro 'unsafe_put_user'
 3081 |         unsafe_put_user(__s.tstamp.tv_sec, &__src->s.status.tstamp.tv_sec, failed);             \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
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);             \
      |                                                            ^
arch/x86/include/asm/uaccess.h:235:20: note: in definition of macro '__put_user_size'
  235 |         __typeof__(ptr) __ptr = (ptr); /* eval ptr once */              \
      |                    ^~~
sound/core/pcm_native.c:3081:9: note: in expansion of macro 'unsafe_put_user'
 3081 |         unsafe_put_user(__s.tstamp.tv_sec, &__src->s.status.tstamp.tv_sec, failed);             \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
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);             \
      |                                                            ^
arch/x86/include/asm/uaccess.h:235:34: note: in definition of macro '__put_user_size'
  235 |         __typeof__(ptr) __ptr = (ptr); /* eval ptr once */              \
      |                                  ^~~
sound/core/pcm_native.c:3081:9: note: in expansion of macro 'unsafe_put_user'
 3081 |         unsafe_put_user(__s.tstamp.tv_sec, &__src->s.status.tstamp.tv_sec, failed);             \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
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);             \
      |                                                            ^
arch/x86/include/asm/uaccess.h:237:17: note: in definition of macro '__put_user_size'
  237 |         switch (size) {                                                 \
      |                 ^~~~
sound/core/pcm_native.c:3081:9: note: in expansion of macro 'unsafe_put_user'
 3081 |         unsafe_put_user(__s.tstamp.tv_sec, &__src->s.status.tstamp.tv_sec, failed);             \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:239:17: note: in expansion of macro '__put_user_goto'
  239 |                 __put_user_goto(__x, __ptr, "b", "iq", label);          \
      |                 ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3081:9: note: in expansion of macro 'unsafe_put_user'
 3081 |         unsafe_put_user(__s.tstamp.tv_sec, &__src->s.status.tstamp.tv_sec, failed);             \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:242:17: note: in expansion of macro '__put_user_goto'
  242 |                 __put_user_goto(__x, __ptr, "w", "ir", label);          \
      |                 ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3081:9: note: in expansion of macro 'unsafe_put_user'
 3081 |         unsafe_put_user(__s.tstamp.tv_sec, &__src->s.status.tstamp.tv_sec, failed);             \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:245:17: note: in expansion of macro '__put_user_goto'
  245 |                 __put_user_goto(__x, __ptr, "l", "ir", label);          \
      |                 ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3081:9: note: in expansion of macro 'unsafe_put_user'
 3081 |         unsafe_put_user(__s.tstamp.tv_sec, &__src->s.status.tstamp.tv_sec, failed);             \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:146:9: note: in expansion of macro '__put_user_goto'
  146 |         __put_user_goto(x, ptr, "q", "er", label)
      |         ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:248:17: note: in expansion of macro '__put_user_goto_u64'
  248 |                 __put_user_goto_u64(__x, __ptr, label);                 \
      |                 ^~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3081:9: note: in expansion of macro 'unsafe_put_user'
 3081 |         unsafe_put_user(__s.tstamp.tv_sec, &__src->s.status.tstamp.tv_sec, failed);             \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/asm-generic/bitops/instrumented-atomic.h:14,
                 from arch/x86/include/asm/bitops.h:429,
                 from include/linux/bitops.h:67,
                 from include/linux/kernel.h:23,
                 from include/linux/cpumask.h:11,
                 from arch/x86/include/asm/paravirt.h:21,
                 from arch/x86/include/asm/cpuid/api.h:57,
                 from arch/x86/include/asm/processor.h:19,
                 from arch/x86/include/asm/timex.h:5,
                 from include/linux/timex.h:67,
                 from include/linux/time32.h:13,
                 from include/linux/time.h:60,
                 from include/linux/compat.h:10:
arch/x86/include/asm/uaccess.h:253:34: error: passing argument 1 of 'kmsan_copy_to_user' makes pointer from integer without a cast [-Wint-conversion]
  253 |         instrument_put_user(__x, __ptr, size);                          \
      |                                  ^~~~~
      |                                  |
      |                                  int
include/linux/instrumented.h:213:28: note: in definition of macro 'instrument_put_user'
  213 |         kmsan_copy_to_user(ptr, &from, sizeof(from), 0);        \
      |                            ^~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3081:9: note: in expansion of macro 'unsafe_put_user'
 3081 |         unsafe_put_user(__s.tstamp.tv_sec, &__src->s.status.tstamp.tv_sec, failed);             \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/instrumented.h:13:
include/linux/kmsan-checks.h:87:52: note: expected 'void *' but argument is of type 'int'
   87 | static inline void kmsan_copy_to_user(void __user *to, const void *from,
      |                                       ~~~~~~~~~~~~~^~
sound/core/pcm_native.c:3082:61: error: 'struct snd_pcm_mmap_status_x32' has no member named 'tstamp'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |                                                             ^
arch/x86/include/asm/uaccess.h:234:22: note: in definition of macro '__put_user_size'
  234 |         __typeof__(*(ptr)) __x = (x); /* eval x once */                 \
      |                      ^~~
sound/core/pcm_native.c:3082:9: note: in expansion of macro 'unsafe_put_user'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/core/pcm_native.c:3082:61: error: 'struct snd_pcm_mmap_status_x32' has no member named 'tstamp'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |                                                             ^
arch/x86/include/asm/uaccess.h:234:35: note: in definition of macro '__put_user_size'
  234 |         __typeof__(*(ptr)) __x = (x); /* eval x once */                 \
      |                                   ^
sound/core/pcm_native.c:3082:9: note: in expansion of macro 'unsafe_put_user'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/core/pcm_native.c:3082:61: error: 'struct snd_pcm_mmap_status_x32' has no member named 'tstamp'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |                                                             ^
arch/x86/include/asm/uaccess.h:235:20: note: in definition of macro '__put_user_size'
  235 |         __typeof__(ptr) __ptr = (ptr); /* eval ptr once */              \
      |                    ^~~
sound/core/pcm_native.c:3082:9: note: in expansion of macro 'unsafe_put_user'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/core/pcm_native.c:3082:61: error: 'struct snd_pcm_mmap_status_x32' has no member named 'tstamp'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |                                                             ^
arch/x86/include/asm/uaccess.h:235:34: note: in definition of macro '__put_user_size'
  235 |         __typeof__(ptr) __ptr = (ptr); /* eval ptr once */              \
      |                                  ^~~
sound/core/pcm_native.c:3082:9: note: in expansion of macro 'unsafe_put_user'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/core/pcm_native.c:3082:61: error: 'struct snd_pcm_mmap_status_x32' has no member named 'tstamp'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |                                                             ^
arch/x86/include/asm/uaccess.h:237:17: note: in definition of macro '__put_user_size'
  237 |         switch (size) {                                                 \
      |                 ^~~~
sound/core/pcm_native.c:3082:9: note: in expansion of macro 'unsafe_put_user'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:239:17: note: in expansion of macro '__put_user_goto'
  239 |                 __put_user_goto(__x, __ptr, "b", "iq", label);          \
      |                 ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3082:9: note: in expansion of macro 'unsafe_put_user'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:242:17: note: in expansion of macro '__put_user_goto'
  242 |                 __put_user_goto(__x, __ptr, "w", "ir", label);          \
      |                 ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3082:9: note: in expansion of macro 'unsafe_put_user'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:245:17: note: in expansion of macro '__put_user_goto'
  245 |                 __put_user_goto(__x, __ptr, "l", "ir", label);          \
      |                 ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3082:9: note: in expansion of macro 'unsafe_put_user'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:146:9: note: in expansion of macro '__put_user_goto'
  146 |         __put_user_goto(x, ptr, "q", "er", label)
      |         ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:248:17: note: in expansion of macro '__put_user_goto_u64'
  248 |                 __put_user_goto_u64(__x, __ptr, label);                 \
      |                 ^~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3082:9: note: in expansion of macro 'unsafe_put_user'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:253:34: error: passing argument 1 of 'kmsan_copy_to_user' makes pointer from integer without a cast [-Wint-conversion]
  253 |         instrument_put_user(__x, __ptr, size);                          \
      |                                  ^~~~~
      |                                  |
      |                                  int
include/linux/instrumented.h:213:28: note: in definition of macro 'instrument_put_user'
  213 |         kmsan_copy_to_user(ptr, &from, sizeof(from), 0);        \
      |                            ^~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3082:9: note: in expansion of macro 'unsafe_put_user'
 3082 |         unsafe_put_user(__s.tstamp.tv_nsec, &__src->s.status.tstamp.tv_nsec, failed);           \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/kmsan-checks.h:87:52: note: expected 'void *' but argument is of type 'int'
   87 | static inline void kmsan_copy_to_user(void __user *to, const void *from,
      |                                       ~~~~~~~~~~~~~^~
sound/core/pcm_native.c:3084:67: error: 'struct snd_pcm_mmap_status_x32' has no member named 'audio_tstamp'; did you mean 'audio_tstamp_sec'?
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |                                                                   ^~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:234:22: note: in definition of macro '__put_user_size'
  234 |         __typeof__(*(ptr)) __x = (x); /* eval x once */                 \
      |                      ^~~
sound/core/pcm_native.c:3084:9: note: in expansion of macro 'unsafe_put_user'
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/core/pcm_native.c:3084:67: error: 'struct snd_pcm_mmap_status_x32' has no member named 'audio_tstamp'; did you mean 'audio_tstamp_sec'?
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |                                                                   ^~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:234:35: note: in definition of macro '__put_user_size'
  234 |         __typeof__(*(ptr)) __x = (x); /* eval x once */                 \
      |                                   ^
sound/core/pcm_native.c:3084:9: note: in expansion of macro 'unsafe_put_user'
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/core/pcm_native.c:3084:67: error: 'struct snd_pcm_mmap_status_x32' has no member named 'audio_tstamp'; did you mean 'audio_tstamp_sec'?
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |                                                                   ^~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:235:20: note: in definition of macro '__put_user_size'
  235 |         __typeof__(ptr) __ptr = (ptr); /* eval ptr once */              \
      |                    ^~~
sound/core/pcm_native.c:3084:9: note: in expansion of macro 'unsafe_put_user'
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/core/pcm_native.c:3084:67: error: 'struct snd_pcm_mmap_status_x32' has no member named 'audio_tstamp'; did you mean 'audio_tstamp_sec'?
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |                                                                   ^~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:235:34: note: in definition of macro '__put_user_size'
  235 |         __typeof__(ptr) __ptr = (ptr); /* eval ptr once */              \
      |                                  ^~~
sound/core/pcm_native.c:3084:9: note: in expansion of macro 'unsafe_put_user'
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/core/pcm_native.c:3084:67: error: 'struct snd_pcm_mmap_status_x32' has no member named 'audio_tstamp'; did you mean 'audio_tstamp_sec'?
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |                                                                   ^~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:237:17: note: in definition of macro '__put_user_size'
  237 |         switch (size) {                                                 \
      |                 ^~~~
sound/core/pcm_native.c:3084:9: note: in expansion of macro 'unsafe_put_user'
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:239:17: note: in expansion of macro '__put_user_goto'
  239 |                 __put_user_goto(__x, __ptr, "b", "iq", label);          \
      |                 ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3084:9: note: in expansion of macro 'unsafe_put_user'
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:242:17: note: in expansion of macro '__put_user_goto'
  242 |                 __put_user_goto(__x, __ptr, "w", "ir", label);          \
      |                 ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3084:9: note: in expansion of macro 'unsafe_put_user'
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:245:17: note: in expansion of macro '__put_user_goto'
  245 |                 __put_user_goto(__x, __ptr, "l", "ir", label);          \
      |                 ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3084:9: note: in expansion of macro 'unsafe_put_user'
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:146:9: note: in expansion of macro '__put_user_goto'
  146 |         __put_user_goto(x, ptr, "q", "er", label)
      |         ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:248:17: note: in expansion of macro '__put_user_goto_u64'
  248 |                 __put_user_goto_u64(__x, __ptr, label);                 \
      |                 ^~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3084:9: note: in expansion of macro 'unsafe_put_user'
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:253:34: error: passing argument 1 of 'kmsan_copy_to_user' makes pointer from integer without a cast [-Wint-conversion]
  253 |         instrument_put_user(__x, __ptr, size);                          \
      |                                  ^~~~~
      |                                  |
      |                                  int
include/linux/instrumented.h:213:28: note: in definition of macro 'instrument_put_user'
  213 |         kmsan_copy_to_user(ptr, &from, sizeof(from), 0);        \
      |                            ^~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3084:9: note: in expansion of macro 'unsafe_put_user'
 3084 |         unsafe_put_user(__s.audio_tstamp.tv_sec, &__src->s.status.audio_tstamp.tv_sec, failed); \
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/kmsan-checks.h:87:52: note: expected 'void *' but argument is of type 'int'
   87 | static inline void kmsan_copy_to_user(void __user *to, const void *from,
      |                                       ~~~~~~~~~~~~~^~
sound/core/pcm_native.c:3085:68: error: 'struct snd_pcm_mmap_status_x32' has no member named 'audio_tstamp'; did you mean 'audio_tstamp_sec'?
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |                                                                    ^~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:234:22: note: in definition of macro '__put_user_size'
  234 |         __typeof__(*(ptr)) __x = (x); /* eval x once */                 \
      |                      ^~~
sound/core/pcm_native.c:3085:9: note: in expansion of macro 'unsafe_put_user'
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/core/pcm_native.c:3085:68: error: 'struct snd_pcm_mmap_status_x32' has no member named 'audio_tstamp'; did you mean 'audio_tstamp_sec'?
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |                                                                    ^~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:234:35: note: in definition of macro '__put_user_size'
  234 |         __typeof__(*(ptr)) __x = (x); /* eval x once */                 \
      |                                   ^
sound/core/pcm_native.c:3085:9: note: in expansion of macro 'unsafe_put_user'
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/core/pcm_native.c:3085:68: error: 'struct snd_pcm_mmap_status_x32' has no member named 'audio_tstamp'; did you mean 'audio_tstamp_sec'?
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |                                                                    ^~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:235:20: note: in definition of macro '__put_user_size'
  235 |         __typeof__(ptr) __ptr = (ptr); /* eval ptr once */              \
      |                    ^~~
sound/core/pcm_native.c:3085:9: note: in expansion of macro 'unsafe_put_user'
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/core/pcm_native.c:3085:68: error: 'struct snd_pcm_mmap_status_x32' has no member named 'audio_tstamp'; did you mean 'audio_tstamp_sec'?
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |                                                                    ^~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:235:34: note: in definition of macro '__put_user_size'
  235 |         __typeof__(ptr) __ptr = (ptr); /* eval ptr once */              \
      |                                  ^~~
sound/core/pcm_native.c:3085:9: note: in expansion of macro 'unsafe_put_user'
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/core/pcm_native.c:3085:68: error: 'struct snd_pcm_mmap_status_x32' has no member named 'audio_tstamp'; did you mean 'audio_tstamp_sec'?
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |                                                                    ^~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:237:17: note: in definition of macro '__put_user_size'
  237 |         switch (size) {                                                 \
      |                 ^~~~
sound/core/pcm_native.c:3085:9: note: in expansion of macro 'unsafe_put_user'
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:239:17: note: in expansion of macro '__put_user_goto'
  239 |                 __put_user_goto(__x, __ptr, "b", "iq", label);          \
      |                 ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3085:9: note: in expansion of macro 'unsafe_put_user'
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:242:17: note: in expansion of macro '__put_user_goto'
  242 |                 __put_user_goto(__x, __ptr, "w", "ir", label);          \
      |                 ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3085:9: note: in expansion of macro 'unsafe_put_user'
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:245:17: note: in expansion of macro '__put_user_goto'
  245 |                 __put_user_goto(__x, __ptr, "l", "ir", label);          \
      |                 ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3085:9: note: in expansion of macro 'unsafe_put_user'
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:472:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  472 | #define __m(x) (*(struct __large_struct __user *)(x))
      |                  ^
arch/x86/include/asm/uaccess.h:483:36: note: in expansion of macro '__m'
  483 |                 : : ltype(x), "m" (__m(addr))                           \
      |                                    ^~~
arch/x86/include/asm/uaccess.h:146:9: note: in expansion of macro '__put_user_goto'
  146 |         __put_user_goto(x, ptr, "q", "er", label)
      |         ^~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:248:17: note: in expansion of macro '__put_user_goto_u64'
  248 |                 __put_user_goto_u64(__x, __ptr, label);                 \
      |                 ^~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3085:9: note: in expansion of macro 'unsafe_put_user'
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/uaccess.h:253:34: error: passing argument 1 of 'kmsan_copy_to_user' makes pointer from integer without a cast [-Wint-conversion]
  253 |         instrument_put_user(__x, __ptr, size);                          \
      |                                  ^~~~~
      |                                  |
      |                                  int
include/linux/instrumented.h:213:28: note: in definition of macro 'instrument_put_user'
  213 |         kmsan_copy_to_user(ptr, &from, sizeof(from), 0);        \
      |                            ^~~
arch/x86/include/asm/uaccess.h:533:9: note: in expansion of macro '__put_user_size'
  533 |         __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_native.c:3085:9: note: in expansion of macro 'unsafe_put_user'
 3085 |         unsafe_put_user(__s.audio_tstamp.tv_nsec, &__src->s.status.audio_tstamp.tv_nsec, failed);\
      |         ^~~~~~~~~~~~~~~
sound/core/pcm_compat.c:451:13: note: in expansion of macro 'snd_pcm_sync_ptr_put_user'
  451 |         if (snd_pcm_sync_ptr_put_user(sstatus, scontrol, src))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/kmsan-checks.h:87:52: note: expected 'void *' but argument is of type 'int'
   87 | static inline void kmsan_copy_to_user(void __user *to, const void *from,
      |                                       ~~~~~~~~~~~~~^~
cc1: all warnings being treated as errors

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.

-- 
Cheers,
Stephen Rothwell