[PATCH] sched: delete some api is not used

From: lingfuyi
Date: Mon Feb 27 2023 - 23:45:44 EST


From: lingfuyi <lingfuyi@xxxxxxxxxx>

fix compile errors like this:
net/sched/cls_api.c:141:13: error: ‘tcf_exts_miss_cookie_base_destroy’
defined but not used [-Werror=unused-function]

Reported-by: k2ci <kernel-bot@xxxxxxxxxx>
Signed-off-by: lingfuyi <lingfuyi@xxxxxxxxxx>
---
net/sched/cls_api.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 3569e2c3660c..eca9e60440df 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -138,9 +138,6 @@ tcf_exts_miss_cookie_base_alloc(struct tcf_exts *exts, struct tcf_proto *tp,
return 0;
}

-static void tcf_exts_miss_cookie_base_destroy(struct tcf_exts *exts)
-{
-}
#endif /* IS_ENABLED(CONFIG_NET_TC_SKB_EXT) */

static u64 tcf_exts_miss_cookie_get(u32 miss_cookie_base, int act_index)
--
2.25.1