public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Takashi Iwai <tiwai@suse•de>
Cc: Christophe Leroy <christophe.leroy@csgroup•eu>,
	Linux Kernel Mailing List <linux-kernel@vger•kernel.org>,
	Linux Next Mailing List <linux-next@vger•kernel.org>
Subject: linux-next: build failure after merge of the sound tree
Date: Mon, 16 Jun 2025 13:01:26 +1000	[thread overview]
Message-ID: <20250616130126.08729b84@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 47556 bytes --]

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

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2025-06-16  3:01 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-16  3:01 Stephen Rothwell [this message]
2025-06-16  5:29 ` linux-next: build failure after merge of the sound tree Christophe Leroy
  -- strict thread matches above, loose matches on Subject: below --
2026-06-04 15:07 Mark Brown
2026-06-04 15:19 ` Takashi Iwai
2025-02-12  1:09 Stephen Rothwell
2025-02-12  7:22 ` Takashi Iwai
2025-01-20  3:56 Stephen Rothwell
2025-01-20  7:42 ` Takashi Iwai
2024-10-11  2:10 Stephen Rothwell
2024-10-11  7:22 ` Takashi Iwai
2024-08-09  1:22 Stephen Rothwell
2024-08-09  7:43 ` Takashi Iwai
2023-08-18  3:12 Stephen Rothwell
2023-08-18 11:47 ` Takashi Iwai
2023-05-24  3:54 Stephen Rothwell
2023-05-24  7:14 ` Takashi Iwai
2022-07-15 12:44 Stephen Rothwell
2022-07-15 14:41 ` Takashi Iwai
2022-07-15 19:09   ` Andy Shevchenko
2021-10-18  0:38 Stephen Rothwell
2021-10-18  6:35 ` Takashi Iwai
2020-07-17  3:01 Stephen Rothwell
2020-07-17  5:33 ` Christoph Hellwig
2020-07-17  6:34   ` Takashi Iwai
2020-07-17  6:50     ` Christoph Hellwig
2020-07-17  6:54       ` Takashi Iwai
2019-08-09  2:54 Stephen Rothwell
2019-08-09  5:55 ` Takashi Iwai
2017-05-17  1:29 Stephen Rothwell
2017-05-17  5:30 ` Takashi Iwai
2011-09-23  2:49 Stephen Rothwell
2011-09-23  5:21 ` Takashi Iwai
2011-05-19  1:15 Stephen Rothwell
2010-09-23  2:44 Stephen Rothwell
2010-09-23  6:04 ` Takashi Iwai
2010-09-23  8:39   ` Mark Brown
2010-06-24  3:03 Stephen Rothwell
2010-06-24  6:11 ` Takashi Iwai
2010-06-28 16:33   ` Daniel Mack
2010-06-01  2:30 Stephen Rothwell
2010-06-01  5:47 ` Takashi Iwai
2010-04-07  3:39 Stephen Rothwell
2010-04-07  6:06 ` Takashi Iwai
2010-04-07  7:16   ` Stephen Rothwell

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=20250616130126.08729b84@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=christophe.leroy@csgroup$(echo .)eu \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=tiwai@suse$(echo .)de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox