Commit 30253b6f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] x86 current_stack_pointer warning fix

With newer gcc's:

include/asm/thread_info.h:95: warning: unused variable `current_stack_pointer'
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 484f08a8
......@@ -10,6 +10,7 @@
#ifdef __KERNEL__
#include <linux/config.h>
#include <linux/compiler.h>
#include <asm/page.h>
#ifndef __ASSEMBLY__
......@@ -92,7 +93,7 @@ static inline struct thread_info *current_thread_info(void)
}
/* how to get the current stack pointer from C */
register unsigned long current_stack_pointer asm("esp");
register unsigned long current_stack_pointer asm("esp") __attribute_used__;
/* thread information allocation */
#ifdef CONFIG_DEBUG_STACK_USAGE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment