Skip to content

Commit 5b8a2f9

Browse files
decsnyhenrikbrixandersen
authored andcommitted
drivers: can: Fix handler syscalls Z_OOPS->K_OOPS
Fix can handlers calling removed Z_OOPS instead of K_OOPS Signed-off-by: Declan Snyder <[email protected]>
1 parent a4446b1 commit 5b8a2f9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/can/can_handlers.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,63 +248,63 @@ static inline int z_vrfy_can_recover(const struct device *dev, k_timeout_t timeo
248248

249249
static inline uint32_t z_vrfy_can_stats_get_bit_errors(const struct device *dev)
250250
{
251-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
251+
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
252252

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

257257
static inline uint32_t z_vrfy_can_stats_get_bit0_errors(const struct device *dev)
258258
{
259-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
259+
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
260260

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

265265
static inline uint32_t z_vrfy_can_stats_get_bit1_errors(const struct device *dev)
266266
{
267-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
267+
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
268268

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

273273
static inline uint32_t z_vrfy_can_stats_get_stuff_errors(const struct device *dev)
274274
{
275-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
275+
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
276276

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

281281
static inline uint32_t z_vrfy_can_stats_get_crc_errors(const struct device *dev)
282282
{
283-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
283+
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
284284

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

289289
static inline uint32_t z_vrfy_can_stats_get_form_errors(const struct device *dev)
290290
{
291-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
291+
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
292292

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

297297
static inline uint32_t z_vrfy_can_stats_get_ack_errors(const struct device *dev)
298298
{
299-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
299+
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
300300

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

305305
static inline uint32_t z_vrfy_can_stats_get_rx_overruns(const struct device *dev)
306306
{
307-
Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
307+
K_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN));
308308

309309
return z_impl_can_stats_get_rx_overruns(dev);
310310
}

0 commit comments

Comments
 (0)