Message ID | 1417284466-32016-1-git-send-email-mpa@pengutronix.de (mailing list archive) |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <mpa@pengutronix.de> Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [92.198.50.35]) by open-mesh.org (Postfix) with ESMTPS id 8811E600E54 for <b.a.t.m.a.n@lists.open-mesh.org>; Sat, 29 Nov 2014 19:07:59 +0100 (CET) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from <mpa@pengutronix.de>) id 1XumR3-0002Hm-34; Sat, 29 Nov 2014 19:07:57 +0100 Received: from mpa by dude.hi.pengutronix.de with local (Exim 4.84) (envelope-from <mpa@pengutronix.de>) id 1XumR2-0008Lg-3G; Sat, 29 Nov 2014 19:07:56 +0100 From: Markus Pargmann <mpa@pengutronix.de> To: Marek Lindner <mareklindner@neomailbox.ch>, Simon Wunderlich <sw@simonwunderlich.de>, Antonio Quartulli <antonio@meshcoding.com> Date: Sat, 29 Nov 2014 19:07:46 +0100 Message-Id: <1417284466-32016-1-git-send-email-mpa@pengutronix.de> X-Mailer: git-send-email 2.1.3 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: mpa@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: b.a.t.m.a.n@lists.open-mesh.org Cc: b.a.t.m.a.n@lists.open-mesh.org Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: Kconfig, Add missing DEBUG_FS dependency X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking <b.a.t.m.a.n@lists.open-mesh.org> List-Id: The list for a Better Approach To Mobile Ad-hoc Networking <b.a.t.m.a.n.lists.open-mesh.org> List-Unsubscribe: <https://lists.open-mesh.org/mm/options/b.a.t.m.a.n>, <mailto:b.a.t.m.a.n-request@lists.open-mesh.org?subject=unsubscribe> List-Archive: <http://lists.open-mesh.org/pipermail/b.a.t.m.a.n/> List-Post: <mailto:b.a.t.m.a.n@lists.open-mesh.org> List-Help: <mailto:b.a.t.m.a.n-request@lists.open-mesh.org?subject=help> List-Subscribe: <https://lists.open-mesh.org/mm/listinfo/b.a.t.m.a.n>, <mailto:b.a.t.m.a.n-request@lists.open-mesh.org?subject=subscribe> X-List-Received-Date: Sat, 29 Nov 2014 18:07:59 -0000 |
Commit Message
Markus Pargmann
Nov. 29, 2014, 6:07 p.m. UTC
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(+)
Comments
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,
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
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,
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!
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