Skip to contentSkip to conversation

misplaced EXPORT_SYMBOL_GPL(ping_hash) in net/ipv4/ping.c

PATCH Superseded Vladis Dronov 2 participants 2 messages May 5, 2017

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misplaced EXPORT_SYMBOL_GPL(ping_hash) in net/ipv4/ping.c

Move misplaced EXPORT_SYMBOL_GPL(ping_hash) to a proper place.

---

Actually, this is so small and unimportant (it just hurts my perfectionism), so does not worth a separate patch. Please, feel free to make it a part of some patch of yours.

 net/ipv4/ping.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/ping.c +1 -1
index ccfbce1..19f0b7b 100644
@@ -71,7 +71,6 @@ static inline u32 ping_hashfn(const struct net *net, u32 num, u32 mask)
 	pr_debug("hash(%u) = %u\n", num, res);
 	return res;
 }
-EXPORT_SYMBOL_GPL(ping_hash);
 
 static inline struct hlist_nulls_head *ping_hashslot(struct ping_table *table,
 					     struct net *net, unsigned int num)
@@ -152,6 +151,7 @@ int ping_hash(struct sock *sk)
 
 	return 0;
 }
+EXPORT_SYMBOL_GPL(ping_hash);
 
 void ping_unhash(struct sock *sk)
 {
Signature · 1 line
2.9.3
maintainer
#1 lore raw

From: Vladis Dronov <[email protected]>
Date: Fri, 5 May 2017 18:17:16 +0200

Quoted 3 lines

Move misplaced EXPORT_SYMBOL_GPL(ping_hash) to a proper place.

Please use a proper subject line with an appropriate subsystem prefix.

Also you must indicate the intended target tree (net or net-next) in the [] brackets. For example:

[PATCH net] ipv4: Fix misplaced EXPORT_SYMBOL_GPL ...