mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 16:02:57 +00:00
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 <[email protected]> Acked-by: Oliver Hartkopp <[email protected]> [mkl: provide static inline noops instead of using #ifdefs] Signed-off-by: Marc Kleine-Budde <[email protected]>
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
|