arch: arm: Fix checks of CONFIG_USERSPACE
The compiler generates errors of the form error: "CONFIG_USERSPACE" is not defined, evaluates to 0 [-Werror=undef] when -Wundef is used and the config option was turned off. Change check to if defined(). Signed-off-by: Bradley Bolen <bbolen@lexmark.com>
This commit is contained in:
parent
c5665f2e8e
commit
63013d93ab
2 changed files with 5 additions and 5 deletions
|
@ -349,7 +349,7 @@ SECTION_FUNC(TEXT, __svc)
|
|||
* expand this case.
|
||||
*/
|
||||
ands r1, #0xff
|
||||
#if CONFIG_USERSPACE
|
||||
#if defined(CONFIG_USERSPACE)
|
||||
mrs r2, CONTROL
|
||||
|
||||
cmp r1, #3
|
||||
|
@ -381,7 +381,7 @@ _oops:
|
|||
bl z_do_kernel_oops
|
||||
pop {r0, pc}
|
||||
|
||||
#if CONFIG_USERSPACE
|
||||
#if defined(CONFIG_USERSPACE)
|
||||
/*
|
||||
* System call will setup a jump to the _do_arm_syscall function
|
||||
* when the SVC returns via the bx lr.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue