summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-11-18 22:55:39 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-18 22:55:39 -0800
commit30253b6f17b14d7bb545417f028c41a3ccacfce5 (patch)
tree87ebff2df50ac1279b5c60ab10926d86f6bf5e6b /include
parent484f08a8002ddbc1f990bb64e5606aa4225bbdda (diff)
[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: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/thread_info.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-i386/thread_info.h b/include/asm-i386/thread_info.h
index 9afee94ac026..819e84b5707a 100644
--- a/include/asm-i386/thread_info.h
+++ b/include/asm-i386/thread_info.h
@@ -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