lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4ECB6992.5020804@pengutronix.de>
Date:	Tue, 22 Nov 2011 10:21:22 +0100
From:	Marc Kleine-Budde <mkl@...gutronix.de>
To:	Uwe Kleine-König 
	<u.kleine-koenig@...gutronix.de>
CC:	linux-kernel@...r.kernel.org, kernel@...gutronix.de,
	Mark Brown <broonie@...nsource.wolfsonmicro.com>
Subject: Re: [PATCH] regmap: Fix build failure with CONFIG_DEBUG_FS=n

On 11/22/2011 09:24 AM, Uwe Kleine-König wrote:
> This fixes:
> 
> 	drivers/base/regmap/regcache-rbtree.c: In function 'regcache_rbtree_init':
> 	drivers/base/regmap/regcache-rbtree.c:197: error: 'struct regmap' has no member named 'debugfs'
> 	drivers/base/regmap/regcache-rbtree.c:197: error: 'rbtree_fops' undeclared (first use in this function)
> 	drivers/base/regmap/regcache-rbtree.c:197: error: (Each undeclared identifier is reported only once
> 	drivers/base/regmap/regcache-rbtree.c:197: error: for each function it appears in.)
> 
> which was introduced by commit
> 
> 	bad2ab4 (regmap: Provide debugfs dump of the rbtree cache data)
> 
> currently in next-20111122.
> 
> Cc: Mark Brown <broonie@...nsource.wolfsonmicro.com>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
> ---
>  drivers/base/regmap/regcache-rbtree.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/base/regmap/regcache-rbtree.c b/drivers/base/regmap/regcache-rbtree.c
> index 7767cbb..270ad65 100644
> --- a/drivers/base/regmap/regcache-rbtree.c
> +++ b/drivers/base/regmap/regcache-rbtree.c
> @@ -194,7 +194,9 @@ static int regcache_rbtree_init(struct regmap *map)
>  			goto err;
>  	}
>  
> +#ifdef CONFIG_DEBUG_FS
>  	debugfs_create_file("rbtree", 0400, map->debugfs, map, &rbtree_fops);
> +#endif

What about introducing a debugfs_create_file() noop if debug-fs is not
compiled in?

Marc

>  
>  	return 0;
>  


-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


Download attachment "signature.asc" of type "application/pgp-signature" (263 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