public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging/lustre: fix Kconfig bool defaults
@ 2013-07-22 16:41 Peng Tao
  2013-07-22 17:33 ` Sam Ravnborg
  0 siblings, 1 reply; 3+ messages in thread
From: Peng Tao @ 2013-07-22 16:41 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: linux-kernel, Paul Bolle, Peng Tao, Andreas Dilger, Peng Tao

Should be y/n instead of true/false...

Reported-by: Paul Bolle <pebolle@tiscali.nl>
Cc: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Peng Tao <tao.peng@emc.com>
---
This applis on top of the 48 Intel tree ported patches.

 drivers/staging/lustre/lustre/Kconfig |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/lustre/lustre/Kconfig b/drivers/staging/lustre/lustre/Kconfig
index 566d89d..d80a78f 100644
--- a/drivers/staging/lustre/lustre/Kconfig
+++ b/drivers/staging/lustre/lustre/Kconfig
@@ -50,7 +50,7 @@ config LUSTRE_OBD_MAX_IOCTL_BUFFER
 config LUSTRE_DEBUG_LU_REF_CHECK
 	bool "Enable Lustre DEBUG object refcount checks"
 	depends on LUSTRE_FS
-	default false
+	default n
 	help
 	  This option is mainly for debug purpose. It enables Lustre code to track
 	  references between objects.
@@ -60,7 +60,7 @@ config LUSTRE_DEBUG_LU_REF_CHECK
 config LUSTRE_DEBUG_EXPENSIVE_CHECK
 	bool "Enable Lustre DEBUG checks"
 	depends on LUSTRE_FS
-	default false
+	default n
 	help
 	  This option is mainly for debug purpose. It enables Lustre code to do
 	  expensive checks that may have a performance impact.
@@ -70,4 +70,4 @@ config LUSTRE_DEBUG_EXPENSIVE_CHECK
 config LUSTRE_TRANSLATE_ERRNOS
 	bool
 	depends on LUSTRE_FS && !X86
-	default true
+	default y
-- 
1.7.9.5


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

* Re: [PATCH] staging/lustre: fix Kconfig bool defaults
  2013-07-22 16:41 [PATCH] staging/lustre: fix Kconfig bool defaults Peng Tao
@ 2013-07-22 17:33 ` Sam Ravnborg
  2013-07-23 20:50   ` Greg Kroah-Hartman
  0 siblings, 1 reply; 3+ messages in thread
From: Sam Ravnborg @ 2013-07-22 17:33 UTC (permalink / raw)
  To: Peng Tao
  Cc: Greg Kroah-Hartman, linux-kernel, Paul Bolle, Andreas Dilger,
	Peng Tao

On Tue, Jul 23, 2013 at 12:41:30AM +0800, Peng Tao wrote:
> Should be y/n instead of true/false...
> 
> Reported-by: Paul Bolle <pebolle@tiscali.nl>
> Cc: Andreas Dilger <andreas.dilger@intel.com>
> Signed-off-by: Peng Tao <tao.peng@emc.com>

default n is the default.
So usually we advice to drop this.

	Sam


> ---
> This applis on top of the 48 Intel tree ported patches.
> 
>  drivers/staging/lustre/lustre/Kconfig |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/staging/lustre/lustre/Kconfig b/drivers/staging/lustre/lustre/Kconfig
> index 566d89d..d80a78f 100644
> --- a/drivers/staging/lustre/lustre/Kconfig
> +++ b/drivers/staging/lustre/lustre/Kconfig
> @@ -50,7 +50,7 @@ config LUSTRE_OBD_MAX_IOCTL_BUFFER
>  config LUSTRE_DEBUG_LU_REF_CHECK
>  	bool "Enable Lustre DEBUG object refcount checks"
>  	depends on LUSTRE_FS
> -	default false
> +	default n
>  	help
>  	  This option is mainly for debug purpose. It enables Lustre code to track
>  	  references between objects.
> @@ -60,7 +60,7 @@ config LUSTRE_DEBUG_LU_REF_CHECK
>  config LUSTRE_DEBUG_EXPENSIVE_CHECK
>  	bool "Enable Lustre DEBUG checks"
>  	depends on LUSTRE_FS
> -	default false
> +	default n
>  	help
>  	  This option is mainly for debug purpose. It enables Lustre code to do
>  	  expensive checks that may have a performance impact.
> @@ -70,4 +70,4 @@ config LUSTRE_DEBUG_EXPENSIVE_CHECK
>  config LUSTRE_TRANSLATE_ERRNOS
>  	bool
>  	depends on LUSTRE_FS && !X86
> -	default true
> +	default y
> -- 
> 1.7.9.5
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

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

* Re: [PATCH] staging/lustre: fix Kconfig bool defaults
  2013-07-22 17:33 ` Sam Ravnborg
@ 2013-07-23 20:50   ` Greg Kroah-Hartman
  0 siblings, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2013-07-23 20:50 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Peng Tao, linux-kernel, Paul Bolle, Andreas Dilger, Peng Tao

On Mon, Jul 22, 2013 at 07:33:33PM +0200, Sam Ravnborg wrote:
> On Tue, Jul 23, 2013 at 12:41:30AM +0800, Peng Tao wrote:
> > Should be y/n instead of true/false...
> > 
> > Reported-by: Paul Bolle <pebolle@tiscali.nl>
> > Cc: Andreas Dilger <andreas.dilger@intel.com>
> > Signed-off-by: Peng Tao <tao.peng@emc.com>
> 
> default n is the default.
> So usually we advice to drop this.

I agree, just delete the lines, no need to be explicit with the default.

thanks,

greg k-h

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

end of thread, other threads:[~2013-07-23 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-22 16:41 [PATCH] staging/lustre: fix Kconfig bool defaults Peng Tao
2013-07-22 17:33 ` Sam Ravnborg
2013-07-23 20:50   ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox