All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [l1k:pciehp_deadlock 1/1] include/linux/lockdep.h:268:64: error: invalid type argument of '->' (have 'struct rw_semaphore')
Date: Mon, 20 Jul 2020 15:18:08 +0800	[thread overview]
Message-ID: <202007201552.CyiDdPu1%lkp@intel.com> (raw)

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

tree:   https://github.com/l1k/linux pciehp_deadlock
head:   340a50fd68cdc5c65e74e25482b39e9429f9b8fa
commit: 340a50fd68cdc5c65e74e25482b39e9429f9b8fa [1/1] PCI: pciehp: Fix AB-BA deadlock between reset_lock and device_lock
config: x86_64-randconfig-s022-20200719 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-49-g707c5017-dirty
        git checkout 340a50fd68cdc5c65e74e25482b39e9429f9b8fa
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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 arch/x86/include/asm/bug.h:92,
                    from include/linux/bug.h:5,
                    from include/linux/debug_locks.h:7,
                    from include/linux/lockdep.h:24,
                    from include/linux/mutex.h:17,
                    from include/linux/kernfs.h:12,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/of.h:17,
                    from include/linux/irqdomain.h:35,
                    from include/linux/acpi.h:13,
                    from drivers/pci/pci.c:11:
   drivers/pci/pci.c: In function 'pci_reset_hotplug_slot':
>> include/linux/lockdep.h:268:64: error: invalid type argument of '->' (have 'struct rw_semaphore')
     268 | #define lockdep_is_held_type(lock, r) lock_is_held_type(&(lock)->dep_map, (r))
         |                                                                ^~
   include/asm-generic/bug.h:118:25: note: in definition of macro 'WARN_ON'
     118 |  int __ret_warn_on = !!(condition);    \
         |                         ^~~~~~~~~
   include/linux/lockdep.h:295:27: note: in expansion of macro 'lockdep_is_held_type'
     295 |   WARN_ON(debug_locks && !lockdep_is_held_type(l, 0)); \
         |                           ^~~~~~~~~~~~~~~~~~~~
   drivers/pci/pci.c:4905:2: note: in expansion of macro 'lockdep_assert_held_write'
    4905 |  lockdep_assert_held_write(hotplug->pci_slot->reset_lock);
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~

vim +268 include/linux/lockdep.h

f607c668577481 Peter Zijlstra 2009-07-20  266  
f8319483f57f1c Peter Zijlstra 2016-11-30  267  #define lockdep_is_held(lock)		lock_is_held(&(lock)->dep_map)
f8319483f57f1c Peter Zijlstra 2016-11-30 @268  #define lockdep_is_held_type(lock, r)	lock_is_held_type(&(lock)->dep_map, (r))
f607c668577481 Peter Zijlstra 2009-07-20  269  

:::::: The code at line 268 was first introduced by commit
:::::: f8319483f57f1ca22370f4150bb990aca7728a67 locking/lockdep: Provide a type check for lock_is_held

:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Dave Chinner <david@fromorbit.com>

---
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: 33439 bytes --]

                 reply	other threads:[~2020-07-20  7:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202007201552.CyiDdPu1%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 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.