aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-11-08 14:07:28 -0500
committerDavid S. Miller <davem@davemloft.net>2016-11-09 21:16:05 -0500
commit149d6ad83663b4820ca09c9d40b1eea7f5c22c2b (patch)
treea1d1a0ff76852329888ddb1d5aafb0cf38e985c8 /net/core/dev.c
parentef8d759b5251ee9d6784fe53d90220bd91ee477f (diff)
net: napi_hash_add() is no longer exported
There are no more users except from net/core/dev.c napi_hash_add() can now be static. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index c9837fa08dfc..7385c1a152fd 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -5017,7 +5017,7 @@ EXPORT_SYMBOL(sk_busy_loop);
5017 5017
5018#endif /* CONFIG_NET_RX_BUSY_POLL */ 5018#endif /* CONFIG_NET_RX_BUSY_POLL */
5019 5019
5020void napi_hash_add(struct napi_struct *napi) 5020static void napi_hash_add(struct napi_struct *napi)
5021{ 5021{
5022 if (test_bit(NAPI_STATE_NO_BUSY_POLL, &napi->state) || 5022 if (test_bit(NAPI_STATE_NO_BUSY_POLL, &napi->state) ||
5023 test_and_set_bit(NAPI_STATE_HASHED, &napi->state)) 5023 test_and_set_bit(NAPI_STATE_HASHED, &napi->state))
@@ -5037,7 +5037,6 @@ void napi_hash_add(struct napi_struct *napi)
5037 5037
5038 spin_unlock(&napi_hash_lock); 5038 spin_unlock(&napi_hash_lock);
5039} 5039}
5040EXPORT_SYMBOL_GPL(napi_hash_add);
5041 5040
5042/* Warning : caller is responsible to make sure rcu grace period 5041/* Warning : caller is responsible to make sure rcu grace period
5043 * is respected before freeing memory containing @napi 5042 * is respected before freeing memory containing @napi