net: sched: cls: remove unused op put from tcf_proto_ops
It is never called and implementations are void. So just remove it. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
					parent
					
						
							
								02dc4025a0
							
						
					
				
			
			
				commit
				
					
						57d743a3de
					
				
			
		
					 10 changed files with 0 additions and 49 deletions
				
			
		| 
						 | 
					@ -219,7 +219,6 @@ struct tcf_proto_ops {
 | 
				
			||||||
	void			(*destroy)(struct tcf_proto*);
 | 
						void			(*destroy)(struct tcf_proto*);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	unsigned long		(*get)(struct tcf_proto*, u32 handle);
 | 
						unsigned long		(*get)(struct tcf_proto*, u32 handle);
 | 
				
			||||||
	void			(*put)(struct tcf_proto*, unsigned long);
 | 
					 | 
				
			||||||
	int			(*change)(struct net *net, struct sk_buff *,
 | 
						int			(*change)(struct net *net, struct sk_buff *,
 | 
				
			||||||
					struct tcf_proto*, unsigned long,
 | 
										struct tcf_proto*, unsigned long,
 | 
				
			||||||
					u32 handle, struct nlattr **,
 | 
										u32 handle, struct nlattr **,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,10 +72,6 @@ static unsigned long basic_get(struct tcf_proto *tp, u32 handle)
 | 
				
			||||||
	return l;
 | 
						return l;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void basic_put(struct tcf_proto *tp, unsigned long f)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static int basic_init(struct tcf_proto *tp)
 | 
					static int basic_init(struct tcf_proto *tp)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct basic_head *head;
 | 
						struct basic_head *head;
 | 
				
			||||||
| 
						 | 
					@ -287,7 +283,6 @@ static struct tcf_proto_ops cls_basic_ops __read_mostly = {
 | 
				
			||||||
	.init		=	basic_init,
 | 
						.init		=	basic_init,
 | 
				
			||||||
	.destroy	=	basic_destroy,
 | 
						.destroy	=	basic_destroy,
 | 
				
			||||||
	.get		=	basic_get,
 | 
						.get		=	basic_get,
 | 
				
			||||||
	.put		=	basic_put,
 | 
					 | 
				
			||||||
	.change		=	basic_change,
 | 
						.change		=	basic_change,
 | 
				
			||||||
	.delete		=	basic_delete,
 | 
						.delete		=	basic_delete,
 | 
				
			||||||
	.walk		=	basic_walk,
 | 
						.walk		=	basic_walk,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -151,10 +151,6 @@ static unsigned long cls_bpf_get(struct tcf_proto *tp, u32 handle)
 | 
				
			||||||
	return ret;
 | 
						return ret;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void cls_bpf_put(struct tcf_proto *tp, unsigned long f)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static int cls_bpf_modify_existing(struct net *net, struct tcf_proto *tp,
 | 
					static int cls_bpf_modify_existing(struct net *net, struct tcf_proto *tp,
 | 
				
			||||||
				   struct cls_bpf_prog *prog,
 | 
									   struct cls_bpf_prog *prog,
 | 
				
			||||||
				   unsigned long base, struct nlattr **tb,
 | 
									   unsigned long base, struct nlattr **tb,
 | 
				
			||||||
| 
						 | 
					@ -356,7 +352,6 @@ static struct tcf_proto_ops cls_bpf_ops __read_mostly = {
 | 
				
			||||||
	.init		=	cls_bpf_init,
 | 
						.init		=	cls_bpf_init,
 | 
				
			||||||
	.destroy	=	cls_bpf_destroy,
 | 
						.destroy	=	cls_bpf_destroy,
 | 
				
			||||||
	.get		=	cls_bpf_get,
 | 
						.get		=	cls_bpf_get,
 | 
				
			||||||
	.put		=	cls_bpf_put,
 | 
					 | 
				
			||||||
	.change		=	cls_bpf_change,
 | 
						.change		=	cls_bpf_change,
 | 
				
			||||||
	.delete		=	cls_bpf_delete,
 | 
						.delete		=	cls_bpf_delete,
 | 
				
			||||||
	.walk		=	cls_bpf_walk,
 | 
						.walk		=	cls_bpf_walk,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -67,10 +67,6 @@ static unsigned long cls_cgroup_get(struct tcf_proto *tp, u32 handle)
 | 
				
			||||||
	return 0UL;
 | 
						return 0UL;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void cls_cgroup_put(struct tcf_proto *tp, unsigned long f)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static int cls_cgroup_init(struct tcf_proto *tp)
 | 
					static int cls_cgroup_init(struct tcf_proto *tp)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
| 
						 | 
					@ -213,7 +209,6 @@ static struct tcf_proto_ops cls_cgroup_ops __read_mostly = {
 | 
				
			||||||
	.classify	=	cls_cgroup_classify,
 | 
						.classify	=	cls_cgroup_classify,
 | 
				
			||||||
	.destroy	=	cls_cgroup_destroy,
 | 
						.destroy	=	cls_cgroup_destroy,
 | 
				
			||||||
	.get		=	cls_cgroup_get,
 | 
						.get		=	cls_cgroup_get,
 | 
				
			||||||
	.put		=	cls_cgroup_put,
 | 
					 | 
				
			||||||
	.delete		=	cls_cgroup_delete,
 | 
						.delete		=	cls_cgroup_delete,
 | 
				
			||||||
	.walk		=	cls_cgroup_walk,
 | 
						.walk		=	cls_cgroup_walk,
 | 
				
			||||||
	.dump		=	cls_cgroup_dump,
 | 
						.dump		=	cls_cgroup_dump,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -581,10 +581,6 @@ static unsigned long flow_get(struct tcf_proto *tp, u32 handle)
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void flow_put(struct tcf_proto *tp, unsigned long f)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static int flow_dump(struct net *net, struct tcf_proto *tp, unsigned long fh,
 | 
					static int flow_dump(struct net *net, struct tcf_proto *tp, unsigned long fh,
 | 
				
			||||||
		     struct sk_buff *skb, struct tcmsg *t)
 | 
							     struct sk_buff *skb, struct tcmsg *t)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					@ -671,7 +667,6 @@ static struct tcf_proto_ops cls_flow_ops __read_mostly = {
 | 
				
			||||||
	.change		= flow_change,
 | 
						.change		= flow_change,
 | 
				
			||||||
	.delete		= flow_delete,
 | 
						.delete		= flow_delete,
 | 
				
			||||||
	.get		= flow_get,
 | 
						.get		= flow_get,
 | 
				
			||||||
	.put		= flow_put,
 | 
					 | 
				
			||||||
	.dump		= flow_dump,
 | 
						.dump		= flow_dump,
 | 
				
			||||||
	.walk		= flow_walk,
 | 
						.walk		= flow_walk,
 | 
				
			||||||
	.owner		= THIS_MODULE,
 | 
						.owner		= THIS_MODULE,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -111,10 +111,6 @@ static unsigned long fw_get(struct tcf_proto *tp, u32 handle)
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void fw_put(struct tcf_proto *tp, unsigned long f)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static int fw_init(struct tcf_proto *tp)
 | 
					static int fw_init(struct tcf_proto *tp)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
| 
						 | 
					@ -411,7 +407,6 @@ static struct tcf_proto_ops cls_fw_ops __read_mostly = {
 | 
				
			||||||
	.init		=	fw_init,
 | 
						.init		=	fw_init,
 | 
				
			||||||
	.destroy	=	fw_destroy,
 | 
						.destroy	=	fw_destroy,
 | 
				
			||||||
	.get		=	fw_get,
 | 
						.get		=	fw_get,
 | 
				
			||||||
	.put		=	fw_put,
 | 
					 | 
				
			||||||
	.change		=	fw_change,
 | 
						.change		=	fw_change,
 | 
				
			||||||
	.delete		=	fw_delete,
 | 
						.delete		=	fw_delete,
 | 
				
			||||||
	.walk		=	fw_walk,
 | 
						.walk		=	fw_walk,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -256,10 +256,6 @@ static unsigned long route4_get(struct tcf_proto *tp, u32 handle)
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void route4_put(struct tcf_proto *tp, unsigned long f)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static int route4_init(struct tcf_proto *tp)
 | 
					static int route4_init(struct tcf_proto *tp)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
| 
						 | 
					@ -649,7 +645,6 @@ static struct tcf_proto_ops cls_route4_ops __read_mostly = {
 | 
				
			||||||
	.init		=	route4_init,
 | 
						.init		=	route4_init,
 | 
				
			||||||
	.destroy	=	route4_destroy,
 | 
						.destroy	=	route4_destroy,
 | 
				
			||||||
	.get		=	route4_get,
 | 
						.get		=	route4_get,
 | 
				
			||||||
	.put		=	route4_put,
 | 
					 | 
				
			||||||
	.change		=	route4_change,
 | 
						.change		=	route4_change,
 | 
				
			||||||
	.delete		=	route4_delete,
 | 
						.delete		=	route4_delete,
 | 
				
			||||||
	.walk		=	route4_walk,
 | 
						.walk		=	route4_walk,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -271,10 +271,6 @@ static unsigned long rsvp_get(struct tcf_proto *tp, u32 handle)
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void rsvp_put(struct tcf_proto *tp, unsigned long f)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static int rsvp_init(struct tcf_proto *tp)
 | 
					static int rsvp_init(struct tcf_proto *tp)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct rsvp_head *data;
 | 
						struct rsvp_head *data;
 | 
				
			||||||
| 
						 | 
					@ -708,7 +704,6 @@ static struct tcf_proto_ops RSVP_OPS __read_mostly = {
 | 
				
			||||||
	.init		=	rsvp_init,
 | 
						.init		=	rsvp_init,
 | 
				
			||||||
	.destroy	=	rsvp_destroy,
 | 
						.destroy	=	rsvp_destroy,
 | 
				
			||||||
	.get		=	rsvp_get,
 | 
						.get		=	rsvp_get,
 | 
				
			||||||
	.put		=	rsvp_put,
 | 
					 | 
				
			||||||
	.change		=	rsvp_change,
 | 
						.change		=	rsvp_change,
 | 
				
			||||||
	.delete		=	rsvp_delete,
 | 
						.delete		=	rsvp_delete,
 | 
				
			||||||
	.walk		=	rsvp_walk,
 | 
						.walk		=	rsvp_walk,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -116,13 +116,6 @@ static unsigned long tcindex_get(struct tcf_proto *tp, u32 handle)
 | 
				
			||||||
	return r && tcindex_filter_is_set(r) ? (unsigned long) r : 0UL;
 | 
						return r && tcindex_filter_is_set(r) ? (unsigned long) r : 0UL;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
static void tcindex_put(struct tcf_proto *tp, unsigned long f)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	pr_debug("tcindex_put(tp %p,f 0x%lx)\n", tp, f);
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static int tcindex_init(struct tcf_proto *tp)
 | 
					static int tcindex_init(struct tcf_proto *tp)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct tcindex_data *p;
 | 
						struct tcindex_data *p;
 | 
				
			||||||
| 
						 | 
					@ -560,7 +553,6 @@ static struct tcf_proto_ops cls_tcindex_ops __read_mostly = {
 | 
				
			||||||
	.init		=	tcindex_init,
 | 
						.init		=	tcindex_init,
 | 
				
			||||||
	.destroy	=	tcindex_destroy,
 | 
						.destroy	=	tcindex_destroy,
 | 
				
			||||||
	.get		=	tcindex_get,
 | 
						.get		=	tcindex_get,
 | 
				
			||||||
	.put		=	tcindex_put,
 | 
					 | 
				
			||||||
	.change		=	tcindex_change,
 | 
						.change		=	tcindex_change,
 | 
				
			||||||
	.delete		=	tcindex_delete,
 | 
						.delete		=	tcindex_delete,
 | 
				
			||||||
	.walk		=	tcindex_walk,
 | 
						.walk		=	tcindex_walk,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -299,10 +299,6 @@ static unsigned long u32_get(struct tcf_proto *tp, u32 handle)
 | 
				
			||||||
	return (unsigned long)u32_lookup_key(ht, handle);
 | 
						return (unsigned long)u32_lookup_key(ht, handle);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void u32_put(struct tcf_proto *tp, unsigned long f)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static u32 gen_new_htid(struct tc_u_common *tp_c)
 | 
					static u32 gen_new_htid(struct tc_u_common *tp_c)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	int i = 0x800;
 | 
						int i = 0x800;
 | 
				
			||||||
| 
						 | 
					@ -1021,7 +1017,6 @@ static struct tcf_proto_ops cls_u32_ops __read_mostly = {
 | 
				
			||||||
	.init		=	u32_init,
 | 
						.init		=	u32_init,
 | 
				
			||||||
	.destroy	=	u32_destroy,
 | 
						.destroy	=	u32_destroy,
 | 
				
			||||||
	.get		=	u32_get,
 | 
						.get		=	u32_get,
 | 
				
			||||||
	.put		=	u32_put,
 | 
					 | 
				
			||||||
	.change		=	u32_change,
 | 
						.change		=	u32_change,
 | 
				
			||||||
	.delete		=	u32_delete,
 | 
						.delete		=	u32_delete,
 | 
				
			||||||
	.walk		=	u32_walk,
 | 
						.walk		=	u32_walk,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue