From a5f72ec095735da708dc01c9913e1eddffe651b0 Mon Sep 17 00:00:00 2001
From: Sebastian Sumpf <sebastian.sumpf@genode-labs.com>
Date: Thu, 1 Feb 2024 10:05:21 +0100
Subject: [PATCH] lxip: adjust to arm_v7 UP and RCU tiny

Adjust source.list and dummies

issue #5104
---
 repos/dde_linux/src/lib/lxip/dummies.c               | 2 ++
 repos/dde_linux/src/lib/lxip/spec/arm_v7/source.list | 3 ---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/repos/dde_linux/src/lib/lxip/dummies.c b/repos/dde_linux/src/lib/lxip/dummies.c
index 46e7cde4fe..b03c5e8e98 100644
--- a/repos/dde_linux/src/lib/lxip/dummies.c
+++ b/repos/dde_linux/src/lib/lxip/dummies.c
@@ -126,12 +126,14 @@ void devres_add(struct device *dev, void *res)
 }
 
 
+#ifdef CONFIG_TREE_RCU
 #include <linux/rcutree.h>
 
 void synchronize_rcu_expedited(void)
 {
 	lx_emul_trace(__func__);
 }
+#endif
 
 
 #include <linux/rcupdate.h>
diff --git a/repos/dde_linux/src/lib/lxip/spec/arm_v7/source.list b/repos/dde_linux/src/lib/lxip/spec/arm_v7/source.list
index 0fd90d9723..ac49510aca 100644
--- a/repos/dde_linux/src/lib/lxip/spec/arm_v7/source.list
+++ b/repos/dde_linux/src/lib/lxip/spec/arm_v7/source.list
@@ -25,8 +25,6 @@ kernel/time/clocksource.c
 kernel/time/hrtimer.c
 kernel/time/jiffies.c
 kernel/time/ntp.c
-kernel/time/tick-broadcast-hrtimer.c
-kernel/time/tick-broadcast.c
 kernel/time/tick-common.c
 kernel/time/tick-oneshot.c
 kernel/time/tick-sched.c
@@ -51,7 +49,6 @@ lib/kstrtox.c
 lib/math/div64.c
 lib/nlattr.c
 lib/once.c
-lib/percpu_counter.c
 lib/radix-tree.c
 lib/rbtree.c
 lib/rhashtable.c