The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=fa58da02f708a22200a89032b8eaf35e1c8ef4a6
commit fa58da02f708a22200a89032b8eaf35e1c8ef4a6 Author: Bjoern A. Zeeb <b...@freebsd.org> AuthorDate: 2021-05-24 18:40:42 +0000 Commit: Bjoern A. Zeeb <b...@freebsd.org> CommitDate: 2021-05-25 18:01:46 +0000 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 --- sys/compat/linuxkpi/common/include/linux/rcupdate.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/rcupdate.h b/sys/compat/linuxkpi/common/include/linux/rcupdate.h index ea97fecee53b..bd8335216d1d 100644 --- a/sys/compat/linuxkpi/common/include/linux/rcupdate.h +++ b/sys/compat/linuxkpi/common/include/linux/rcupdate.h @@ -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)) _______________________________________________ dev-commits-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all To unsubscribe, send any mail to "dev-commits-src-all-unsubscr...@freebsd.org"