Messages in this thread | | | Date | Fri, 22 Jan 2021 10:21:36 +0800 | From | kernel test robot <> | Subject | include/uapi/sound/asound.h:562:14: error: conflicting types for '__pad_before_uframe' |
| |
Hi Arnd,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9f29bd8b2e7132b409178d1367dae1813017bd0e commit: 80fe7430c7085951d1246d83f638cc17e6c0be36 ALSA: add new 32-bit layout for snd_pcm_mmap_status/control date: 1 year, 1 month ago config: mips-randconfig-r034-20210122 (attached as .config) compiler: mips-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=80fe7430c7085951d1246d83f638cc17e6c0be36 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 80fe7430c7085951d1246d83f638cc17e6c0be36 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from arch/mips/include/uapi/asm/byteorder.h:13, from arch/mips/include/asm/bitops.h:20, from include/linux/bitops.h:26, from include/linux/kernel.h:12, from include/linux/clk.h:13, from drivers/base/regmap/regmap-mmio.c:7: include/linux/byteorder/big_endian.h:8:2: warning: #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN [-Wcpp] 8 | #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN | ^~~~~~~ drivers/base/regmap/regmap-mmio.c: In function 'regmap_mmio_gen_context': >> drivers/base/regmap/regmap-mmio.c:274:2: error: duplicate case value 274 | case REGMAP_ENDIAN_NATIVE: | ^~~~ drivers/base/regmap/regmap-mmio.c:246:2: note: previously used here 246 | case REGMAP_ENDIAN_NATIVE: | ^~~~ -- In file included from arch/mips/include/uapi/asm/byteorder.h:13, from arch/mips/include/asm/bitops.h:20, from include/linux/bitops.h:26, from include/linux/kernel.h:12, from include/asm-generic/bug.h:19, from arch/mips/include/asm/bug.h:42, from include/linux/bug.h:5, from include/linux/mmdebug.h:5, from include/linux/gfp.h:5, from include/linux/slab.h:15, from sound/core/sound.c:8: include/linux/byteorder/big_endian.h:8:2: warning: #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN [-Wcpp] 8 | #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN | ^~~~~~~ In file included from include/sound/asound.h:24, from include/sound/control.h:12, from sound/core/sound.c:15: >> include/uapi/sound/asound.h:562:14: error: conflicting types for '__pad_before_uframe' 562 | typedef char __pad_before_uframe[0]; | ^~~~~~~~~~~~~~~~~~~ include/uapi/sound/asound.h:557:14: note: previous declaration of '__pad_before_uframe' was here 557 | typedef char __pad_before_uframe[sizeof(__u64) - sizeof(snd_pcm_uframes_t)]; | ^~~~~~~~~~~~~~~~~~~ >> include/uapi/sound/asound.h:563:14: error: conflicting types for '__pad_after_uframe' 563 | typedef char __pad_after_uframe[sizeof(__u64) - sizeof(snd_pcm_uframes_t)]; | ^~~~~~~~~~~~~~~~~~ include/uapi/sound/asound.h:558:14: note: previous declaration of '__pad_after_uframe' was here 558 | typedef char __pad_after_uframe[0]; | ^~~~~~~~~~~~~~~~~~ -- In file included from arch/mips/include/uapi/asm/byteorder.h:13, from arch/mips/include/asm/bitops.h:20, from include/linux/bitops.h:26, from include/linux/kernel.h:12, from include/linux/delay.h:22, from sound/core/timer.c:7: include/linux/byteorder/big_endian.h:8:2: warning: #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN [-Wcpp] 8 | #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN | ^~~~~~~ In file included from include/sound/asound.h:24, from include/sound/timer.h:11, from sound/core/timer.c:17: >> include/uapi/sound/asound.h:562:14: error: conflicting types for '__pad_before_uframe' 562 | typedef char __pad_before_uframe[0]; | ^~~~~~~~~~~~~~~~~~~ include/uapi/sound/asound.h:557:14: note: previous declaration of '__pad_before_uframe' was here 557 | typedef char __pad_before_uframe[sizeof(__u64) - sizeof(snd_pcm_uframes_t)]; | ^~~~~~~~~~~~~~~~~~~ >> include/uapi/sound/asound.h:563:14: error: conflicting types for '__pad_after_uframe' 563 | typedef char __pad_after_uframe[sizeof(__u64) - sizeof(snd_pcm_uframes_t)]; | ^~~~~~~~~~~~~~~~~~ include/uapi/sound/asound.h:558:14: note: previous declaration of '__pad_after_uframe' was here 558 | typedef char __pad_after_uframe[0]; | ^~~~~~~~~~~~~~~~~~ sound/core/timer.c: In function 'snd_timer_user_read': sound/core/timer.c:2219:19: warning: initialized field overwritten [-Woverride-init] 2219 | .tstamp_sec = tread->tstamp_nsec, | ^~~~~ sound/core/timer.c:2219:19: note: (near initialization for '(anonymous).tstamp_sec') -- In file included from arch/mips/include/uapi/asm/byteorder.h:13, from arch/mips/include/asm/bitops.h:20, from include/linux/bitops.h:26, from include/linux/kernel.h:12, from include/linux/list.h:9, from include/linux/preempt.h:11, from include/linux/spinlock.h:51, from include/linux/seqlock.h:36, from include/linux/time.h:6, from include/linux/compat.h:10, from sound/core/pcm_native.c:7: include/linux/byteorder/big_endian.h:8:2: warning: #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN [-Wcpp] 8 | #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN | ^~~~~~~ In file included from include/sound/asound.h:24, from include/sound/control.h:12, from sound/core/pcm_native.c:19: >> include/uapi/sound/asound.h:562:14: error: conflicting types for '__pad_before_uframe' 562 | typedef char __pad_before_uframe[0]; | ^~~~~~~~~~~~~~~~~~~ include/uapi/sound/asound.h:557:14: note: previous declaration of '__pad_before_uframe' was here 557 | typedef char __pad_before_uframe[sizeof(__u64) - sizeof(snd_pcm_uframes_t)]; | ^~~~~~~~~~~~~~~~~~~ >> include/uapi/sound/asound.h:563:14: error: conflicting types for '__pad_after_uframe' 563 | typedef char __pad_after_uframe[sizeof(__u64) - sizeof(snd_pcm_uframes_t)]; | ^~~~~~~~~~~~~~~~~~ include/uapi/sound/asound.h:558:14: note: previous declaration of '__pad_after_uframe' was here 558 | typedef char __pad_after_uframe[0]; | ^~~~~~~~~~~~~~~~~~ sound/core/pcm_native.c: In function 'constrain_mask_params': sound/core/pcm_native.c:251:18: warning: variable 'old_mask' set but not used [-Wunused-but-set-variable] 251 | struct snd_mask old_mask; | ^~~~~~~~ sound/core/pcm_native.c: In function 'constrain_interval_params': sound/core/pcm_native.c:287:22: warning: variable 'old_interval' set but not used [-Wunused-but-set-variable] 287 | struct snd_interval old_interval; | ^~~~~~~~~~~~ sound/core/pcm_native.c: In function 'constrain_params_by_rules': sound/core/pcm_native.c:328:22: warning: variable 'old_interval' set but not used [-Wunused-but-set-variable] 328 | struct snd_interval old_interval; | ^~~~~~~~~~~~ sound/core/pcm_native.c:327:18: warning: variable 'old_mask' set but not used [-Wunused-but-set-variable] 327 | struct snd_mask old_mask; | ^~~~~~~~ sound/core/pcm_native.c: In function 'snd_pcm_hw_params_choose': sound/core/pcm_native.c:611:22: warning: variable 'old_interval' set but not used [-Wunused-but-set-variable] 611 | struct snd_interval old_interval; | ^~~~~~~~~~~~ sound/core/pcm_native.c:610:18: warning: variable 'old_mask' set but not used [-Wunused-but-set-variable] 610 | struct snd_mask old_mask; | ^~~~~~~~ -- In file included from arch/mips/include/uapi/asm/byteorder.h:13, from arch/mips/include/asm/bitops.h:20, from include/linux/bitops.h:26, from lib/find_bit.c:15: include/linux/byteorder/big_endian.h:8:2: warning: #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN [-Wcpp] 8 | #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN | ^~~~~~~ >> lib/find_bit.c:199:15: error: redefinition of 'find_next_zero_bit_le' 199 | unsigned long find_next_zero_bit_le(const void *addr, unsigned | ^~~~~~~~~~~~~~~~~~~~~ In file included from arch/mips/include/asm/bitops.h:458, from include/linux/bitops.h:26, from lib/find_bit.c:15: include/asm-generic/bitops/le.h:12:29: note: previous definition of 'find_next_zero_bit_le' was here 12 | static inline unsigned long find_next_zero_bit_le(const void *addr, | ^~~~~~~~~~~~~~~~~~~~~ >> lib/find_bit.c:208:15: error: redefinition of 'find_next_bit_le' 208 | unsigned long find_next_bit_le(const void *addr, unsigned | ^~~~~~~~~~~~~~~~ In file included from arch/mips/include/asm/bitops.h:458, from include/linux/bitops.h:26, from lib/find_bit.c:15: include/asm-generic/bitops/le.h:18:29: note: previous definition of 'find_next_bit_le' was here 18 | static inline unsigned long find_next_bit_le(const void *addr, | ^~~~~~~~~~~~~~~~ -- In file included from arch/mips/include/uapi/asm/byteorder.h:13, from arch/mips/include/asm/bitops.h:20, from include/linux/bitops.h:26, from include/linux/kernel.h:12, from include/linux/list.h:9, from include/linux/module.h:12, from lib/lzo/lzo1x_decompress_safe.c:16: include/linux/byteorder/big_endian.h:8:2: warning: #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN [-Wcpp] 8 | #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN | ^~~~~~~ In file included from lib/lzo/lzo1x_decompress_safe.c:21: >> lib/lzo/lzodefs.h:33:2: error: #error "conflicting endian definitions" 33 | #error "conflicting endian definitions" | ^~~~~ -- In file included from arch/mips/include/uapi/asm/byteorder.h:13, from arch/mips/include/asm/bitops.h:20, from include/linux/bitops.h:26, from include/linux/kernel.h:12, from include/linux/list.h:9, from include/linux/module.h:12, from lib/lzo/lzo1x_compress.c:15: include/linux/byteorder/big_endian.h:8:2: warning: #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN [-Wcpp] 8 | #warning inconsistent configuration, needs CONFIG_CPU_BIG_ENDIAN | ^~~~~~~ In file included from lib/lzo/lzo1x_compress.c:19: >> lib/lzo/lzodefs.h:33:2: error: #error "conflicting endian definitions" 33 | #error "conflicting endian definitions" | ^~~~~ lib/lzo/lzo1x_compress.c:291:5: warning: no previous prototype for 'lzogeneric1x_1_compress' [-Wmissing-prototypes] 291 | int lzogeneric1x_1_compress(const unsigned char *in, size_t in_len, | ^~~~~~~~~~~~~~~~~~~~~~~
vim +/__pad_before_uframe +562 include/uapi/sound/asound.h
560 561 #if defined(__BYTE_ORDER) ? __BYTE_ORDER == __LITTLE_ENDIAN : defined(__LITTLE_ENDIAN) > 562 typedef char __pad_before_uframe[0]; > 563 typedef char __pad_after_uframe[sizeof(__u64) - sizeof(snd_pcm_uframes_t)]; 564 #endif 565
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |