Skip to content

Commit

Permalink
net/sched: act_ife: Unexport ife_tlv_meta_encode
Browse files Browse the repository at this point in the history
As the function ife_tlv_meta_encode is not used by any other module,
unexport it and make it static for the act_ife module.

Signed-off-by: Yotam Gigi <[email protected]>
Signed-off-by: Jamal Hadi Salim <[email protected]>
Signed-off-by: Roman Mashak <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
yotamgi authored and davem330 committed Feb 3, 2017
1 parent 3541f9e commit 1d5e7c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions include/net/tc_act/tc_ife.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ struct tcf_meta_ops {

int ife_get_meta_u32(struct sk_buff *skb, struct tcf_meta_info *mi);
int ife_get_meta_u16(struct sk_buff *skb, struct tcf_meta_info *mi);
int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen,
const void *dval);
int ife_alloc_meta_u32(struct tcf_meta_info *mi, void *metaval, gfp_t gfp);
int ife_alloc_meta_u16(struct tcf_meta_info *mi, void *metaval, gfp_t gfp);
int ife_check_meta_u32(u32 metaval, struct tcf_meta_info *mi);
Expand Down
4 changes: 2 additions & 2 deletions net/sched/act_ife.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ static const struct nla_policy ife_policy[TCA_IFE_MAX + 1] = {

/* Caller takes care of presenting data in network order
*/
int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, const void *dval)
static int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen,
const void *dval)
{
u32 *tlv = (u32 *)(skbdata);
u16 totlen = nla_total_size(dlen); /*alignment + hdr */
Expand All @@ -61,7 +62,6 @@ int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, const void *dval)

return totlen;
}
EXPORT_SYMBOL_GPL(ife_tlv_meta_encode);

int ife_encode_meta_u16(u16 metaval, void *skbdata, struct tcf_meta_info *mi)
{
Expand Down

0 comments on commit 1d5e7c8

Please sign in to comment.