Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

can: bittiming: can_calc_bittiming(): add missing parameter to no-op function

In commit 286c0e09e8e0 ("can: bittiming: can_changelink() pass extack
down callstack") a new parameter was added to can_calc_bittiming(),
however the static inline no-op (which is used if
CONFIG_CAN_CALC_BITTIMING is disabled) wasn't converted.

Add the new parameter to the static inline no-op of
can_calc_bittiming().

Fixes: 286c0e09e8e0 ("can: bittiming: can_changelink() pass extack down callstack")
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/20230207201734.2905618-1-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

+1 -1
+1 -1
include/linux/can/bittiming.h
··· 124 124 #else /* !CONFIG_CAN_CALC_BITTIMING */ 125 125 static inline int 126 126 can_calc_bittiming(const struct net_device *dev, struct can_bittiming *bt, 127 - const struct can_bittiming_const *btc) 127 + const struct can_bittiming_const *btc, struct netlink_ext_ack *extack) 128 128 { 129 129 netdev_err(dev, "bit-timing calculation not available\n"); 130 130 return -EINVAL;