aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>2009-08-18 02:06:02 -0400
committerIngo Molnar <mingo@elte.hu>2009-08-18 09:45:11 -0400
commit1314562a9ae5f39f6f595656023c1baf970831ef (patch)
tree218abb315cecfe0f3a50e1064580ee6d8b73ae6f /include/linux/sched.h
parent8e5b59a2d728e6963b35dba8bb36e0b70267462e (diff)
sched, task_struct: stack_canary is not needed without CC_STACKPROTECTOR
The field stack_canary is only used with CC_STACKPROTECTOR. This patch reduces task_struct size without CC_STACKPROTECTOR. Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> LKML-Reference: <4A8A44CA.2020701@ct.jp.nec.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 195d72d5c102..7bc2d9290837 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1237,8 +1237,10 @@ struct task_struct {
1237 pid_t pid; 1237 pid_t pid;
1238 pid_t tgid; 1238 pid_t tgid;
1239 1239
1240#ifdef CONFIG_CC_STACKPROTECTOR
1240 /* Canary value for the -fstack-protector gcc feature */ 1241 /* Canary value for the -fstack-protector gcc feature */
1241 unsigned long stack_canary; 1242 unsigned long stack_canary;
1243#endif
1242 1244
1243 /* 1245 /*
1244 * pointers to (original) parent process, youngest child, younger sibling, 1246 * pointers to (original) parent process, youngest child, younger sibling,