sched: Remove redundant #ifdef
PATCH 1/1 sched: Remove redundant #ifdef
From: Nikolay Borisov <[email protected]>
2 Adjacent members in task_struct were guarded by the same define, so no need to have the define twice
Signed-off-by Nikolay Borisov <[email protected]>
--- include/linux/sched.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
include/linux/sched.h +0 -2
@@ -1334,8 +1334,6 @@ struct task_struct {int rcu_read_lock_nesting;union rcu_special rcu_read_unlock_special;struct list_head rcu_node_entry; -#endif /* #ifdef CONFIG_PREEMPT_RCU */ -#ifdef CONFIG_PREEMPT_RCU struct rcu_node *rcu_blocked_node;#endif /* #ifdef CONFIG_PREEMPT_RCU */ #ifdef CONFIG_TASKS_RCU
Signature · 1 line
1.7.1
tip-bot for Nikolay Borisov
merge botsched: Remove redundant #ifdef
Commit-ID: 8c8a457a60050d5922676f81913d87e4af6fd97b Gitweb: http://git.kernel.org/tip/8c8a457a60050d5922676f81913d87e4af6fd97b Author: Nikolay Borisov <[email protected]> AuthorDate: Thu, 14 May 2015 14:31:01 +0300 Committer: Ingo Molnar <[email protected]> CommitDate: Thu, 14 May 2015 20:04:43 +0200
sched: Remove redundant #ifdef
Two adjacent members in task_struct were guarded by the same #define, so we can merge the two blocks.
Signed-off-by Nikolay Borisov <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc H. Peter Anvin <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- include/linux/sched.h | 2 -- 1 file changed, 2 deletions(-)
include/linux/sched.h +0 -2
@@ -1398,8 +1398,6 @@ struct task_struct {int rcu_read_lock_nesting;union rcu_special rcu_read_unlock_special;struct list_head rcu_node_entry; -#endif /* #ifdef CONFIG_PREEMPT_RCU */ -#ifdef CONFIG_PREEMPT_RCU struct rcu_node *rcu_blocked_node;#endif /* #ifdef CONFIG_PREEMPT_RCU */ #ifdef CONFIG_TASKS_RCU