Skip to content
Commit a20fadf8 authored by Alexander Aring's avatar Alexander Aring Committed by Marc Kleine-Budde
Browse files

can: build proc support only if CONFIG_PROC_FS is activated



When building can subsystem with CONFIG_PROC_FS=n I detected some unused
variables warning by using proc functions. In CAN the proc handling is
nicely placed in one object file. This patch adds simple add a
dependency on CONFIG_PROC_FS for CAN's proc.o file and corresponding
static inline no-op functions.

Signed-off-by: default avatarAlexander Aring <aar@pengutronix.de>
Acked-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
[mkl: provide static inline noops instead of using #ifdefs]
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 3636876a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment