All of lore.kernel.org
 help / color / mirror / Atom feed
* [printk:for-5.9 1/1] include/linux/ratelimit.h:14:2: error: incompatible pointer types passing 'arch_spinlock_t to parameter of type 'raw_spinlock_t (aka 'struct raw_spinlock
@ 2020-07-27 23:37 kernel test robot
  2020-07-27 23:50 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2020-07-27 23:37 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git for-5.9
head:   b4a461e72bcb28a512bbdd29a4cb70aede2d68d3
commit: b4a461e72bcb28a512bbdd29a4cb70aede2d68d3 [1/1] printk: Make linux/printk.h self-contained
config: x86_64-randconfig-a016-20200727 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 8dc820393219c7ee440b4ec86c9a201301943276)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git checkout b4a461e72bcb28a512bbdd29a4cb70aede2d68d3
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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 drivers/gpu/drm/vboxvideo/hgsmi_base.c:5:
   In file included from drivers/gpu/drm/vboxvideo/vbox_drv.h:13:
   In file included from include/linux/genalloc.h:32:
   In file included from include/linux/spinlock_types.h:18:
   In file included from include/linux/lockdep.h:43:
   In file included from include/linux/list.h:9:
   In file included from include/linux/kernel.h:15:
   In file included from include/linux/printk.h:10:
   include/linux/ratelimit_types.h:16:2: error: unknown type name 'raw_spinlock_t'; did you mean 'arch_spinlock_t'?
           raw_spinlock_t  lock;           /* protect the state */
           ^~~~~~~~~~~~~~
           arch_spinlock_t
   include/linux/spinlock_types_up.h:19:3: note: 'arch_spinlock_t' declared here
   } arch_spinlock_t;
     ^
   In file included from drivers/gpu/drm/vboxvideo/hgsmi_base.c:5:
   In file included from drivers/gpu/drm/vboxvideo/vbox_drv.h:18:
   In file included from include/drm/drm_encoder.h:28:
   In file included from include/drm/drm_crtc.h:28:
   In file included from include/linux/i2c.h:13:
   In file included from include/linux/acpi.h:15:
   In file included from include/linux/device.h:15:
   In file included from include/linux/dev_printk.h:16:
>> include/linux/ratelimit.h:14:2: error: incompatible pointer types passing 'arch_spinlock_t *' to parameter of type 'raw_spinlock_t *' (aka 'struct raw_spinlock *') [-Werror,-Wincompatible-pointer-types]
           raw_spin_lock_init(&rs->lock);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/spinlock.h:102:23: note: expanded from macro 'raw_spin_lock_init'
           __raw_spin_lock_init((lock), #lock, &__key, LD_WAIT_SPIN);      \
                                ^~~~~~
   include/linux/spinlock.h:95:52: note: passing argument to parameter 'lock' here
     extern void __raw_spin_lock_init(raw_spinlock_t *lock, const char *name,
                                                      ^
   2 errors generated.

vim +14 include/linux/ratelimit.h

717115e1a5856b Dave Young      2008-07-25   8  
f40c396a9ab04e OGAWA Hirofumi  2010-05-24   9  static inline void ratelimit_state_init(struct ratelimit_state *rs,
f40c396a9ab04e OGAWA Hirofumi  2010-05-24  10  					int interval, int burst)
f40c396a9ab04e OGAWA Hirofumi  2010-05-24  11  {
6b1d174b0c27b5 Borislav Petkov 2016-08-02  12  	memset(rs, 0, sizeof(*rs));
6b1d174b0c27b5 Borislav Petkov 2016-08-02  13  
07354eb1a74d1e Thomas Gleixner 2009-07-25 @14  	raw_spin_lock_init(&rs->lock);
f40c396a9ab04e OGAWA Hirofumi  2010-05-24  15  	rs->interval	= interval;
f40c396a9ab04e OGAWA Hirofumi  2010-05-24  16  	rs->burst	= burst;
6b1d174b0c27b5 Borislav Petkov 2016-08-02  17  }
6b1d174b0c27b5 Borislav Petkov 2016-08-02  18  

:::::: The code at line 14 was first introduced by commit
:::::: 07354eb1a74d1e1ece29f8bafe0b46e8c77a95ef locking, printk: Annotate logbuf_lock as raw

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Ingo Molnar <mingo@elte.hu>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34803 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [printk:for-5.9 1/1] include/linux/ratelimit.h:14:2: error: incompatible pointer types passing 'arch_spinlock_t to parameter of type 'raw_spinlock_t (aka 'struct raw_spinlock
  2020-07-27 23:37 [printk:for-5.9 1/1] include/linux/ratelimit.h:14:2: error: incompatible pointer types passing 'arch_spinlock_t to parameter of type 'raw_spinlock_t (aka 'struct raw_spinlock kernel test robot
@ 2020-07-27 23:50 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2020-07-27 23:50 UTC (permalink / raw)
  To: kbuild-all

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

On Tue, Jul 28, 2020 at 07:37:30AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git for-5.9
> head:   b4a461e72bcb28a512bbdd29a4cb70aede2d68d3
> commit: b4a461e72bcb28a512bbdd29a4cb70aede2d68d3 [1/1] printk: Make linux/printk.h self-contained
> config: x86_64-randconfig-a016-20200727 (attached as .config)
> compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 8dc820393219c7ee440b4ec86c9a201301943276)
> 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
>         # install x86_64 cross compiling tool for clang build
>         # apt-get install binutils-x86-64-linux-gnu
>         git checkout b4a461e72bcb28a512bbdd29a4cb70aede2d68d3
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>

This is fixed by

https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=locking/core&id=5be542e945cb39a2457aa2cfe8b84aac95ef0f2d

It's a bit unfortunate that it happens to be in a different git
tree but it should all work out when they're both merged.

Thanks,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-27 23:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-27 23:37 [printk:for-5.9 1/1] include/linux/ratelimit.h:14:2: error: incompatible pointer types passing 'arch_spinlock_t to parameter of type 'raw_spinlock_t (aka 'struct raw_spinlock kernel test robot
2020-07-27 23:50 ` Herbert Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.