From: Hiroshi Shimamoto Date: Tue, 18 Aug 2009 06:06:02 +0000 (+0900) Subject: sched, task_struct: stack_canary is not needed without CC_STACKPROTECTOR X-Git-Tag: v2.6.32-rc1~719^2~29 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1314562a9ae5f39f6f595656023c1baf970831ef;p=~shefty%2Frdma-dev.git 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 LKML-Reference: <4A8A44CA.2020701@ct.jp.nec.com> Signed-off-by: Ingo Molnar --- diff --git a/include/linux/sched.h b/include/linux/sched.h index 195d72d5c10..7bc2d929083 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1237,8 +1237,10 @@ struct task_struct { pid_t pid; pid_t tgid; +#ifdef CONFIG_CC_STACKPROTECTOR /* Canary value for the -fstack-protector gcc feature */ unsigned long stack_canary; +#endif /* * pointers to (original) parent process, youngest child, younger sibling,