b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batman-adv: Kconfig, Add missing DEBUG_FS dependency
@ 2014-11-29 18:07 Markus Pargmann
  2014-11-29 19:41 ` Antonio Quartulli
  2015-01-07 21:16 ` Antonio Quartulli
  0 siblings, 2 replies; 5+ messages in thread
From: Markus Pargmann @ 2014-11-29 18:07 UTC (permalink / raw)
  To: Marek Lindner, Simon Wunderlich, Antonio Quartulli; +Cc: b.a.t.m.a.n

BATMAN_ADV_DEBUG is using debugfs files for the debugging log. So it
depends on DEBUG_FS which is missing as dependency in the Kconfig file.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
 net/batman-adv/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/batman-adv/Kconfig b/net/batman-adv/Kconfig
index 11660a3aab5a..c6fc8f756c9a 100644
--- a/net/batman-adv/Kconfig
+++ b/net/batman-adv/Kconfig
@@ -62,6 +62,7 @@ config BATMAN_ADV_MCAST
 config BATMAN_ADV_DEBUG
 	bool "B.A.T.M.A.N. debugging"
 	depends on BATMAN_ADV
+	depends on DEBUG_FS
 	help
 	  This is an option for use by developers; most people should
 	  say N here. This enables compilation of support for
-- 
2.1.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Kconfig, Add missing DEBUG_FS dependency
  2014-11-29 18:07 [B.A.T.M.A.N.] [PATCH] batman-adv: Kconfig, Add missing DEBUG_FS dependency Markus Pargmann
@ 2014-11-29 19:41 ` Antonio Quartulli
  2014-11-29 19:46   ` Markus Pargmann
  2015-01-07 21:16 ` Antonio Quartulli
  1 sibling, 1 reply; 5+ messages in thread
From: Antonio Quartulli @ 2014-11-29 19:41 UTC (permalink / raw)
  To: Markus Pargmann, Marek Lindner, Simon Wunderlich; +Cc: b.a.t.m.a.n

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



On 29/11/14 19:07, Markus Pargmann wrote:
> BATMAN_ADV_DEBUG is using debugfs files for the debugging log. So it
> depends on DEBUG_FS which is missing as dependency in the Kconfig file.
> 
> Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
> ---
>  net/batman-adv/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/net/batman-adv/Kconfig b/net/batman-adv/Kconfig
> index 11660a3aab5a..c6fc8f756c9a 100644
> --- a/net/batman-adv/Kconfig
> +++ b/net/batman-adv/Kconfig
> @@ -62,6 +62,7 @@ config BATMAN_ADV_MCAST
>  config BATMAN_ADV_DEBUG
>  	bool "B.A.T.M.A.N. debugging"
>  	depends on BATMAN_ADV
> +	depends on DEBUG_FS

What if somebody does not want to bloat the kernel with debug_fs but
still wants to run batman-adv? (i.e. on a very constrained embedded unit)

With this patch this would not be possible anymore..

Cheers,

-- 
Antonio Quartulli


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Kconfig, Add missing DEBUG_FS dependency
  2014-11-29 19:41 ` Antonio Quartulli
@ 2014-11-29 19:46   ` Markus Pargmann
  2014-11-29 19:48     ` Antonio Quartulli
  0 siblings, 1 reply; 5+ messages in thread
From: Markus Pargmann @ 2014-11-29 19:46 UTC (permalink / raw)
  To: Antonio Quartulli; +Cc: b.a.t.m.a.n, Marek Lindner

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

Hi,

