diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-05-12 18:56:35 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-06-08 21:52:41 -0400 |
commit | 41a2901e7d220875752a8c870e0b53288a578c20 (patch) | |
tree | 7fee0c0fb4e4de059050c0003c370042bb832ffc /include/linux/compiler.h | |
parent | c4a09ff752e164c020bced6513e2008f992a02e6 (diff) |
rcu: Remove SPARSE_RCU_POINTER Kconfig option
The sparse-based checking for non-RCU accesses to RCU-protected pointers
has been around for a very long time, and it is now the only type of
sparse-based checking that is optional. This commit therefore makes
it unconditional.
Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r-- | include/linux/compiler.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index f8110051188f..707242fdbb89 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h | |||
@@ -17,11 +17,7 @@ | |||
17 | # define __release(x) __context__(x,-1) | 17 | # define __release(x) __context__(x,-1) |
18 | # define __cond_lock(x,c) ((c) ? ({ __acquire(x); 1; }) : 0) | 18 | # define __cond_lock(x,c) ((c) ? ({ __acquire(x); 1; }) : 0) |
19 | # define __percpu __attribute__((noderef, address_space(3))) | 19 | # define __percpu __attribute__((noderef, address_space(3))) |
20 | #ifdef CONFIG_SPARSE_RCU_POINTER | ||
21 | # define __rcu __attribute__((noderef, address_space(4))) | 20 | # define __rcu __attribute__((noderef, address_space(4))) |
22 | #else /* CONFIG_SPARSE_RCU_POINTER */ | ||
23 | # define __rcu | ||
24 | #endif /* CONFIG_SPARSE_RCU_POINTER */ | ||
25 | # define __private __attribute__((noderef)) | 21 | # define __private __attribute__((noderef)) |
26 | extern void __chk_user_ptr(const volatile void __user *); | 22 | extern void __chk_user_ptr(const volatile void __user *); |
27 | extern void __chk_io_ptr(const volatile void __iomem *); | 23 | extern void __chk_io_ptr(const volatile void __iomem *); |