core/thread: thread_measure_stack_free() const arg
Add `const` to stack pointer passed to thread_measure_stack_free()
This commit is contained in:
parent
59321065db
commit
e028f6bbe6
@ -540,7 +540,7 @@ const char *thread_getname(kernel_pid_t pid);
|
|||||||
*
|
*
|
||||||
* @return the amount of unused space of the thread's stack
|
* @return the amount of unused space of the thread's stack
|
||||||
*/
|
*/
|
||||||
uintptr_t thread_measure_stack_free(char *stack);
|
uintptr_t thread_measure_stack_free(const char *stack);
|
||||||
#endif /* DEVELHELP */
|
#endif /* DEVELHELP */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -169,7 +169,7 @@ void thread_add_to_list(list_node_t *list, thread_t *thread)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEVELHELP
|
#ifdef DEVELHELP
|
||||||
uintptr_t thread_measure_stack_free(char *stack)
|
uintptr_t thread_measure_stack_free(const char *stack)
|
||||||
{
|
{
|
||||||
/* Alignment of stack has been fixed (if needed) by thread_create(), so
|
/* Alignment of stack has been fixed (if needed) by thread_create(), so
|
||||||
* we can silence -Wcast-align here */
|
* we can silence -Wcast-align here */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user