mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
can: bittiming: can_calc_bittiming(): add missing parameter to no-op function
In commit286c0e09e8("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:286c0e09e8("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>
This commit is contained in:
@@ -124,7 +124,7 @@ void can_calc_tdco(struct can_tdc *tdc, const struct can_tdc_const *tdc_const,
|
|||||||
#else /* !CONFIG_CAN_CALC_BITTIMING */
|
#else /* !CONFIG_CAN_CALC_BITTIMING */
|
||||||
static inline int
|
static inline int
|
||||||
can_calc_bittiming(const struct net_device *dev, struct can_bittiming *bt,
|
can_calc_bittiming(const struct net_device *dev, struct can_bittiming *bt,
|
||||||
const struct can_bittiming_const *btc)
|
const struct can_bittiming_const *btc, struct netlink_ext_ack *extack)
|
||||||
{
|
{
|
||||||
netdev_err(dev, "bit-timing calculation not available\n");
|
netdev_err(dev, "bit-timing calculation not available\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|||||||
Reference in New Issue
Block a user