From a51e1960de4130e80b2d31769107434045ec78e7 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 2 Nov 2017 16:07:26 +0100 Subject: global: revert checkpatch.pl changes These changes were suggested by checkpatch.pl, but actually cause big problems depending on the options. Revert. --- src/peer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/peer.c') diff --git a/src/peer.c b/src/peer.c index 1580262..81b71d4 100644 --- a/src/peer.c +++ b/src/peer.c @@ -58,7 +58,7 @@ struct wireguard_peer *peer_create(struct wireguard_device *wg, const u8 public_ struct wireguard_peer *peer_get(struct wireguard_peer *peer) { - RCU_LOCKDEP_WARN(!rcu_read_lock_bh_held(), "Calling " __func__ " without holding the RCU read lock"); + RCU_LOCKDEP_WARN(!rcu_read_lock_bh_held(), "Taking peer reference without holding the RCU read lock"); if (unlikely(!peer || !kref_get_unless_zero(&peer->refcount))) return NULL; return peer; -- cgit v1.2.3-59-g8ed1b