Re: [B.A.T.M.A.N.] [PATCH v2 01/26] batman-adv: debugfs, avoid compiling for !DEBUG_FS

Marek Lindner
2015-01-11T10:32:00Z

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

On Friday 26 December 2014 12:41:18 Markus Pargmann wrote:
> 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>
> ---
> Makefile.kbuild | 2 +-
> debugfs.c | 8 --------
> debugfs.h | 34 ++++++++++++++++++++++++++++++++++
> 3 files changed, 35 insertions(+), 9 deletions(-)

Applied in revision fe67bb4.

Thanks,
Marek

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]