]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: debugfs, avoid compiling for !DEBUG_FS
authorMarkus Pargmann <mpa@pengutronix.de>
Fri, 26 Dec 2014 11:41:18 +0000 (12:41 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Fri, 29 May 2015 08:13:35 +0000 (10:13 +0200)
commit5e555216abca5e425407b1f2915817c36465461d
treef7032b450be40f839eea8fe160290e5c5ab6d21e
parentb2f5a766595843d46883e8290a5ea1b8d61ce5ba
batman-adv: debugfs, avoid compiling for !DEBUG_FS

Normally the debugfs framework will return error pointer with -ENODEV
for function calls when DEBUG_FS is not set.

batman does not notice this error code and continues trying to create
debugfs files and executes more code. We can avoid this code execution
by disabling compiling debugfs.c when DEBUG_FS is not set.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/Makefile
net/batman-adv/debugfs.c
net/batman-adv/debugfs.h