]> git.ipfire.org Git - thirdparty/linux.git/commit
can: dev: turn can_set_static_ctrlmode() into a non-inline function
authorVincent Mailhol <mailhol@kernel.org>
Tue, 23 Sep 2025 06:37:09 +0000 (15:37 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 23 Sep 2025 08:04:58 +0000 (10:04 +0200)
commit7c7da8aa3fd69b77e8efaa14b80bddd948547739
treea0babc72da6f587b05c4078c0b19405f72629588
parentc67732d067860850b767c81736b49f88a946bffb
can: dev: turn can_set_static_ctrlmode() into a non-inline function

can_set_static_ctrlmode() is declared as a static inline. But it is
only called in the probe function of the devices and so does not
really benefit from any kind of optimization.

Transform it into a "normal" function by moving it to

  drivers/net/can/dev/dev.c

Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
Link: https://patch.msgid.link/20250923-can-fix-mtu-v3-2-581bde113f52@kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev/dev.c
include/linux/can/dev.h