Skip to content

Commit 4f311af

Browse files
Peter Zijlstrasuryasaimadhu
authored andcommitted
sched/core: Fix CONFIG_GCC_PLUGIN_RANDSTRUCT build fail
As a temporary build fix, the proper cleanup needs more work. Reported-by: Guenter Roeck <[email protected]> Reported-by: Eric Biggers <[email protected]> Suggested-by: Eric Biggers <[email protected]> Suggested-by: Kees Cook <[email protected]> Fixes: a148866 ("sched: Replace rq::wake_list") Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent 4877846 commit 4f311af

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/linux/sched.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,10 @@ struct task_struct {
654654
unsigned int ptrace;
655655

656656
#ifdef CONFIG_SMP
657-
struct llist_node wake_entry;
658-
unsigned int wake_entry_type;
657+
struct {
658+
struct llist_node wake_entry;
659+
unsigned int wake_entry_type;
660+
};
659661
int on_cpu;
660662
#ifdef CONFIG_THREAD_INFO_IN_TASK
661663
/* Current CPU: */

0 commit comments

Comments
 (0)