misra: Fixes for MISRA-C rule 8.2

In C90 was introduced function prototype, that allows argument types
to be checked against parameter types, though it is not necessary
specify names for the parameters. MISRA-C requires names for function
prototype parameters, it claims that names can provide useful
information regarding the function interface.

MISRA-C rule 8.2

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2018-11-16 19:06:59 -08:00 committed by Anas Nashif
commit 4b35dd2628
6 changed files with 10 additions and 10 deletions

View file

@ -1316,10 +1316,10 @@ struct k_timer {
_wait_q_t wait_q;
/* runs in ISR context */
void (*expiry_fn)(struct k_timer *);
void (*expiry_fn)(struct k_timer *timer);
/* runs in the context of the thread that calls k_timer_stop() */
void (*stop_fn)(struct k_timer *);
void (*stop_fn)(struct k_timer *timer);
/* timer period */
s32_t period;
@ -4907,7 +4907,7 @@ __syscall void k_str_out(char *c, size_t n);
* @param arg Untyped argument to be passed to "fn"
*/
extern void _arch_start_cpu(int cpu_num, k_thread_stack_t *stack, int sz,
void (*fn)(int, void *), void *arg);
void (*fn)(int key, void *data), void *arg);
#ifdef __cplusplus
}