diff options
author | Chris Zankel <chris@zankel.net> | 2012-10-18 02:08:20 -0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2012-10-19 13:24:20 -0400 |
commit | 39070cb8a39a84f3379dd8d1dab489e06f3a50a7 (patch) | |
tree | 0e79bab84dea6e9bd91d8cedbbe639c8d1c702ed /arch/xtensa/kernel/process.c | |
parent | 795ca178c4fbb4e5d703df8cdab5c1711ba402b1 (diff) |
xtensa: minor compiler warning fix
Fix two compiler warnings complaining about truncating a value on
a 64-bit host, and about declaring an unused variable that is only
used for a specific configuration.
Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/kernel/process.c')
-rw-r--r-- | arch/xtensa/kernel/process.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/process.c b/arch/xtensa/kernel/process.c index 7901ee76b9be..1908f6642d31 100644 --- a/arch/xtensa/kernel/process.c +++ b/arch/xtensa/kernel/process.c | |||
@@ -190,10 +190,13 @@ int copy_thread(unsigned long clone_flags, unsigned long usp, | |||
190 | struct task_struct * p, struct pt_regs * regs) | 190 | struct task_struct * p, struct pt_regs * regs) |
191 | { | 191 | { |
192 | struct pt_regs *childregs; | 192 | struct pt_regs *childregs; |
193 | struct thread_info *ti; | ||
194 | unsigned long tos; | 193 | unsigned long tos; |
195 | int user_mode = user_mode(regs); | 194 | int user_mode = user_mode(regs); |
196 | 195 | ||
196 | #if (XTENSA_HAVE_COPROCESSORS || XTENSA_HAVE_IO_PORTS) | ||
197 | struct thread_info *ti; | ||
198 | #endif | ||
199 | |||
197 | /* Set up new TSS. */ | 200 | /* Set up new TSS. */ |
198 | tos = (unsigned long)task_stack_page(p) + THREAD_SIZE; | 201 | tos = (unsigned long)task_stack_page(p) + THREAD_SIZE; |
199 | if (user_mode) | 202 | if (user_mode) |