Commit 0bf5cbc1 authored by Flavio Ceolin's avatar Flavio Ceolin Committed by Alberto Escolar
Browse files

syscall_handler: Fix warnings in K_SYSCALL_MEMORY



Put parenthesis around parameters in K_SYSCALL_MEMORY_SIZE_CHECK
to avoid possible warnings during the macro expansion.

Signed-off-by: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
parent 1f67dcbd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -408,7 +408,7 @@ int k_usermode_string_copy(char *dst, const char *src, size_t maxlen);
 *       functionality in the Zephyr tree.
 */
#define K_SYSCALL_MEMORY_SIZE_CHECK(ptr, size) \
	(((uintptr_t)ptr + size) >= (uintptr_t)ptr)
	(((uintptr_t)(ptr) + (size)) >= (uintptr_t)(ptr))

/**
 * @brief Runtime check that a user thread has read and/or write permission to