Skip to contentSkip to conversation

rcu-tasks: Fix build error

PATCH In review Srinivasarao Pathipati 2 participants 2 messages Feb 21, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 rcu-tasks: Fix build error

From: Srinivasarao Pathipati <[email protected]>

Making show_rcu_tasks_rude_gp_kthread() function as 'inline' to fix below compilation error.
This is applicable to only 5.10 kernels as code got modified in latest kernels.

In file included from kernel/rcu/update.c:579:0:
kernel/rcu/tasks.h:710:13: error: ‘show_rcu_tasks_rude_gp_kthread’ defined but not used [-Werror=unused-function]
static void show_rcu_tasks_rude_gp_kthread(void) {}

Fixes 8344496e8b49 ("rcu-tasks: Conditionally compile show_rcu_tasks_gp_kthreads()")
---
 kernel/rcu/tasks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/tasks.h +1 -1
index 8b51e6a..53ddb4e 100644
@@ -707,7 +707,7 @@ static void show_rcu_tasks_rude_gp_kthread(void)
 #endif /* #ifndef CONFIG_TINY_RCU */
 
 #else /* #ifdef CONFIG_TASKS_RUDE_RCU */
-static void show_rcu_tasks_rude_gp_kthread(void) {}
+static inline void show_rcu_tasks_rude_gp_kthread(void) {}
 #endif /* #else #ifdef CONFIG_TASKS_RUDE_RCU */
 
 ////////////////////////////////////////////////////////////////////////
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 11 lines · Srinivasarao Pathipati

From: Srinivasarao Pathipati <[email protected]>

Making show_rcu_tasks_rude_gp_kthread() function as 'inline' to fix below compilation error.
This is applicable to only 5.10 kernels as code got modified in latest kernels.

In file included from kernel/rcu/update.c:579:0:
kernel/rcu/tasks.h:710:13: error: ‘show_rcu_tasks_rude_gp_kthread’ defined but not used [-Werror=unused-function]
static void show_rcu_tasks_rude_gp_kthread(void) {}

Quoted 5 lines
Fixes 8344496e8b49 ("rcu-tasks: Conditionally compile show_rcu_tasks_gp_kthreads()")
---
 kernel/rcu/tasks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

You didn't answer my "why is this an issue now" question.

Also, please document exactly what the modification was in Linus's tree that prevents us from backportin gthat change here.

thanks,

greg k-h