Skip to content

Commit 3853a72

Browse files
arndbFrederic Weisbecker
authored andcommitted
rcu: Include torture_sched_setaffinity() declaration
The prototype for torture_sched_setaffinity() will be moved to a different header, which will need 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) Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
1 parent a741dea commit 3853a72

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kernel/rcu/update.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <linux/interrupt.h>
2626
#include <linux/sched/signal.h>
2727
#include <linux/sched/debug.h>
28+
#include <linux/torture.h>
2829
#include <linux/atomic.h>
2930
#include <linux/bitops.h>
3031
#include <linux/percpu.h>

0 commit comments

Comments
 (0)