On Sat, Nov 29, 2014 at 08:41:46PM +0100, Antonio Quartulli wrote:
> 
> 
> On 29/11/14 19:07, Markus Pargmann wrote:
> > BATMAN_ADV_DEBUG is using debugfs files for the debugging log. So it
> > depends on DEBUG_FS which is missing as dependency in the Kconfig file.
> > 
> > Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
> > ---
> >  net/batman-adv/Kconfig | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/net/batman-adv/Kconfig b/net/batman-adv/Kconfig
> > index 11660a3aab5a..c6fc8f756c9a 100644
> > --- a/net/batman-adv/Kconfig
> > +++ b/net/batman-adv/Kconfig
> > @@ -62,6 +62,7 @@ config BATMAN_ADV_MCAST
> >  config BATMAN_ADV_DEBUG
> >  	bool "B.A.T.M.A.N. debugging"
> >  	depends on BATMAN_ADV
> > +	depends on DEBUG_FS
> 
> What if somebody does not want to bloat the kernel with debug_fs but
> still wants to run batman-adv? (i.e. on a very constrained embedded unit)
> 
> With this patch this would not be possible anymore..

It is still possible, it just adds a dependency for BATMAN_ADV_DEBUG,
the log which holds the verbose information. This is exported in debug
fs as far as I could see, so it is not usable anyway when DEBUG_FS is
not enabled as all debugfs function calls will be noops in that case.

Regards,

Markus

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Kconfig, Add missing DEBUG_FS dependency
  2014-11-29 19:46   ` Markus Pargmann
@ 2014-11-29 19:48     ` Antonio Quartulli
  0 siblings, 0 replies; 5+ messages in thread
From: Antonio Quartulli @ 2014-11-29 19:48 UTC (permalink / raw)
  To: Markus Pargmann; +Cc: b.a.t.m.a.n, Marek Lindner

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



On 29/11/14 20:46, Markus Pargmann wrote:
>>> diff --git a/net/batman-adv/Kconfig b/net/batman-adv/Kconfig
>>> index 11660a3aab5a..c6fc8f756c9a 100644
>>> --- a/net/batman-adv/Kconfig
>>> +++ b/net/batman-adv/Kconfig
>>> @@ -62,6 +62,7 @@ config BATMAN_ADV_MCAST
>>>  config BATMAN_ADV_DEBUG
>>>  	bool "B.A.T.M.A.N. debugging"
>>>  	depends on BATMAN_ADV
>>> +	depends on DEBUG_FS
>>
>> What if somebody does not want to bloat the kernel with debug_fs but
>> still wants to run batman-adv? (i.e. on a very constrained embedded unit)
>>
>> With this patch this would not be possible anymore..
> 
> It is still possible, it just adds a dependency for BATMAN_ADV_DEBUG,
> the log which holds the verbose information. This is exported in debug
> fs as far as I could see, so it is not usable anyway when DEBUG_FS is
> not enabled as all debugfs function calls will be noops in that case.
> 

Oh you are right, I thought you added the dependency to the BATMAN_ADV
symbol.

Better not to answer emails on Saturday evening :-)

Cheers,

-- 
Antonio Quartulli


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Kconfig, Add missing DEBUG_FS dependency
  2014-11-29 18:07 [B.A.T.M.A.N.] [PATCH] batman-adv: Kconfig, Add missing DEBUG_FS dependency Markus Pargmann
  2014-11-29 19:41 ` Antonio Quartulli
@ 2015-01-07 21:16 ` Antonio Quartulli
  1 sibling, 0 replies; 5+ messages in thread
From: Antonio Quartulli @ 2015-01-07 21:16 UTC (permalink / raw)
  To: mpa@pengutronix.de >> Markus Pargmann
  Cc: The list for a Better Approach To Mobile Ad-hoc Networking,
	Marek Lindner

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



On 29/11/14 19:07, Markus Pargmann wrote:
> BATMAN_ADV_DEBUG is using debugfs files for the debugging log. So it
> depends on DEBUG_FS which is missing as dependency in the Kconfig file.
> 
> Signed-off-by: Markus Pargmann <mpa@pengutronix.de>

Applied to my tree and queued for being sent upstream.
Thanks!


-- 
Antonio Quartulli


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-07 21:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-29 18:07 [B.A.T.M.A.N.] [PATCH] batman-adv: Kconfig, Add missing DEBUG_FS dependency Markus Pargmann
2014-11-29 19:41 ` Antonio Quartulli
2014-11-29 19:46   ` Markus Pargmann
2014-11-29 19:48     ` Antonio Quartulli
2015-01-07 21:16 ` Antonio Quartulli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).