lkml.org 
[lkml]   [2023]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] sched: delete some api is not used
Date
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
\
 
 \ /
  Last update: 2023-03-27 00:38    [W:0.048 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site