mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 04:54:41 +08:00
a20fadf853
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: Alexander Aring <aar@pengutronix.de> Acked-by: Oliver Hartkopp <socketcan@hartkopp.net> [mkl: provide static inline noops instead of using #ifdefs] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
17 lines
304 B
Makefile
17 lines
304 B
Makefile
#
|
|
# Makefile for the Linux Controller Area Network core.
|
|
#
|
|
|
|
obj-$(CONFIG_CAN) += can.o
|
|
can-y := af_can.o
|
|
can-$(CONFIG_PROC_FS) += proc.o
|
|
|
|
obj-$(CONFIG_CAN_RAW) += can-raw.o
|
|
can-raw-y := raw.o
|
|
|
|
obj-$(CONFIG_CAN_BCM) += can-bcm.o
|
|
can-bcm-y := bcm.o
|
|
|
|
obj-$(CONFIG_CAN_GW) += can-gw.o
|
|
can-gw-y := gw.o
|