LinuxKPI: add rcu_dereference_check()

Add a define for rcu_dereference_check() to rcu_dereference_protected()
which ignores the check argument.  Our lockdep compat implementation
for use cases found in iwlwifi would return 1 anyway.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Reviewed by:	hselasky
Differential Revision: https://reviews.freebsd.org/D30436
This commit is contained in:
Bjoern A. Zeeb 2021-05-24 18:40:42 +00:00
parent abcac97f82
commit fa58da02f7

View File

@ -87,6 +87,9 @@
#define rcu_dereference(p) \
rcu_dereference_protected(p, 0)
#define rcu_dereference_check(p, c) \
rcu_dereference_protected(p, c)
#define rcu_dereference_raw(p) \
((__typeof(*p) *)READ_ONCE(p))