rcu: include torture_sched_setaffinity() declaration
PATCH 1/1 rcu: include torture_sched_setaffinity() declaration
From: Arnd Bergmann <[email protected]>
The prototype for torture_sched_setaffinity() moved to a different header, which needs to be included from update.c to avoid this W=1 warning:
kernel/rcu/update.c:529:6: error: no previous prototype for 'torture_sched_setaffinity' [-Werror=missing-prototypes]
529 | long torture_sched_setaffinity(pid_t pid, const struct cpumask *in_mask)
--- kernel/rcu/update.c | 1 + 1 file changed, 1 insertion(+)
kernel/rcu/update.c +1 -0
@@ -25,6 +25,7 @@#include <linux/interrupt.h> #include <linux/sched/signal.h> #include <linux/sched/debug.h> +#include <linux/torture.h> #include <linux/atomic.h> #include <linux/bitops.h> #include <linux/percpu.h>
Signature · 1 line
2.39.2
Quoted 7 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The prototype for
torture_sched_setaffinity()moved to a different header, which needs to be included fromupdate.cto avoid this W=1 warning:
Quoted 5 lines
kernel/rcu/update.c:529:6: error: no previous prototype for 'torture_sched_setaffinity' [-Werror=missing-prototypes]
529 | longtorture_sched_setaffinity(pid_t pid, const struct cpumask *in_mask)Fixes 521ec59e5453e ("torture: Move rcutorture_sched_setaffinity() out of rcutorture")Signed-off-by Arnd Bergmann <[email protected]>
thanks,
- Joel
Quoted 19 lines
--- kernel/rcu/update.c | 1 + 1 file changed, 1 insertion(+)kernel/rcu/update.c +1
-1@@ -25,6 +25,7 @@#include <linux/interrupt.h> #include <linux/sched/signal.h> #include <linux/sched/debug.h> +#include <linux/torture.h> #include <linux/atomic.h> #include <linux/bitops.h> #include <linux/percpu.h> --2.39.2
Quoted 8 lines · Joel Fernandes
Quoted 7 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The prototype for
torture_sched_setaffinity()moved to a different header, which needs to be included fromupdate.cto avoid this W=1 warning:
Quoted 7 lines
Quoted 5 lines
kernel/rcu/update.c:529:6: error: no previous prototype for 'torture_sched_setaffinity' [-Werror=missing-prototypes]
529 | longtorture_sched_setaffinity(pid_t pid, const struct cpumask *in_mask)Fixes 521ec59e5453e ("torture: Move rcutorture_sched_setaffinity() out of rcutorture")Signed-off-by Arnd Bergmann <[email protected]>Reviewed-by Joel Fernandes (Google) <[email protected]>
Queued (likely for the v6.7 merge window), thank you both!
Thanx, Paul
Quoted 24 lines
thanks,
- Joel
Quoted 19 lines
--- kernel/rcu/update.c | 1 + 1 file changed, 1 insertion(+)kernel/rcu/update.c +1
-1@@ -25,6 +25,7 @@#include <linux/interrupt.h> #include <linux/sched/signal.h> #include <linux/sched/debug.h> +#include <linux/torture.h> #include <linux/atomic.h> #include <linux/bitops.h> #include <linux/percpu.h> --2.39.2