public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V1] rcu-tasks: Fix build error
@ 2023-02-20 18:13 Srinivasarao Pathipati
  2023-02-20 18:54 ` Greg KH
  0 siblings, 1 reply; 8+ messages in thread
From: Srinivasarao Pathipati @ 2023-02-20 18:13 UTC (permalink / raw)
  To: stable, gregkh; +Cc: Srinivasarao Pathipati

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) {}

Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
---
 kernel/rcu/tasks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/rcu/tasks.h b/kernel/rcu/tasks.h
index 8b51e6a..53ddb4e 100644
--- a/kernel/rcu/tasks.h
+++ b/kernel/rcu/tasks.h
@@ -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 */
 
 ////////////////////////////////////////////////////////////////////////
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH V1] rcu-tasks: Fix build error
@ 2023-02-21 12:03 Srinivasarao Pathipati
  2023-02-21 13:44 ` Greg KH
  0 siblings, 1 reply; 8+ messages in thread
From: Srinivasarao Pathipati @ 2023-02-21 12:03 UTC (permalink / raw)
  To: stable, gregkh; +Cc: Srinivasarao Pathipati

From: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>

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()")
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
---
v1->v2:
- Added Fixes tag
 kernel/rcu/tasks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/rcu/tasks.h b/kernel/rcu/tasks.h
index 8b51e6a..53ddb4e 100644
--- a/kernel/rcu/tasks.h
+++ b/kernel/rcu/tasks.h
@@ -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 */
 
 ////////////////////////////////////////////////////////////////////////
-- 
2.7.4


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

end of thread, other threads:[~2023-02-21 13:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-20 18:13 [PATCH V1] rcu-tasks: Fix build error Srinivasarao Pathipati
2023-02-20 18:54 ` Greg KH
2023-02-21  9:27   ` Srinivasarao Pathipati
2023-02-21 10:37     ` Greg KH
2023-02-21 11:19       ` Srinivasarao Pathipati
2023-02-21 13:45         ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2023-02-21 12:03 Srinivasarao Pathipati
2023-02-21 13:44 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox