From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Baolin Wang <baolin.wang@linaro.org>
Subject: include/uapi/sound/asound.h:562:14: error: conflicting types for '__pad_before_uframe'
Date: Mon, 2 Nov 2020 22:15:23 +0800 [thread overview]
Message-ID: <202011022219.0qDkLNRX-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 6049 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28905 bytes --]
next reply other threads:[~2020-11-02 14:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-02 14:15 kernel test robot [this message]
2020-11-03 9:57 ` Arnd Bergmann
2021-01-22 2:21 kernel test robot
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=202011022219.0qDkLNRX-lkp@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=baolin.wang@linaro.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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
all inboxes | Powered by JetHome®