Messages in this thread | | | Date | Mon, 2 Nov 2020 22:15:23 +0800 | From | kernel test robot <> | Subject | include/uapi/sound/asound.h:562:14: error: conflicting types for '__pad_before_uframe' |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3cea11cd5e3b00d91caf0b4730194039b45c5891 commit: 80fe7430c7085951d1246d83f638cc17e6c0be36 ALSA: add new 32-bit layout for snd_pcm_mmap_status/control date: 11 months ago config: mips-randconfig-r006-20201102 (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/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/oss/pcm_oss.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 include/sound/asound.h:24, from include/sound/pcm.h:11, from sound/core/oss/pcm_oss.c:25: >> 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/oss/pcm_oss.c:1206:19: warning: no previous prototype for 'snd_pcm_oss_write3' [-Wmissing-prototypes] 1206 | snd_pcm_sframes_t snd_pcm_oss_write3(struct snd_pcm_substream *substream, const char *ptr, snd_pcm_uframes_t frames, int in_kernel) | ^~~~~~~~~~~~~~~~~~ sound/core/oss/pcm_oss.c:1235:19: warning: no previous prototype for 'snd_pcm_oss_read3' [-Wmissing-prototypes] 1235 | snd_pcm_sframes_t snd_pcm_oss_read3(struct snd_pcm_substream *substream, char *ptr, snd_pcm_uframes_t frames, int in_kernel) | ^~~~~~~~~~~~~~~~~ sound/core/oss/pcm_oss.c: In function 'snd_pcm_oss_register_minor': sound/core/oss/pcm_oss.c:3119:29: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 3119 | snd_pcm_oss_proc_init(pcm); | ^ -- 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/oss/mixer_oss.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/oss/mixer_oss.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]; | ^~~~~~~~~~~~~~~~~~
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] | |