* [PATCH] can: bittiming: fix can_calc_bittiming() dummy helper
@ 2023-02-08 16:37 Arnd Bergmann
2023-02-08 20:21 ` Marc Kleine-Budde
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2023-02-08 16:37 UTC (permalink / raw)
To: Wolfgang Grandegger, Marc Kleine-Budde
Cc: Arnd Bergmann, Dario Binacchi, linux-can, linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
The prototype for this function changed, but the alternative
implementation needs the same change:
drivers/net/can/dev/bittiming.c: In function 'can_get_bittiming':
drivers/net/can/dev/bittiming.c:145:24: error: too many arguments to function 'can_calc_bittiming'
145 | return can_calc_bittiming(dev, bt, btc, extack);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/can/dev.h:18,
from drivers/net/can/dev/bittiming.c:7:
include/linux/can/bittiming.h:126:1: note: declared here
126 | can_calc_bittiming(const struct net_device *dev, struct can_bittiming *bt,
| ^~~~~~~~~~~~~~~~~~
Fixes: 286c0e09e8e0 ("can: bittiming: can_changelink() pass extack down callstack")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
include/linux/can/bittiming.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/can/bittiming.h b/include/linux/can/bittiming.h
index 6cb2ae308e3f..9b8a9c39614b 100644
--- a/include/linux/can/bittiming.h
+++ b/include/linux/can/bittiming.h
@@ -124,7 +124,7 @@ void can_calc_tdco(struct can_tdc *tdc, const struct can_tdc_const *tdc_const,
#else /* !CONFIG_CAN_CALC_BITTIMING */
static inline int
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");
return -EINVAL;
--
2.39.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] can: bittiming: fix can_calc_bittiming() dummy helper
2023-02-08 16:37 [PATCH] can: bittiming: fix can_calc_bittiming() dummy helper Arnd Bergmann
@ 2023-02-08 20:21 ` Marc Kleine-Budde
0 siblings, 0 replies; 2+ messages in thread
From: Marc Kleine-Budde @ 2023-02-08 20:21 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Wolfgang Grandegger, Arnd Bergmann, Dario Binacchi, linux-can,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 670 bytes --]
On 08.02.2023 17:37:12, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> The prototype for this function changed, but the alternative
> implementation needs the same change:
ACK - I've posted this fix this morning already.
| https://lore.kernel.org/all/20230207201734.2905618-1-mkl@pengutronix.de/
Will send a PR now, before this annoys more people :)
regards,
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-08 20:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-08 16:37 [PATCH] can: bittiming: fix can_calc_bittiming() dummy helper Arnd Bergmann
2023-02-08 20:21 ` Marc Kleine-Budde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox