[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202211252252.1Ciycufy-lkp@intel.com>
Date: Fri, 25 Nov 2022 22:34:52 +0800
From: kernel test robot <lkp@...el.com>
To: Zheng Yongjun <zhengyongjun3@...wei.com>, cluster-devel@...hat.com,
linux-kernel@...r.kernel.org
Cc: oe-kbuild-all@...ts.linux.dev, ccaulfie@...hat.com,
teigland@...hat.com, zhengbin13@...wei.com
Subject: Re: [PATCH -next] fs: dlm: Fix build error without DEBUG_LOCK_ALLOC
Hi Zheng,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on next-20221122]
url: https://github.com/intel-lab-lkp/linux/commits/Zheng-Yongjun/fs-dlm-Fix-build-error-without-DEBUG_LOCK_ALLOC/20221123-145551
patch link: https://lore.kernel.org/r/20221123065319.56756-1-zhengyongjun3%40huawei.com
patch subject: [PATCH -next] fs: dlm: Fix build error without DEBUG_LOCK_ALLOC
config: m68k-allyesconfig
compiler: m68k-linux-gcc (GCC) 12.1.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://github.com/intel-lab-lkp/linux/commit/4d4ed8e34405dd08de09199be7e0dbdb8cf7c466
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Zheng-Yongjun/fs-dlm-Fix-build-error-without-DEBUG_LOCK_ALLOC/20221123-145551
git checkout 4d4ed8e34405dd08de09199be7e0dbdb8cf7c466
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/connector/ drivers/leds/ drivers/mfd/ drivers/power/supply/ drivers/thermal/ drivers/tty/serial/ drivers/watchdog/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
2849 | pr_warn_ratelimited("unencrypted skb with no associated socket - dropping\n");
| ^~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:33:18: error: 'struct lockdep_map' has no member named 'wait_type_inner'
33 | .wait_type_inner = LD_WAIT_SPIN, \
| ^~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:66:9: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
66 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:69:26: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
69 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit_types.h:27:35: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
27 | .lock = __RAW_SPIN_LOCK_UNLOCKED(name.lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit_types.h:34:9: note: in expansion of macro 'RATELIMIT_STATE_INIT_FLAGS'
34 | RATELIMIT_STATE_INIT_FLAGS(name, interval_init, burst_init, 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit_types.h:42:17: note: in expansion of macro 'RATELIMIT_STATE_INIT'
42 | RATELIMIT_STATE_INIT(name, interval_init, burst_init) \
| ^~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:646:16: note: in expansion of macro 'DEFINE_RATELIMIT_STATE'
646 | static DEFINE_RATELIMIT_STATE(_rs, \
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:667:9: note: in expansion of macro 'printk_ratelimited'
667 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
include/net/sock.h:2849:17: note: in expansion of macro 'pr_warn_ratelimited'
2849 | pr_warn_ratelimited("unencrypted skb with no associated socket - dropping\n");
| ^~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:33:36: warning: excess elements in struct initializer
33 | .wait_type_inner = LD_WAIT_SPIN, \
| ^~~~~~~~~~~~
include/linux/spinlock_types_raw.h:66:9: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
66 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:69:26: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
69 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit_types.h:27:35: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
27 | .lock = __RAW_SPIN_LOCK_UNLOCKED(name.lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit_types.h:34:9: note: in expansion of macro 'RATELIMIT_STATE_INIT_FLAGS'
34 | RATELIMIT_STATE_INIT_FLAGS(name, interval_init, burst_init, 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit_types.h:42:17: note: in expansion of macro 'RATELIMIT_STATE_INIT'
42 | RATELIMIT_STATE_INIT(name, interval_init, burst_init) \
| ^~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:646:16: note: in expansion of macro 'DEFINE_RATELIMIT_STATE'
646 | static DEFINE_RATELIMIT_STATE(_rs, \
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:667:9: note: in expansion of macro 'printk_ratelimited'
667 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
include/net/sock.h:2849:17: note: in expansion of macro 'pr_warn_ratelimited'
2849 | pr_warn_ratelimited("unencrypted skb with no associated socket - dropping\n");
| ^~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:33:36: note: (near initialization for '(anonymous).dep_map')
33 | .wait_type_inner = LD_WAIT_SPIN, \
| ^~~~~~~~~~~~
include/linux/spinlock_types_raw.h:66:9: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
66 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:69:26: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
69 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit_types.h:27:35: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
27 | .lock = __RAW_SPIN_LOCK_UNLOCKED(name.lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit_types.h:34:9: note: in expansion of macro 'RATELIMIT_STATE_INIT_FLAGS'
34 | RATELIMIT_STATE_INIT_FLAGS(name, interval_init, burst_init, 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit_types.h:42:17: note: in expansion of macro 'RATELIMIT_STATE_INIT'
42 | RATELIMIT_STATE_INIT(name, interval_init, burst_init) \
| ^~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:646:16: note: in expansion of macro 'DEFINE_RATELIMIT_STATE'
646 | static DEFINE_RATELIMIT_STATE(_rs, \
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:667:9: note: in expansion of macro 'printk_ratelimited'
667 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
include/net/sock.h:2849:17: note: in expansion of macro 'pr_warn_ratelimited'
2849 | pr_warn_ratelimited("unencrypted skb with no associated socket - dropping\n");
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/local_lock.h:5,
from include/linux/mmzone.h:23,
from include/linux/topology.h:33,
from include/linux/irq.h:19,
from include/asm-generic/hardirq.h:17,
from ./arch/m68k/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:11:
drivers/connector/cn_proc.c: At top level:
include/linux/local_lock_internal.h:21:18: error: 'struct lockdep_map' has no member named 'name'
21 | .name = #lockname, \
| ^~~~
include/linux/local_lock_internal.h:52:43: note: in expansion of macro 'LOCAL_LOCK_DEBUG_INIT'
52 | #define INIT_LOCAL_LOCK(lockname) { LOCAL_LOCK_DEBUG_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
drivers/connector/cn_proc.c:48:17: note: in expansion of macro 'INIT_LOCAL_LOCK'
48 | .lock = INIT_LOCAL_LOCK(lock),
| ^~~~~~~~~~~~~~~
>> drivers/connector/cn_proc.c:48:37: warning: excess elements in struct initializer
48 | .lock = INIT_LOCAL_LOCK(lock),
| ^
include/linux/local_lock_internal.h:21:26: note: in definition of macro 'LOCAL_LOCK_DEBUG_INIT'
21 | .name = #lockname, \
| ^~~~~~~~
drivers/connector/cn_proc.c:48:17: note: in expansion of macro 'INIT_LOCAL_LOCK'
48 | .lock = INIT_LOCAL_LOCK(lock),
| ^~~~~~~~~~~~~~~
drivers/connector/cn_proc.c:48:37: note: (near initialization for 'local_event.lock.dep_map')
48 | .lock = INIT_LOCAL_LOCK(lock),
| ^
include/linux/local_lock_internal.h:21:26: note: in definition of macro 'LOCAL_LOCK_DEBUG_INIT'
21 | .name = #lockname, \
| ^~~~~~~~
drivers/connector/cn_proc.c:48:17: note: in expansion of macro 'INIT_LOCAL_LOCK'
48 | .lock = INIT_LOCAL_LOCK(lock),
| ^~~~~~~~~~~~~~~
include/linux/local_lock_internal.h:22:18: error: 'struct lockdep_map' has no member named 'wait_type_inner'
22 | .wait_type_inner = LD_WAIT_CONFIG, \
| ^~~~~~~~~~~~~~~
include/linux/local_lock_internal.h:52:43: note: in expansion of macro 'LOCAL_LOCK_DEBUG_INIT'
52 | #define INIT_LOCAL_LOCK(lockname) { LOCAL_LOCK_DEBUG_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
drivers/connector/cn_proc.c:48:17: note: in expansion of macro 'INIT_LOCAL_LOCK'
48 | .lock = INIT_LOCAL_LOCK(lock),
| ^~~~~~~~~~~~~~~
include/linux/local_lock_internal.h:22:36: warning: excess elements in struct initializer
22 | .wait_type_inner = LD_WAIT_CONFIG, \
| ^~~~~~~~~~~~~~
include/linux/local_lock_internal.h:52:43: note: in expansion of macro 'LOCAL_LOCK_DEBUG_INIT'
52 | #define INIT_LOCAL_LOCK(lockname) { LOCAL_LOCK_DEBUG_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
drivers/connector/cn_proc.c:48:17: note: in expansion of macro 'INIT_LOCAL_LOCK'
48 | .lock = INIT_LOCAL_LOCK(lock),
| ^~~~~~~~~~~~~~~
include/linux/local_lock_internal.h:22:36: note: (near initialization for 'local_event.lock.dep_map')
22 | .wait_type_inner = LD_WAIT_CONFIG, \
| ^~~~~~~~~~~~~~
include/linux/local_lock_internal.h:52:43: note: in expansion of macro 'LOCAL_LOCK_DEBUG_INIT'
52 | #define INIT_LOCAL_LOCK(lockname) { LOCAL_LOCK_DEBUG_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
drivers/connector/cn_proc.c:48:17: note: in expansion of macro 'INIT_LOCAL_LOCK'
48 | .lock = INIT_LOCAL_LOCK(lock),
| ^~~~~~~~~~~~~~~
include/linux/local_lock_internal.h:23:18: error: 'struct lockdep_map' has no member named 'lock_type'
23 | .lock_type = LD_LOCK_PERCPU, \
| ^~~~~~~~~
include/linux/local_lock_internal.h:52:43: note: in expansion of macro 'LOCAL_LOCK_DEBUG_INIT'
52 | #define INIT_LOCAL_LOCK(lockname) { LOCAL_LOCK_DEBUG_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
drivers/connector/cn_proc.c:48:17: note: in expansion of macro 'INIT_LOCAL_LOCK'
48 | .lock = INIT_LOCAL_LOCK(lock),
| ^~~~~~~~~~~~~~~
include/linux/local_lock_internal.h:23:30: warning: excess elements in struct initializer
23 | .lock_type = LD_LOCK_PERCPU, \
| ^~~~~~~~~~~~~~
include/linux/local_lock_internal.h:52:43: note: in expansion of macro 'LOCAL_LOCK_DEBUG_INIT'
52 | #define INIT_LOCAL_LOCK(lockname) { LOCAL_LOCK_DEBUG_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
drivers/connector/cn_proc.c:48:17: note: in expansion of macro 'INIT_LOCAL_LOCK'
48 | .lock = INIT_LOCAL_LOCK(lock),
| ^~~~~~~~~~~~~~~
include/linux/local_lock_internal.h:23:30: note: (near initialization for 'local_event.lock.dep_map')
23 | .lock_type = LD_LOCK_PERCPU, \
| ^~~~~~~~~~~~~~
include/linux/local_lock_internal.h:52:43: note: in expansion of macro 'LOCAL_LOCK_DEBUG_INIT'
52 | #define INIT_LOCAL_LOCK(lockname) { LOCAL_LOCK_DEBUG_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
drivers/connector/cn_proc.c:48:17: note: in expansion of macro 'INIT_LOCAL_LOCK'
48 | .lock = INIT_LOCAL_LOCK(lock),
| ^~~~~~~~~~~~~~~
--
In file included from include/linux/mmzone.h:16,
from arch/m68k/include/asm/virtconvert.h:12,
from arch/m68k/include/asm/io_mm.h:26,
from arch/m68k/include/asm/io.h:8,
from include/linux/io.h:13,
from drivers/leds/leds-cobalt-raq.c:8:
include/linux/seqlock.h: In function 'seqcount_lockdep_reader_access':
include/linux/seqlock.h:98:21: warning: unused variable 'l' [-Wunused-variable]
98 | seqcount_t *l = (seqcount_t *)s;
| ^
In file included from include/linux/ratelimit_types.h:7,
from include/linux/printk.h:9,
from include/asm-generic/bug.h:22,
from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/io.h:11:
drivers/leds/leds-cobalt-raq.c: At top level:
include/linux/spinlock_types_raw.h:37:18: error: 'struct lockdep_map' has no member named 'name'
37 | .name = #lockname, \
| ^~~~
include/linux/spinlock_types.h:35:9: note: in expansion of macro 'SPIN_DEP_MAP_INIT'
35 | SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:38:22: note: in expansion of macro '___SPIN_LOCK_INITIALIZER'
38 | { { .rlock = ___SPIN_LOCK_INITIALIZER(lockname) } }
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:41:22: note: in expansion of macro '__SPIN_LOCK_INITIALIZER'
41 | (spinlock_t) __SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:43:48: note: in expansion of macro '__SPIN_LOCK_UNLOCKED'
43 | #define DEFINE_SPINLOCK(x) spinlock_t x = __SPIN_LOCK_UNLOCKED(x)
| ^~~~~~~~~~~~~~~~~~~~
drivers/leds/leds-cobalt-raq.c:21:8: note: in expansion of macro 'DEFINE_SPINLOCK'
21 | static DEFINE_SPINLOCK(led_value_lock);
| ^~~~~~~~~~~~~~~
>> drivers/leds/leds-cobalt-raq.c:21:38: warning: excess elements in struct initializer
21 | static DEFINE_SPINLOCK(led_value_lock);
| ^
include/linux/spinlock_types_raw.h:37:26: note: in definition of macro 'SPIN_DEP_MAP_INIT'
37 | .name = #lockname, \
| ^~~~~~~~
include/linux/spinlock_types.h:38:22: note: in expansion of macro '___SPIN_LOCK_INITIALIZER'
38 | { { .rlock = ___SPIN_LOCK_INITIALIZER(lockname) } }
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:41:22: note: in expansion of macro '__SPIN_LOCK_INITIALIZER'
41 | (spinlock_t) __SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:43:48: note: in expansion of macro '__SPIN_LOCK_UNLOCKED'
43 | #define DEFINE_SPINLOCK(x) spinlock_t x = __SPIN_LOCK_UNLOCKED(x)
| ^~~~~~~~~~~~~~~~~~~~
drivers/leds/leds-cobalt-raq.c:21:8: note: in expansion of macro 'DEFINE_SPINLOCK'
21 | static DEFINE_SPINLOCK(led_value_lock);
| ^~~~~~~~~~~~~~~
drivers/leds/leds-cobalt-raq.c:21:38: note: (near initialization for '(anonymous).<anonymous>.rlock.dep_map')
21 | static DEFINE_SPINLOCK(led_value_lock);
| ^
include/linux/spinlock_types_raw.h:37:26: note: in definition of macro 'SPIN_DEP_MAP_INIT'
37 | .name = #lockname, \
| ^~~~~~~~
include/linux/spinlock_types.h:38:22: note: in expansion of macro '___SPIN_LOCK_INITIALIZER'
38 | { { .rlock = ___SPIN_LOCK_INITIALIZER(lockname) } }
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:41:22: note: in expansion of macro '__SPIN_LOCK_INITIALIZER'
41 | (spinlock_t) __SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:43:48: note: in expansion of macro '__SPIN_LOCK_UNLOCKED'
43 | #define DEFINE_SPINLOCK(x) spinlock_t x = __SPIN_LOCK_UNLOCKED(x)
| ^~~~~~~~~~~~~~~~~~~~
drivers/leds/leds-cobalt-raq.c:21:8: note: in expansion of macro 'DEFINE_SPINLOCK'
21 | static DEFINE_SPINLOCK(led_value_lock);
| ^~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:38:18: error: 'struct lockdep_map' has no member named 'wait_type_inner'
38 | .wait_type_inner = LD_WAIT_CONFIG, \
| ^~~~~~~~~~~~~~~
include/linux/spinlock_types.h:35:9: note: in expansion of macro 'SPIN_DEP_MAP_INIT'
35 | SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:38:22: note: in expansion of macro '___SPIN_LOCK_INITIALIZER'
38 | { { .rlock = ___SPIN_LOCK_INITIALIZER(lockname) } }
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:41:22: note: in expansion of macro '__SPIN_LOCK_INITIALIZER'
41 | (spinlock_t) __SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:43:48: note: in expansion of macro '__SPIN_LOCK_UNLOCKED'
43 | #define DEFINE_SPINLOCK(x) spinlock_t x = __SPIN_LOCK_UNLOCKED(x)
| ^~~~~~~~~~~~~~~~~~~~
drivers/leds/leds-cobalt-raq.c:21:8: note: in expansion of macro 'DEFINE_SPINLOCK'
21 | static DEFINE_SPINLOCK(led_value_lock);
| ^~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:38:36: warning: excess elements in struct initializer
38 | .wait_type_inner = LD_WAIT_CONFIG, \
| ^~~~~~~~~~~~~~
include/linux/spinlock_types.h:35:9: note: in expansion of macro 'SPIN_DEP_MAP_INIT'
35 | SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:38:22: note: in expansion of macro '___SPIN_LOCK_INITIALIZER'
38 | { { .rlock = ___SPIN_LOCK_INITIALIZER(lockname) } }
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:41:22: note: in expansion of macro '__SPIN_LOCK_INITIALIZER'
41 | (spinlock_t) __SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:43:48: note: in expansion of macro '__SPIN_LOCK_UNLOCKED'
43 | #define DEFINE_SPINLOCK(x) spinlock_t x = __SPIN_LOCK_UNLOCKED(x)
| ^~~~~~~~~~~~~~~~~~~~
drivers/leds/leds-cobalt-raq.c:21:8: note: in expansion of macro 'DEFINE_SPINLOCK'
21 | static DEFINE_SPINLOCK(led_value_lock);
| ^~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:38:36: note: (near initialization for '(anonymous).<anonymous>.rlock.dep_map')
38 | .wait_type_inner = LD_WAIT_CONFIG, \
| ^~~~~~~~~~~~~~
include/linux/spinlock_types.h:35:9: note: in expansion of macro 'SPIN_DEP_MAP_INIT'
35 | SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:38:22: note: in expansion of macro '___SPIN_LOCK_INITIALIZER'
38 | { { .rlock = ___SPIN_LOCK_INITIALIZER(lockname) } }
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:41:22: note: in expansion of macro '__SPIN_LOCK_INITIALIZER'
41 | (spinlock_t) __SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:43:48: note: in expansion of macro '__SPIN_LOCK_UNLOCKED'
43 | #define DEFINE_SPINLOCK(x) spinlock_t x = __SPIN_LOCK_UNLOCKED(x)
| ^~~~~~~~~~~~~~~~~~~~
drivers/leds/leds-cobalt-raq.c:21:8: note: in expansion of macro 'DEFINE_SPINLOCK'
21 | static DEFINE_SPINLOCK(led_value_lock);
| ^~~~~~~~~~~~~~~
--
include/linux/semaphore.h:23:27: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
23 | .lock = __RAW_SPIN_LOCK_UNLOCKED((name).lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:34:35: note: in expansion of macro '__SEMAPHORE_INITIALIZER'
34 | *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:34:68: warning: excess elements in struct initializer
34 | *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val);
| ^
include/linux/spinlock_types_raw.h:32:26: note: in definition of macro 'RAW_SPIN_DEP_MAP_INIT'
32 | .name = #lockname, \
| ^~~~~~~~
include/linux/spinlock_types_raw.h:69:26: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
69 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:23:27: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
23 | .lock = __RAW_SPIN_LOCK_UNLOCKED((name).lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:34:35: note: in expansion of macro '__SEMAPHORE_INITIALIZER'
34 | *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:34:68: note: (near initialization for '(anonymous).dep_map')
34 | *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val);
| ^
include/linux/spinlock_types_raw.h:32:26: note: in definition of macro 'RAW_SPIN_DEP_MAP_INIT'
32 | .name = #lockname, \
| ^~~~~~~~
include/linux/spinlock_types_raw.h:69:26: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
69 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:23:27: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
23 | .lock = __RAW_SPIN_LOCK_UNLOCKED((name).lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:34:35: note: in expansion of macro '__SEMAPHORE_INITIALIZER'
34 | *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:33:18: error: 'struct lockdep_map' has no member named 'wait_type_inner'
33 | .wait_type_inner = LD_WAIT_SPIN, \
| ^~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:66:9: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
66 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:69:26: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
69 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:23:27: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
23 | .lock = __RAW_SPIN_LOCK_UNLOCKED((name).lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:34:35: note: in expansion of macro '__SEMAPHORE_INITIALIZER'
34 | *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:33:36: warning: excess elements in struct initializer
33 | .wait_type_inner = LD_WAIT_SPIN, \
| ^~~~~~~~~~~~
include/linux/spinlock_types_raw.h:66:9: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
66 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:69:26: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
69 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:23:27: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
23 | .lock = __RAW_SPIN_LOCK_UNLOCKED((name).lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:34:35: note: in expansion of macro '__SEMAPHORE_INITIALIZER'
34 | *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:33:36: note: (near initialization for '(anonymous).dep_map')
33 | .wait_type_inner = LD_WAIT_SPIN, \
| ^~~~~~~~~~~~
include/linux/spinlock_types_raw.h:66:9: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
66 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:69:26: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
69 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:23:27: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
23 | .lock = __RAW_SPIN_LOCK_UNLOCKED((name).lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:34:35: note: in expansion of macro '__SEMAPHORE_INITIALIZER'
34 | *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val);
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/mfd/wm8350-core.c: At top level:
include/linux/spinlock_types_raw.h:32:18: error: 'struct lockdep_map' has no member named 'name'
32 | .name = #lockname, \
| ^~~~
include/linux/spinlock_types_raw.h:66:9: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
66 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:69:26: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
69 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:110:32: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
110 | , .wait_lock = __RAW_SPIN_LOCK_UNLOCKED(lockname.wait_lock) \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:116:34: note: in expansion of macro '__MUTEX_INITIALIZER'
116 | struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
| ^~~~~~~~~~~~~~~~~~~
drivers/mfd/wm8350-core.c:58:8: note: in expansion of macro 'DEFINE_MUTEX'
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^~~~~~~~~~~~
>> drivers/mfd/wm8350-core.c:58:35: warning: excess elements in struct initializer
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^
include/linux/spinlock_types_raw.h:32:26: note: in definition of macro 'RAW_SPIN_DEP_MAP_INIT'
32 | .name = #lockname, \
| ^~~~~~~~
include/linux/spinlock_types_raw.h:69:26: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
69 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:110:32: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
110 | , .wait_lock = __RAW_SPIN_LOCK_UNLOCKED(lockname.wait_lock) \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:116:34: note: in expansion of macro '__MUTEX_INITIALIZER'
116 | struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
| ^~~~~~~~~~~~~~~~~~~
drivers/mfd/wm8350-core.c:58:8: note: in expansion of macro 'DEFINE_MUTEX'
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^~~~~~~~~~~~
drivers/mfd/wm8350-core.c:58:35: note: (near initialization for '(anonymous).dep_map')
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^
include/linux/spinlock_types_raw.h:32:26: note: in definition of macro 'RAW_SPIN_DEP_MAP_INIT'
32 | .name = #lockname, \
| ^~~~~~~~
include/linux/spinlock_types_raw.h:69:26: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
69 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:110:32: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
110 | , .wait_lock = __RAW_SPIN_LOCK_UNLOCKED(lockname.wait_lock) \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:116:34: note: in expansion of macro '__MUTEX_INITIALIZER'
116 | struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
| ^~~~~~~~~~~~~~~~~~~
drivers/mfd/wm8350-core.c:58:8: note: in expansion of macro 'DEFINE_MUTEX'
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^~~~~~~~~~~~
include/linux/spinlock_types_raw.h:33:18: error: 'struct lockdep_map' has no member named 'wait_type_inner'
33 | .wait_type_inner = LD_WAIT_SPIN, \
| ^~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:66:9: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
66 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:69:26: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
69 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:110:32: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
110 | , .wait_lock = __RAW_SPIN_LOCK_UNLOCKED(lockname.wait_lock) \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:116:34: note: in expansion of macro '__MUTEX_INITIALIZER'
116 | struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
| ^~~~~~~~~~~~~~~~~~~
drivers/mfd/wm8350-core.c:58:8: note: in expansion of macro 'DEFINE_MUTEX'
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^~~~~~~~~~~~
include/linux/spinlock_types_raw.h:33:36: warning: excess elements in struct initializer
33 | .wait_type_inner = LD_WAIT_SPIN, \
| ^~~~~~~~~~~~
include/linux/spinlock_types_raw.h:66:9: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
66 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:69:26: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
69 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:110:32: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
110 | , .wait_lock = __RAW_SPIN_LOCK_UNLOCKED(lockname.wait_lock) \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:116:34: note: in expansion of macro '__MUTEX_INITIALIZER'
116 | struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
| ^~~~~~~~~~~~~~~~~~~
drivers/mfd/wm8350-core.c:58:8: note: in expansion of macro 'DEFINE_MUTEX'
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^~~~~~~~~~~~
include/linux/spinlock_types_raw.h:33:36: note: (near initialization for '(anonymous).dep_map')
33 | .wait_type_inner = LD_WAIT_SPIN, \
| ^~~~~~~~~~~~
include/linux/spinlock_types_raw.h:66:9: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
66 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types_raw.h:69:26: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
69 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:110:32: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
110 | , .wait_lock = __RAW_SPIN_LOCK_UNLOCKED(lockname.wait_lock) \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:116:34: note: in expansion of macro '__MUTEX_INITIALIZER'
116 | struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
| ^~~~~~~~~~~~~~~~~~~
drivers/mfd/wm8350-core.c:58:8: note: in expansion of macro 'DEFINE_MUTEX'
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^~~~~~~~~~~~
In file included from include/linux/seqlock.h:19:
include/linux/mutex.h:26:26: error: 'struct lockdep_map' has no member named 'name'
26 | .name = #lockname, \
| ^~~~
include/linux/mutex.h:113:17: note: in expansion of macro '__DEP_MAP_MUTEX_INITIALIZER'
113 | __DEP_MAP_MUTEX_INITIALIZER(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:116:34: note: in expansion of macro '__MUTEX_INITIALIZER'
116 | struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
| ^~~~~~~~~~~~~~~~~~~
drivers/mfd/wm8350-core.c:58:8: note: in expansion of macro 'DEFINE_MUTEX'
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^~~~~~~~~~~~
>> drivers/mfd/wm8350-core.c:58:35: warning: excess elements in struct initializer
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^
include/linux/mutex.h:26:34: note: in definition of macro '__DEP_MAP_MUTEX_INITIALIZER'
26 | .name = #lockname, \
| ^~~~~~~~
include/linux/mutex.h:116:34: note: in expansion of macro '__MUTEX_INITIALIZER'
116 | struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
| ^~~~~~~~~~~~~~~~~~~
drivers/mfd/wm8350-core.c:58:8: note: in expansion of macro 'DEFINE_MUTEX'
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^~~~~~~~~~~~
drivers/mfd/wm8350-core.c:58:35: note: (near initialization for 'reg_lock_mutex.dep_map')
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^
include/linux/mutex.h:26:34: note: in definition of macro '__DEP_MAP_MUTEX_INITIALIZER'
26 | .name = #lockname, \
| ^~~~~~~~
include/linux/mutex.h:116:34: note: in expansion of macro '__MUTEX_INITIALIZER'
116 | struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
| ^~~~~~~~~~~~~~~~~~~
drivers/mfd/wm8350-core.c:58:8: note: in expansion of macro 'DEFINE_MUTEX'
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^~~~~~~~~~~~
include/linux/mutex.h:27:26: error: 'struct lockdep_map' has no member named 'wait_type_inner'
27 | .wait_type_inner = LD_WAIT_SLEEP, \
| ^~~~~~~~~~~~~~~
include/linux/mutex.h:113:17: note: in expansion of macro '__DEP_MAP_MUTEX_INITIALIZER'
113 | __DEP_MAP_MUTEX_INITIALIZER(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:116:34: note: in expansion of macro '__MUTEX_INITIALIZER'
116 | struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
| ^~~~~~~~~~~~~~~~~~~
drivers/mfd/wm8350-core.c:58:8: note: in expansion of macro 'DEFINE_MUTEX'
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^~~~~~~~~~~~
include/linux/mutex.h:27:44: warning: excess elements in struct initializer
27 | .wait_type_inner = LD_WAIT_SLEEP, \
| ^~~~~~~~~~~~~
include/linux/mutex.h:113:17: note: in expansion of macro '__DEP_MAP_MUTEX_INITIALIZER'
113 | __DEP_MAP_MUTEX_INITIALIZER(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:116:34: note: in expansion of macro '__MUTEX_INITIALIZER'
116 | struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
| ^~~~~~~~~~~~~~~~~~~
drivers/mfd/wm8350-core.c:58:8: note: in expansion of macro 'DEFINE_MUTEX'
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^~~~~~~~~~~~
include/linux/mutex.h:27:44: note: (near initialization for 'reg_lock_mutex.dep_map')
27 | .wait_type_inner = LD_WAIT_SLEEP, \
| ^~~~~~~~~~~~~
include/linux/mutex.h:113:17: note: in expansion of macro '__DEP_MAP_MUTEX_INITIALIZER'
113 | __DEP_MAP_MUTEX_INITIALIZER(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mutex.h:116:34: note: in expansion of macro '__MUTEX_INITIALIZER'
116 | struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
| ^~~~~~~~~~~~~~~~~~~
drivers/mfd/wm8350-core.c:58:8: note: in expansion of macro 'DEFINE_MUTEX'
58 | static DEFINE_MUTEX(reg_lock_mutex);
| ^~~~~~~~~~~~
..
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for DEBUG_LOCK_ALLOC
Depends on [n]: DEBUG_KERNEL [=y] && LOCK_DEBUGGING_SUPPORT [=n]
Selected by [y]:
- DLM [=y] && INET [=y] && SYSFS [=y] && CONFIGFS_FS [=y] && (IPV6 [=y] || IPV6 [=y]=n)
vim +48 drivers/connector/cn_proc.c
9f46080c41d5f3 Matt Helsley 2005-11-07 41
3e92fd7bd2b841 Mike Galbraith 2020-05-27 42 /* local_event.count is used as the sequence number of the netlink message */
3e92fd7bd2b841 Mike Galbraith 2020-05-27 43 struct local_event {
3e92fd7bd2b841 Mike Galbraith 2020-05-27 44 local_lock_t lock;
3e92fd7bd2b841 Mike Galbraith 2020-05-27 45 __u32 count;
3e92fd7bd2b841 Mike Galbraith 2020-05-27 46 };
3e92fd7bd2b841 Mike Galbraith 2020-05-27 47 static DEFINE_PER_CPU(struct local_event, local_event) = {
3e92fd7bd2b841 Mike Galbraith 2020-05-27 @48 .lock = INIT_LOCAL_LOCK(lock),
3e92fd7bd2b841 Mike Galbraith 2020-05-27 49 };
9f46080c41d5f3 Matt Helsley 2005-11-07 50
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (284079 bytes)
Powered by blists - more mailing lists