Commit f09b9fa5 authored by Catalin Marinas's avatar Catalin Marinas Committed by Russell King

[ARM PATCH] 2389/1: semaphore.c warning fixed

Patch from Catalin Marinas

The patch adds the "ax" attributes to the .sched.text section to
avoid a compiler warning.

Signed-off-by: Catalin Marinas
Signed-off-by: Russell King
parent d56169c7
...@@ -178,7 +178,7 @@ int __down_trylock(struct semaphore * sem) ...@@ -178,7 +178,7 @@ int __down_trylock(struct semaphore * sem)
* registers (r0 to r3 and lr), but not ip, as we use it as a return * registers (r0 to r3 and lr), but not ip, as we use it as a return
* value in some cases.. * value in some cases..
*/ */
asm(" .section .sched.text \n\ asm(" .section .sched.text,\"ax\" \n\
.align 5 \n\ .align 5 \n\
.globl __down_failed \n\ .globl __down_failed \n\
__down_failed: \n\ __down_failed: \n\
......
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