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 | |
| 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>
| -rw-r--r-- | arch/xtensa/kernel/entry.S | 2 | ||||
| -rw-r--r-- | arch/xtensa/kernel/process.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/arch/xtensa/kernel/entry.S b/arch/xtensa/kernel/entry.S index 30b5c5f7b7eb..18453067c258 100644 --- a/arch/xtensa/kernel/entry.S +++ b/arch/xtensa/kernel/entry.S | |||
| @@ -1542,7 +1542,7 @@ ENTRY(fast_second_level_miss) | |||
| 1542 | * pteval = ((pmdval - PAGE_OFFSET) & PAGE_MASK) | PAGE_DIRECTORY | 1542 | * pteval = ((pmdval - PAGE_OFFSET) & PAGE_MASK) | PAGE_DIRECTORY |
| 1543 | */ | 1543 | */ |
| 1544 | 1544 | ||
| 1545 | movi a1, -PAGE_OFFSET | 1545 | movi a1, (-PAGE_OFFSET) & 0xffffffff |
| 1546 | add a0, a0, a1 # pmdval - PAGE_OFFSET | 1546 | add a0, a0, a1 # pmdval - PAGE_OFFSET |
| 1547 | extui a1, a0, 0, PAGE_SHIFT # ... & PAGE_MASK | 1547 | extui a1, a0, 0, PAGE_SHIFT # ... & PAGE_MASK |
| 1548 | xor a0, a0, a1 | 1548 | xor a0, a0, a1 |
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) |
