From 6346fb18b3a113ca8fa307612e75f3b14808f126 Mon Sep 17 00:00:00 2001 From: Wang Liang Date: Fri, 7 Nov 2025 16:24:51 +0800 Subject: [PATCH] net/oenetcls: work around l0 cache hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/ID5HIM -------------------------------- L0 cache is not support by some platforms, work around it. Fixes: d60758b0ffcd ("net/oenetcls: introduce oenetcls for network optimization") Signed-off-by: Wang Liang --- net/oenetcls/oenetcls_l0.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/oenetcls/oenetcls_l0.c b/net/oenetcls/oenetcls_l0.c index b820a1cf96bd..2a12734e53b3 100644 --- a/net/oenetcls/oenetcls_l0.c +++ b/net/oenetcls/oenetcls_l0.c @@ -147,6 +147,9 @@ void init_oecls_l0_cache(void) int ret = 0; struct l0_vma_data *sbkpages; + /* L0 cache is not support by some platforms, work around this */ + return; + oecls_l0_cache = kzalloc(sizeof(*oecls_l0_cache), GFP_KERNEL); if (!oecls_l0_cache) { oecls_error("kzalloc oecls_l0_cache fail!\n"); -- Gitee