zephyr/tests/kernel
Carles Cufi cfbaac6733 tests: kernel: Fix address-of-packed-mem warning
The warning below appears once -Waddress-of-packed-mem is enabled:

/__w/zephyr/zephyr/tests/kernel/mem_protect/userspace/src/main.c: In
function 'test_main':
/__w/zephyr/zephyr/tests/kernel/mem_protect/userspace/src/main.c:1024:17:
error: converting a packed 'k_thread_stack_t' {aka 'struct
z_thread_stack_element'} pointer (alignment 1) to a 'struct
z_x86_thread_stack_header' pointer (alignment 4096) may result in an
unaligned pointer value [-Werror=address-of-packed-member]
 1024 |  hdr = ((struct z_x86_thread_stack_header *)ztest_thread_stack);

To avoid the warning, use an intermediate void * variable.

More info in #16587.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2021-12-10 14:08:59 +01:00
..
common tests: kernel: atomics: expand atomic operations to 64-bit 2021-11-15 09:59:01 -05:00
condvar/condvar_api cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
context tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
device tests: kernel: device: remove PM related tests 2021-12-02 10:53:39 +01:00
early_sleep tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
events tests: add event test code 2021-10-16 06:27:10 -04:00
fatal tests: kernel: disable one test for qemu_cortex_a9 2021-11-01 22:10:04 -04:00
fifo tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
fpu_sharing cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
gen_isr_table tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
interrupt tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
lifo tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
mbox tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
mem_heap tests: heap: add test case for coverage 2021-11-07 05:39:10 -05:00
mem_protect tests: kernel: Fix address-of-packed-mem warning 2021-12-10 14:08:59 +01:00
mem_slab tests: kernel: mem_slab: Fix test for no multithreading 2021-11-03 09:18:40 -04:00
mp tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
msgq tests: msgq: improve code coverage for msgq API 2021-11-01 11:15:15 -04:00
mutex tests: correct some testsuite name 2021-11-09 15:51:44 -05:00
pending cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
pipe cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
poll tests: removing incorrect testcases of poll 2021-11-29 18:26:02 -05:00
profiling/profiling_api pm: policy: Add cpu information in the API 2021-11-06 10:21:53 -04:00
queue tests: queue: add a test case for coverage 2021-10-28 12:06:25 -04:00
sched test: change test suite name and testcase name 2021-11-03 16:44:50 -04:00
semaphore cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
sleep cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
smp tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
smp_boot_delay tests/kernel: Add test for CONFIG_SMP_BOOT_DELAY 2021-11-23 13:23:54 -05:00
spinlock cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
stack/stack tests: stack: fix improper assert message 2021-10-13 06:17:23 -04:00
threads tests: thread_apis: fix cast to smaller integer type 2021-12-04 12:09:54 +01:00
tickless/tickless_concept cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
timer tests: kernel: cycle64: mark test as slow 2021-11-29 10:35:49 -05:00
workq tests: work_queue: add a test case for coverage 2021-11-12 11:56:23 -05:00
xip tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00