debug: Do not permit CONFIG_DEBUG_STACK_USAGE=y on IA64 or PARISC
authorTony Luck <tony.luck@intel.com>
Wed, 18 Jul 2012 17:35:05 +0000 (10:35 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 19 Jul 2012 17:36:45 +0000 (10:36 -0700)
commite9c31b32f1cc6d3aa190119103622fb8e4c257b1
tree81befbf8ec35edad58d5ea09a4321a284d13b138
parentf28fa729149c8b39699f7995ce5fff34c5145a9d
debug: Do not permit CONFIG_DEBUG_STACK_USAGE=y on IA64 or PARISC

The stack_not_used() function in <linux/sched.h> assumes that stacks
grow downwards. This is not true on IA64 or PARISC, so this function
would walk off in the wrong direction and into the weeds.

Found on IA64 because of a compilation failure with recursive dependencies
on IA64_TASKSIZE and IA64_THREAD_INFO_SIZE.

Fixing the code is possible, but should be combined with other
infrastructure additions to set up the "canary" at the end of the stack.

Reported-by: Fengguang Wu <fengguang.wu@intel.com> (failed allmodconfig build)
Signed-off-by: Tony Luck <tony.luck@intel.com>
lib/Kconfig.debug