lkml.org 
[lkml]   [2017]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[rcu:ms 7/7] include/linux/rwsem.h:166:46: error: 'struct percpu_rw_semaphore' has no member named 'dep_map'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git ms
head: 7daa984159c77d85f3ee053d5688ed7a47854613
commit: 7daa984159c77d85f3ee053d5688ed7a47854613 [7/7] mmap_sem: Use percpu_rw_sema
config: x86_64-acpi-redef+CONFIG_DEBUG_INFO_REDUCED (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 7daa984159c77d85f3ee053d5688ed7a47854613
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

In file included from include/linux/kernel.h:12:0,
from mm/mmap.c:11:
mm/mmap.c: In function 'vm_lock_anon_vma':
>> include/linux/rwsem.h:166:46: error: 'struct percpu_rw_semaphore' has no member named 'dep_map'
typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
^
include/linux/typecheck.h:10:9: note: in definition of macro 'typecheck'
typeof(x) __dummy2; \
^
include/linux/mm_types.h:562:2: note: in expansion of macro 'down_write_nest_lock'
down_write_nest_lock(sem, &(nest_mm)->mmap_sem);
^~~~~~~~~~~~~~~~~~~~
mm/mmap.c:3287:3: note: in expansion of macro 'down_write_nest_lock_mmap_sem'
down_write_nest_lock_mmap_sem(&anon_vma->root->rwsem, mm);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast
(void)(&__dummy == &__dummy2); \
^
include/linux/rwsem.h:166:2: note: in expansion of macro 'typecheck'
typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
^~~~~~~~~
include/linux/mm_types.h:562:2: note: in expansion of macro 'down_write_nest_lock'
down_write_nest_lock(sem, &(nest_mm)->mmap_sem);
^~~~~~~~~~~~~~~~~~~~
mm/mmap.c:3287:3: note: in expansion of macro 'down_write_nest_lock_mmap_sem'
down_write_nest_lock_mmap_sem(&anon_vma->root->rwsem, mm);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/notifier.h:14:0,
from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:757,
from include/linux/gfp.h:5,
from include/linux/slab.h:14,
from mm/mmap.c:12:
include/linux/rwsem.h:167:41: error: 'struct percpu_rw_semaphore' has no member named 'dep_map'
_down_write_nest_lock(sem, &(nest_lock)->dep_map); \
^
include/linux/mm_types.h:562:2: note: in expansion of macro 'down_write_nest_lock'
down_write_nest_lock(sem, &(nest_mm)->mmap_sem);
^~~~~~~~~~~~~~~~~~~~
mm/mmap.c:3287:3: note: in expansion of macro 'down_write_nest_lock_mmap_sem'
down_write_nest_lock_mmap_sem(&anon_vma->root->rwsem, mm);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:12:0,
from mm/mmap.c:11:
mm/mmap.c: In function 'vm_lock_mapping':
>> include/linux/rwsem.h:166:46: error: 'struct percpu_rw_semaphore' has no member named 'dep_map'
typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
^
include/linux/typecheck.h:10:9: note: in definition of macro 'typecheck'
typeof(x) __dummy2; \
^
include/linux/mm_types.h:562:2: note: in expansion of macro 'down_write_nest_lock'
down_write_nest_lock(sem, &(nest_mm)->mmap_sem);
^~~~~~~~~~~~~~~~~~~~
mm/mmap.c:3317:3: note: in expansion of macro 'down_write_nest_lock_mmap_sem'
down_write_nest_lock_mmap_sem(&mapping->i_mmap_rwsem, mm);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast
(void)(&__dummy == &__dummy2); \
^
include/linux/rwsem.h:166:2: note: in expansion of macro 'typecheck'
typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
^~~~~~~~~
include/linux/mm_types.h:562:2: note: in expansion of macro 'down_write_nest_lock'
down_write_nest_lock(sem, &(nest_mm)->mmap_sem);
^~~~~~~~~~~~~~~~~~~~
mm/mmap.c:3317:3: note: in expansion of macro 'down_write_nest_lock_mmap_sem'
down_write_nest_lock_mmap_sem(&mapping->i_mmap_rwsem, mm);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/notifier.h:14:0,
from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:757,
from include/linux/gfp.h:5,
from include/linux/slab.h:14,
from mm/mmap.c:12:
include/linux/rwsem.h:167:41: error: 'struct percpu_rw_semaphore' has no member named 'dep_map'
_down_write_nest_lock(sem, &(nest_lock)->dep_map); \
^
include/linux/mm_types.h:562:2: note: in expansion of macro 'down_write_nest_lock'
down_write_nest_lock(sem, &(nest_mm)->mmap_sem);
^~~~~~~~~~~~~~~~~~~~
mm/mmap.c:3317:3: note: in expansion of macro 'down_write_nest_lock_mmap_sem'
down_write_nest_lock_mmap_sem(&mapping->i_mmap_rwsem, mm);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +166 include/linux/rwsem.h

4ea2176d Ingo Molnar 2006-07-03 160 extern void down_write_nested(struct rw_semaphore *sem, int subclass);
887bddfa Al Viro 2016-05-26 161 extern int down_write_killable_nested(struct rw_semaphore *sem, int subclass);
1b963c81 Jiri Kosina 2013-01-11 162 extern void _down_write_nest_lock(struct rw_semaphore *sem, struct lockdep_map *nest_lock);
1b963c81 Jiri Kosina 2013-01-11 163
1b963c81 Jiri Kosina 2013-01-11 164 # define down_write_nest_lock(sem, nest_lock) \
1b963c81 Jiri Kosina 2013-01-11 165 do { \
1b963c81 Jiri Kosina 2013-01-11 @166 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
1b963c81 Jiri Kosina 2013-01-11 167 _down_write_nest_lock(sem, &(nest_lock)->dep_map); \
1b963c81 Jiri Kosina 2013-01-11 168 } while (0);
1b963c81 Jiri Kosina 2013-01-11 169

:::::: The code at line 166 was first introduced by commit
:::::: 1b963c81b14509e330e0fe3218b645ece2738dc5 lockdep, rwsem: provide down_write_nest_lock()

:::::: TO: Jiri Kosina <jkosina@suse.cz>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2017-05-25 00:13    [W:0.161 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site