]> 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)
commit359097eeed7d47c03e9f03aa90b13df58b0c7bff
treef7032b450be40f839eea8fe160290e5c5ab6d21e
parentdacfe090878d08e02f9656b6a0c589a938c2af75
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