summaryrefslogtreecommitdiffstats
path: root/net/can/af_can.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-06-20 17:51:52 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2016-06-23 11:23:49 +0200
commit2781ff5c8fc7722e97503f96686bf6d7093069a9 (patch)
tree8ed27b0a850a173cbfd1cab3227ee0c271ec48f0 /net/can/af_can.h
parentopenvswitch: Add packet len info to upcall. (diff)
downloadlinux-2781ff5c8fc7722e97503f96686bf6d7093069a9.tar.xz
linux-2781ff5c8fc7722e97503f96686bf6d7093069a9.zip
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: Arnd Bergmann <arnd@arndb.de> Fixes: a20fadf85312 ("can: build proc support only if CONFIG_PROC_FS is activated") Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/can/af_can.h')
-rw-r--r--net/can/af_can.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/net/can/af_can.h b/net/can/af_can.h
index 38a79ff20022..fca0fe9fc45a 100644
--- a/net/can/af_can.h
+++ b/net/can/af_can.h
@@ -113,19 +113,8 @@ struct s_pstats {
extern struct dev_rcv_lists can_rx_alldev_list;
/* function prototypes for the CAN networklayer procfs (proc.c) */
-#ifdef CONFIG_PROC_FS
void can_init_proc(void);
void can_remove_proc(void);
-#else
-static inline void can_init_proc(void)
-{
- pr_info("can: Can't create /proc/net/can. CONFIG_PROC_FS missing!\n");
-}
-
-static inline void can_remove_proc(void)
-{
-}
-#endif
void can_stat_update(unsigned long data);
/* structures and variables from af_can.c needed in proc.c for reading */