kernel: coding guidelines: cast unused arguments to void

- added missing ARG_UNUSED

Signed-off-by: frei tycho <tfrei@baumer.com>
This commit is contained in:
frei tycho 2024-05-02 13:33:43 +00:00 committed by Fabio Baltieri
commit fe38c703b2

View file

@ -981,6 +981,12 @@ static uintptr_t handler_bad_syscall(uintptr_t bad_id, uintptr_t arg2,
uintptr_t arg5, uintptr_t arg6,
void *ssf)
{
ARG_UNUSED(arg2);
ARG_UNUSED(arg3);
ARG_UNUSED(arg4);
ARG_UNUSED(arg5);
ARG_UNUSED(arg6);
LOG_ERR("Bad system call id %" PRIuPTR " invoked", bad_id);
arch_syscall_oops(ssf);
CODE_UNREACHABLE; /* LCOV_EXCL_LINE */
@ -990,6 +996,13 @@ static uintptr_t handler_no_syscall(uintptr_t arg1, uintptr_t arg2,
uintptr_t arg3, uintptr_t arg4,
uintptr_t arg5, uintptr_t arg6, void *ssf)
{
ARG_UNUSED(arg1);
ARG_UNUSED(arg2);
ARG_UNUSED(arg3);
ARG_UNUSED(arg4);
ARG_UNUSED(arg5);
ARG_UNUSED(arg6);
LOG_ERR("Unimplemented system call");
arch_syscall_oops(ssf);
CODE_UNREACHABLE; /* LCOV_EXCL_LINE */