Messages in this thread Patch in this message | | | From | lingfuyi <> | Subject | [PATCH] sched: delete some api is not used | Date | Tue, 28 Feb 2023 11:12:41 +0800 |
| |
From: lingfuyi <lingfuyi@kylinos.cn>
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@kylinos.cn> Signed-off-by: lingfuyi <lingfuyi@kylinos.cn> --- 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
| |