Skip to content

Commit

Permalink
allowedips: add missing __rcu annotation to satisfy sparse
Browse files Browse the repository at this point in the history
A __rcu annotation got lost during refactoring, which caused sparse to
become enraged.

Signed-off-by: Jason A. Donenfeld <[email protected]>
  • Loading branch information
zx2c4 committed Jun 4, 2021
1 parent 383461d commit fd7a462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/allowedips.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fd7a462

Please sign in to comment.