diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-14 23:05:36 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-17 22:33:16 -0600 |
commit | eac07cd92c6ed9b0e4d03e071a4916d43fb2997a (patch) | |
tree | b134a44d69c979085dd7fb7170d87b8f4a603919 /src/ratelimiter.c | |
parent | compat: nf_nat_core.h was removed upstream (diff) | |
download | wireguard-monolithic-historical-eac07cd92c6ed9b0e4d03e071a4916d43fb2997a.tar.xz wireguard-monolithic-historical-eac07cd92c6ed9b0e4d03e071a4916d43fb2997a.zip |
global: the _bh variety of rcu helpers have been unified
Diffstat (limited to 'src/ratelimiter.c')
-rw-r--r-- | src/ratelimiter.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ratelimiter.c b/src/ratelimiter.c index b3b1d25..fd09190 100644 --- a/src/ratelimiter.c +++ b/src/ratelimiter.c @@ -3,6 +3,18 @@ * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +#ifdef COMPAT_CANNOT_DEPRECIATE_BH_RCU +/* We normally alias all non-_bh functions to the _bh ones in the compat layer, + * but that's not appropriate here, where we actually do want non-_bh ones. + */ +#undef synchronize_rcu +#define synchronize_rcu old_synchronize_rcu +#undef call_rcu +#define call_rcu old_call_rcu +#undef rcu_barrier +#define rcu_barrier old_rcu_barrier +#endif + #include "ratelimiter.h" #include <linux/siphash.h> #include <linux/mm.h> |