diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-06-04 17:24:57 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-06-04 17:49:34 +0200 |
commit | fd7a4621a598c63708285a8c36c5b0835173f896 (patch) | |
tree | d89d0032cbeae32eb425fd17d77bb543f952889d /src | |
parent | 383461dba89e31631a972dd4d090bc4cc650088f (diff) |
allowedips: add missing __rcu annotation to satisfy sparse
A __rcu annotation got lost during refactoring, which caused sparse to
become enraged.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/allowedips.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/allowedips.c b/src/allowedips.c index b7197e8..9a4c8ff 100644 --- a/src/allowedips.c +++ b/src/allowedips.c @@ -163,7 +163,7 @@ static bool node_placement(struct allowedips_node __rcu *trie, const u8 *key, return exact; } -static inline void connect_node(struct allowedips_node **parent, u8 bit, struct allowedips_node *node) +static inline void connect_node(struct allowedips_node __rcu **parent, u8 bit, struct allowedips_node *node) { node->parent_bit_packed = (unsigned long)parent | bit; rcu_assign_pointer(*parent, node); |