Skip to content

Commit 1d5e7c8

Browse files
yotamgidavem330
authored andcommitted
net/sched: act_ife: Unexport ife_tlv_meta_encode
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]>
1 parent 3541f9e commit 1d5e7c8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/net/tc_act/tc_ife.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ struct tcf_meta_ops {
4545

4646
int ife_get_meta_u32(struct sk_buff *skb, struct tcf_meta_info *mi);
4747
int ife_get_meta_u16(struct sk_buff *skb, struct tcf_meta_info *mi);
48-
int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen,
49-
const void *dval);
5048
int ife_alloc_meta_u32(struct tcf_meta_info *mi, void *metaval, gfp_t gfp);
5149
int ife_alloc_meta_u16(struct tcf_meta_info *mi, void *metaval, gfp_t gfp);
5250
int ife_check_meta_u32(u32 metaval, struct tcf_meta_info *mi);

net/sched/act_ife.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ static const struct nla_policy ife_policy[TCA_IFE_MAX + 1] = {
4848

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

6263
return totlen;
6364
}
64-
EXPORT_SYMBOL_GPL(ife_tlv_meta_encode);
6565

6666
int ife_encode_meta_u16(u16 metaval, void *skbdata, struct tcf_meta_info *mi)
6767
{

0 commit comments

Comments
 (0)