Re: [kbuild-all] Re: include/linux/spinlock.h:346:2: error: invalid type argument of unary (have 'spinlock_t' {aka 'struct spinlock'})

From: Rong Chen
Date: Thu Sep 17 2020 - 20:18:41 EST




On 9/16/20 3:27 PM, Sebastian Andrzej Siewior wrote:
On 2020-09-16 15:18:56 [+0800], kernel test robot wrote:
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fc4f28bb3daf3265d6bc5f73b497306985bb23ab
commit: de8f5e4f2dc1f032b46afda0a78cab5456974f89 lockdep: Introduce wait-type checks
date: 6 months ago
config: mips-randconfig-r011-20200916 (attached as .config)
compiler: mipsel-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
git checkout de8f5e4f2dc1f032b46afda0a78cab5456974f89
# 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@xxxxxxxxx>

All errors (new ones prefixed by >>):

In file included from drivers/pcmcia/vrc4173_cardu.c:41:
This driver does not compile even before this commit.
Yes, it is still broken and yes it has nothing to do with this commit.

Hi Sebastian,

Only the errors prefixed by '>>' are from this commit, other errors are for reference only.

include/linux/spinlock.h:346:2: error: invalid type argument of unary '*' (have 'spinlock_t' {aka 'struct spinlock'})

346 | *(_lock) = __SPIN_LOCK_UNLOCKED(_lock); \


Best Regards,
Rong Chen