netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sched: delete some api is not used
@ 2023-02-28  3:12 lingfuyi
  2023-02-28  7:34 ` kernel test robot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: lingfuyi @ 2023-02-28  3:12 UTC (permalink / raw)
  To: jhs, davem; +Cc: netdev, linux-kernel, lingfuyi, k2ci

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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-28 12:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-28  3:12 [PATCH] sched: delete some api is not used lingfuyi
2023-02-28  7:34 ` kernel test robot
2023-02-28  7:34 ` kernel test robot
2023-02-28 12:04 ` Paolo Abeni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).