Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tipc: Remove unused function declarations

Commit d50ccc2d3909 ("tipc: add 128-bit node identifier") declared but never
implemented tipc_node_id2hash().
Also commit 5c216e1d28c8 ("tipc: Allow run-time alteration of default link settings")
never implemented tipc_media_set_priority() and tipc_media_set_window(),
commit cad2929dc432 ("tipc: update a binding service via broadcast") only declared
tipc_named_bcast().

Since commit be07f056396d ("tipc: simplify the finalize work queue")
tipc_sched_net_finalize() is removed and declaration is unused.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230802034659.39840-1-yuehaibing@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Yue Haibing and committed by
Paolo Abeni
c956910d 571e9c49

-5
-1
net/tipc/addr.h
··· 131 131 void tipc_set_node_id(struct net *net, u8 *id); 132 132 void tipc_set_node_addr(struct net *net, u32 addr); 133 133 char *tipc_nodeid2string(char *str, u8 *id); 134 - u32 tipc_node_id2hash(u8 *id128); 135 134 136 135 #endif
-2
net/tipc/bearer.h
··· 214 214 int tipc_nl_media_set(struct sk_buff *skb, struct genl_info *info); 215 215 int __tipc_nl_media_set(struct sk_buff *skb, struct genl_info *info); 216 216 217 - int tipc_media_set_priority(const char *name, u32 new_value); 218 - int tipc_media_set_window(const char *name, u32 new_value); 219 217 int tipc_media_addr_printf(char *buf, int len, struct tipc_media_addr *a); 220 218 int tipc_enable_l2_media(struct net *net, struct tipc_bearer *b, 221 219 struct nlattr *attrs[]);
-1
net/tipc/name_distr.h
··· 67 67 __be32 key; 68 68 }; 69 69 70 - void tipc_named_bcast(struct net *net, struct sk_buff *skb); 71 70 struct sk_buff *tipc_named_publish(struct net *net, struct publication *publ); 72 71 struct sk_buff *tipc_named_withdraw(struct net *net, struct publication *publ); 73 72 void tipc_named_node_up(struct net *net, u32 dnode, u16 capabilities);
-1
net/tipc/net.h
··· 43 43 44 44 int tipc_net_init(struct net *net, u8 *node_id, u32 addr); 45 45 void tipc_net_finalize_work(struct work_struct *work); 46 - void tipc_sched_net_finalize(struct net *net, u32 addr); 47 46 void tipc_net_stop(struct net *net); 48 47 int tipc_nl_net_dump(struct sk_buff *skb, struct netlink_callback *cb); 49 48 int tipc_nl_net_set(struct sk_buff *skb, struct genl_info *info);