diff options
| author | Vincent Mailhol <mailhol@kernel.org> | 2025-11-26 13:16:03 +0300 |
|---|---|---|
| committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2025-11-26 13:20:43 +0300 |
| commit | 585a4f22c4f9d85e32d42be65e67c232e82e5b3a (patch) | |
| tree | 2a0542b27956d70e4936a6d20aa9a81459d82455 /scripts/stackusage | |
| parent | 66e75b2758d69dce908fe98da72c345fa18a46f4 (diff) | |
| download | linux-585a4f22c4f9d85e32d42be65e67c232e82e5b3a.tar.xz | |
can: bittiming: apply NL_SET_ERR_MSG() to can_calc_bittiming()
When CONFIG_CAN_CALC_BITTIMING is disabled, the can_calc_bittiming()
functions can not be used and the user needs to provide all the
bittiming parameters.
Currently, can_calc_bittiming() prints an error message to the kernel
log. Instead use NL_SET_ERR_MSG() to make it return the error message
through the netlink interface so that the user can directly see it.
Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Link: https://patch.msgid.link/20251126-canxl-v8-2-e7e3eb74f889@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
