Skip to contentSkip to conversation

lib/vdso: Fix build failure around CONFIG_GENERIC_VDSO_CLOCKSOURCE

PATCH Applied Florian Bezdeka 2 participants 2 messages May 26 Generic VDSO library

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/vdso: Fix build failure around CONFIG_GENERIC_VDSO_CLOCKSOURCE

During the forward porting to 6.18 the signature of update_generic_mmio() changed and introduced one undeclared variable.

At the same time the name of the kconfig variable got invalid.

---
 kernel/time/vsyscall.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/time/vsyscall.c +2 -1
index 13f6c9d91045..5fa096452dba 100644
@@ -76,7 +76,8 @@ static inline void update_vdso_time_data(struct vdso_time_data *vdata, struct ti
 
 static void update_generic_mmio(struct vdso_time_data *vdata, struct clocksource *cs)
 {
-#ifdef CONFIG_GENERIC_CLOCKSOURCE_VDSO
+#ifdef CONFIG_GENERIC_VDSO_CLOCKSOURCE
+	struct vdso_clock *vc = vdata->clock_data;
 	u16 seq;
 
 	if (cs->vdso_type == (vc->cs_type_seq >> 16))
Signature · 1 line
2.54.0
#1 lore raw
Quoted 15 lines · Florian Bezdeka

During the forward porting to 6.18 the signature of update_generic_mmio() changed and introduced one undeclared variable.

At the same time the name of the kconfig variable got invalid.

---
 kernel/time/vsyscall.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/time/vsyscall.c +0 -0
index 13f6c9d91045..5fa096452dba 100644

kernel/time/vsyscall.c static inline void update_vdso_time_data(struct vdso_time_data *vdata, struct ti · line 83

Quoted 9 lines
kernel/time/vsyscall.c +2 -1
@@ -76,7 +76,8 @@ static inline void update_vdso_time_data(struct vdso_time_data *vdata, struct ti
 
 static void update_generic_mmio(struct vdso_time_data *vdata, struct clocksource *cs)
 {
-#ifdef CONFIG_GENERIC_CLOCKSOURCE_VDSO
+#ifdef CONFIG_GENERIC_VDSO_CLOCKSOURCE
+	struct vdso_clock *vc = vdata->clock_data;
 	u16 seq;
 
 	if (cs->vdso_type == (vc->cs_type_seq >> 16))

Merged, thanks.

Signature · 1 line
Philippe.