Skip to content

Commit fc06809

Browse files
committed
tests: kernel: userspace: explicitly declare function for the test
In the wake of moving the internal API header arm_core_mpu_dev.h into arch/arm/cortex_m/mpu, we need to explicitly declare the arm_core_mpu_disable() function in the userspace test. Note that arm_core_mpu_disable() (as any other function in this internal API) is not supposed to be called directly by kernel/application functions; an exception is allowed in this test suite, so we are able to test the MPU disabling functionality. Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 595cf90 commit fc06809

File tree

1 file changed

+1
-1
lines changed
  • tests/kernel/mem_protect/userspace/src

1 file changed

+1
-1
lines changed

tests/kernel/mem_protect/userspace/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#endif
2424

2525
#if defined(CONFIG_ARM)
26-
#include <arch/arm/cortex_m/mpu/arm_core_mpu_dev.h>
26+
extern void arm_core_mpu_disable(void);
2727
#endif
2828

2929
#define INFO(fmt, ...) printk(fmt, ##__VA_ARGS__)

0 commit comments

Comments
 (0)