Skip to content

Commit

Permalink
drivers: can: Fix handler syscalls Z_OOPS->K_OOPS
Browse files Browse the repository at this point in the history
Fix can handlers calling removed Z_OOPS instead of K_OOPS

Signed-off-by: Declan Snyder <[email protected]>
  • Loading branch information
decsny authored and henrikbrixandersen committed Nov 3, 2023
1 parent a4446b1 commit 5b8a2f9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/can/can_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,63 +248,63 @@ static inline int z_vrfy_can_recover(const struct device *dev, k_timeout_t timeo

static inline uint32_t z_vrfy_can_stats_get_bit_errors(const struct device *dev)
{
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));

return z_impl_can_stats_get_bit_errors(dev);
}
#include <syscalls/can_stats_get_bit_errors_mrsh.c>

static inline uint32_t z_vrfy_can_stats_get_bit0_errors(const struct device *dev)
{
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));

return z_impl_can_stats_get_bit0_errors(dev);
}
#include <syscalls/can_stats_get_bit0_errors_mrsh.c>

static inline uint32_t z_vrfy_can_stats_get_bit1_errors(const struct device *dev)
{
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));

return z_impl_can_stats_get_bit1_errors(dev);
}
#include <syscalls/can_stats_get_bit1_errors_mrsh.c>

static inline uint32_t z_vrfy_can_stats_get_stuff_errors(const struct device *dev)
{
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));

return z_impl_can_stats_get_stuff_errors(dev);
}
#include <syscalls/can_stats_get_stuff_errors_mrsh.c>

static inline uint32_t z_vrfy_can_stats_get_crc_errors(const struct device *dev)
{
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));

return z_impl_can_stats_get_crc_errors(dev);
}
#include <syscalls/can_stats_get_crc_errors_mrsh.c>

static inline uint32_t z_vrfy_can_stats_get_form_errors(const struct device *dev)
{
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));

return z_impl_can_stats_get_form_errors(dev);
}
#include <syscalls/can_stats_get_form_errors_mrsh.c>

static inline uint32_t z_vrfy_can_stats_get_ack_errors(const struct device *dev)
{
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));

return z_impl_can_stats_get_ack_errors(dev);
}
#include <syscalls/can_stats_get_ack_errors_mrsh.c>

static inline uint32_t z_vrfy_can_stats_get_rx_overruns(const struct device *dev)
{
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));

return z_impl_can_stats_get_rx_overruns(dev);
}
Expand Down

0 comments on commit 5b8a2f9

Please sign in to comment.