kernel: MISRA C: Fixes a few MISRA C issues.

MISRA C guideline compliance for various rules.

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
This commit is contained in:
Adithya Baglody 2018-10-15 11:48:51 +05:30 committed by Anas Nashif
commit 28080d3896
2 changed files with 14 additions and 13 deletions

View file

@ -2300,7 +2300,7 @@ struct k_lifo {
/**
* @cond INTERNAL_HIDDEN
*/
#define K_STACK_FLAG_ALLOC BIT(0) /* Buffer was allocated */
#define K_STACK_FLAG_ALLOC ((u8_t)1) /* Buffer was allocated */
struct k_stack {
_wait_q_t wait_q;
@ -2344,7 +2344,7 @@ struct k_stack {
* @req K-STACK-001
*/
void k_stack_init(struct k_stack *stack,
u32_t *buffer, unsigned int num_entries);
u32_t *buffer, u32_t num_entries);
/**
@ -2362,8 +2362,8 @@ void k_stack_init(struct k_stack *stack,
* @req K-STACK-001
*/
__syscall int k_stack_alloc_init(struct k_stack *stack,
unsigned int num_entries);
__syscall s32_t k_stack_alloc_init(struct k_stack *stack,
u32_t num_entries);
/**
* @brief Release a stack's allocated buffer