Skip to content
Commit 2781ff5c authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Marc Kleine-Budde
Browse files

can: only call can_stat_update with procfs



The change to leave out procfs support in CAN when CONFIG_PROC_FS
is not set was incomplete and leads to a build error:

net/built-in.o: In function `can_init':
:(.init.text+0x9858): undefined reference to `can_stat_update'
ERROR: "can_stat_update" [net/can/can.ko] undefined!

This tries a better approach, encapsulating all of the calls
within IS_ENABLED(), so we also leave out the timer function
from the object file.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: a20fadf8 ("can: build proc support only if CONFIG_PROC_FS is activated")
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent b95e5928
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment