public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] [trivial] env: remove value from boolean defines
@ 2011-12-25 11:42 Igor Grinberg
  2011-12-25 23:34 ` Marek Vasut
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Igor Grinberg @ 2011-12-25 11:42 UTC (permalink / raw)
  To: u-boot

Several boolean defines have a value assigned.
Remove the value as defining the symbol is enough.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
---
 include/environment.h |    8 ++++----
 tools/envcrc.c        |    6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/environment.h b/include/environment.h
index 3c145af..1ef44f3 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -22,7 +22,7 @@
  */
 
 #ifndef _ENVIRONMENT_H_
-#define _ENVIRONMENT_H_	1
+#define _ENVIRONMENT_H_
 
 /**************************************************************************
  *
@@ -64,10 +64,10 @@
 # if	(CONFIG_ENV_ADDR >= CONFIG_SYS_MONITOR_BASE) &&		\
 	(CONFIG_ENV_ADDR + CONFIG_ENV_SIZE) <=			\
 	(CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
-#  define ENV_IS_EMBEDDED	1
+#  define ENV_IS_EMBEDDED
 # endif
 # if defined(CONFIG_ENV_ADDR_REDUND) || defined(CONFIG_ENV_OFFSET_REDUND)
-#  define CONFIG_SYS_REDUNDAND_ENVIRONMENT	1
+#  define CONFIG_SYS_REDUNDAND_ENVIRONMENT
 # endif
 # ifdef CONFIG_ENV_IS_EMBEDDED
 #  error "do not define CONFIG_ENV_IS_EMBEDDED in your board config"
@@ -120,7 +120,7 @@ extern unsigned long nand_env_oob_offset;
  * calculated automatically (i.e. NAND), take the board opt-in.
  */
 #if defined(CONFIG_ENV_IS_EMBEDDED) && !defined(ENV_IS_EMBEDDED)
-# define ENV_IS_EMBEDDED 1
+# define ENV_IS_EMBEDDED
 #endif
 
 /* The build system likes to know if the env is embedded */
diff --git a/tools/envcrc.c b/tools/envcrc.c
index 51e3f54..08d2a8f 100644
--- a/tools/envcrc.c
+++ b/tools/envcrc.c
@@ -53,15 +53,15 @@
 # endif
 # if (CONFIG_ENV_ADDR >= CONFIG_SYS_MONITOR_BASE) && \
      ((CONFIG_ENV_ADDR + CONFIG_ENV_SIZE) <= (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN))
-#  define ENV_IS_EMBEDDED	1
+#  define ENV_IS_EMBEDDED
 # endif
 # if defined(CONFIG_ENV_ADDR_REDUND) || defined(CONFIG_ENV_OFFSET_REDUND)
-#  define CONFIG_SYS_REDUNDAND_ENVIRONMENT	1
+#  define CONFIG_SYS_REDUNDAND_ENVIRONMENT
 # endif
 #endif	/* CONFIG_ENV_IS_IN_FLASH */
 
 #if defined(ENV_IS_EMBEDDED) && !defined(CONFIG_BUILD_ENVCRC)
-# define CONFIG_BUILD_ENVCRC 1
+# define CONFIG_BUILD_ENVCRC
 #endif
 
 #ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT
-- 
1.7.3.4

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

* [U-Boot] [PATCH] [trivial] env: remove value from boolean defines
  2011-12-25 11:42 [U-Boot] [PATCH] [trivial] env: remove value from boolean defines Igor Grinberg
@ 2011-12-25 23:34 ` Marek Vasut
  2011-12-26  6:17   ` Igor Grinberg
  2011-12-31 23:05 ` Mike Frysinger
  2012-01-05 15:36 ` Wolfgang Denk
  2 siblings, 1 reply; 8+ messages in thread
From: Marek Vasut @ 2011-12-25 23:34 UTC (permalink / raw)
  To: u-boot

> Several boolean defines have a value assigned.
> Remove the value as defining the symbol is enough.
> 
> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>

I'm fine with this. How did you find it ?

M

> ---
>  include/environment.h |    8 ++++----
>  tools/envcrc.c        |    6 +++---
>  2 files changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/include/environment.h b/include/environment.h
> index 3c145af..1ef44f3 100644
> --- a/include/environment.h
> +++ b/include/environment.h
> @@ -22,7 +22,7 @@
>   */
> 
>  #ifndef _ENVIRONMENT_H_
> -#define _ENVIRONMENT_H_	1
> +#define _ENVIRONMENT_H_
> 
>  /*************************************************************************
> * *
> @@ -64,10 +64,10 @@
>  # if	(CONFIG_ENV_ADDR >= CONFIG_SYS_MONITOR_BASE) &&		\
>  	(CONFIG_ENV_ADDR + CONFIG_ENV_SIZE) <=			\
>  	(CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
> -#  define ENV_IS_EMBEDDED	1
> +#  define ENV_IS_EMBEDDED
>  # endif
>  # if defined(CONFIG_ENV_ADDR_REDUND) || defined(CONFIG_ENV_OFFSET_REDUND)
> -#  define CONFIG_SYS_REDUNDAND_ENVIRONMENT	1
> +#  define CONFIG_SYS_REDUNDAND_ENVIRONMENT
>  # endif
>  # ifdef CONFIG_ENV_IS_EMBEDDED
>  #  error "do not define CONFIG_ENV_IS_EMBEDDED in your board config"
> @@ -120,7 +120,7 @@ extern unsigned long nand_env_oob_offset;
>   * calculated automatically (i.e. NAND), take the board opt-in.
>   */
>  #if defined(CONFIG_ENV_IS_EMBEDDED) && !defined(ENV_IS_EMBEDDED)
> -# define ENV_IS_EMBEDDED 1
> +# define ENV_IS_EMBEDDED
>  #endif
> 
>  /* The build system likes to know if the env is embedded */
> diff --git a/tools/envcrc.c b/tools/envcrc.c
> index 51e3f54..08d2a8f 100644
> --- a/tools/envcrc.c
> +++ b/tools/envcrc.c
> @@ -53,15 +53,15 @@
>  # endif
>  # if (CONFIG_ENV_ADDR >= CONFIG_SYS_MONITOR_BASE) && \
>       ((CONFIG_ENV_ADDR + CONFIG_ENV_SIZE) <= (CONFIG_SYS_MONITOR_BASE +
> CONFIG_SYS_MONITOR_LEN)) -#  define ENV_IS_EMBEDDED	1
> +#  define ENV_IS_EMBEDDED
>  # endif
>  # if defined(CONFIG_ENV_ADDR_REDUND) || defined(CONFIG_ENV_OFFSET_REDUND)
> -#  define CONFIG_SYS_REDUNDAND_ENVIRONMENT	1
> +#  define CONFIG_SYS_REDUNDAND_ENVIRONMENT
>  # endif
>  #endif	/* CONFIG_ENV_IS_IN_FLASH */
> 
>  #if defined(ENV_IS_EMBEDDED) && !defined(CONFIG_BUILD_ENVCRC)
> -# define CONFIG_BUILD_ENVCRC 1
> +# define CONFIG_BUILD_ENVCRC
>  #endif
> 
>  #ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT

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

* [U-Boot] [PATCH] [trivial] env: remove value from boolean defines
  2011-12-25 23:34 ` Marek Vasut
@ 2011-12-26  6:17   ` Igor Grinberg
  2011-12-26 14:17     ` Marek Vasut
  0 siblings, 1 reply; 8+ messages in thread
From: Igor Grinberg @ 2011-12-26  6:17 UTC (permalink / raw)
  To: u-boot

On 12/26/11 01:34, Marek Vasut wrote:
>> Several boolean defines have a value assigned.
>> Remove the value as defining the symbol is enough.
>>
>> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
> 
> I'm fine with this. How did you find it ?

Occasionally...
I told you (at the KS) I'm working on something environment related.
I hope to post it soon (before the end of the merge window).


-- 
Regards,
Igor.

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

* [U-Boot] [PATCH] [trivial] env: remove value from boolean defines
  2011-12-26  6:17   ` Igor Grinberg
@ 2011-12-26 14:17     ` Marek Vasut
  2011-12-26 15:05       ` Igor Grinberg
  0 siblings, 1 reply; 8+ messages in thread
From: Marek Vasut @ 2011-12-26 14:17 UTC (permalink / raw)
  To: u-boot

> On 12/26/11 01:34, Marek Vasut wrote:
> >> Several boolean defines have a value assigned.
> >> Remove the value as defining the symbol is enough.
> >> 
> >> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
> > 
> > I'm fine with this. How did you find it ?
> 
> Occasionally...
> I told you (at the KS) I'm working on something environment related.
> I hope to post it soon (before the end of the merge window).

Ack

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

* [U-Boot] [PATCH] [trivial] env: remove value from boolean defines
  2011-12-26 14:17     ` Marek Vasut
@ 2011-12-26 15:05       ` Igor Grinberg
  2011-12-26 16:16         ` Marek Vasut
  0 siblings, 1 reply; 8+ messages in thread
From: Igor Grinberg @ 2011-12-26 15:05 UTC (permalink / raw)
  To: u-boot

On 12/26/11 16:17, Marek Vasut wrote:
>> On 12/26/11 01:34, Marek Vasut wrote:
>>>> Several boolean defines have a value assigned.
>>>> Remove the value as defining the symbol is enough.
>>>>
>>>> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
>>>
>>> I'm fine with this. How did you find it ?
>>
>> Occasionally...
>> I told you (at the KS) I'm working on something environment related.
>> I hope to post it soon (before the end of the merge window).
> 
> Ack

Want to send a proper Ack, so patchwork will catch it?
Or may be apply to marek.vasut at gmail.com branch of u-boot-staging?
Or may be both...
 

-- 
Regards,
Igor.

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

* [U-Boot] [PATCH] [trivial] env: remove value from boolean defines
  2011-12-26 15:05       ` Igor Grinberg
@ 2011-12-26 16:16         ` Marek Vasut
  0 siblings, 0 replies; 8+ messages in thread
From: Marek Vasut @ 2011-12-26 16:16 UTC (permalink / raw)
  To: u-boot

> On 12/26/11 16:17, Marek Vasut wrote:
> >> On 12/26/11 01:34, Marek Vasut wrote:
> >>>> Several boolean defines have a value assigned.
> >>>> Remove the value as defining the symbol is enough.
> >>>> 
> >>>> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
> >>> 
> >>> I'm fine with this. How did you find it ?
> >> 
> >> Occasionally...
> >> I told you (at the KS) I'm working on something environment related.
> >> I hope to post it soon (before the end of the merge window).
> > 
> > Ack
> 
> Want to send a proper Ack, so patchwork will catch it?
> Or may be apply to marek.vasut at gmail.com branch of u-boot-staging?
> Or may be both...

No, I only acked the explanation, I'd like others to comment on this patch 
before it's actually applied.

But grepping through the tree, I think it won't break anything, so

Acked-by: Marek Vasut <marek.vasut@gmail.com>

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

* [U-Boot] [PATCH] [trivial] env: remove value from boolean defines
  2011-12-25 11:42 [U-Boot] [PATCH] [trivial] env: remove value from boolean defines Igor Grinberg
  2011-12-25 23:34 ` Marek Vasut
@ 2011-12-31 23:05 ` Mike Frysinger
  2012-01-05 15:36 ` Wolfgang Denk
  2 siblings, 0 replies; 8+ messages in thread
From: Mike Frysinger @ 2011-12-31 23:05 UTC (permalink / raw)
  To: u-boot

Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20111231/de585501/attachment.pgp>

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

* [U-Boot] [PATCH] [trivial] env: remove value from boolean defines
  2011-12-25 11:42 [U-Boot] [PATCH] [trivial] env: remove value from boolean defines Igor Grinberg
  2011-12-25 23:34 ` Marek Vasut
  2011-12-31 23:05 ` Mike Frysinger
@ 2012-01-05 15:36 ` Wolfgang Denk
  2 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2012-01-05 15:36 UTC (permalink / raw)
  To: u-boot

Dear Igor Grinberg,

In message <1324813377-16764-1-git-send-email-grinberg@compulab.co.il> you wrote:
> Several boolean defines have a value assigned.
> Remove the value as defining the symbol is enough.
> 
> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
> ---
>  include/environment.h |    8 ++++----
>  tools/envcrc.c        |    6 +++---
>  2 files changed, 7 insertions(+), 7 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Common sense and a sense of humor  are  the  same  thing,  moving  at
different speeds.  A sense of humor is just common sense, dancing.
                                                        - Clive James

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

end of thread, other threads:[~2012-01-05 15:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-25 11:42 [U-Boot] [PATCH] [trivial] env: remove value from boolean defines Igor Grinberg
2011-12-25 23:34 ` Marek Vasut
2011-12-26  6:17   ` Igor Grinberg
2011-12-26 14:17     ` Marek Vasut
2011-12-26 15:05       ` Igor Grinberg
2011-12-26 16:16         ` Marek Vasut
2011-12-31 23:05 ` Mike Frysinger
2012-01-05 15:36 ` Wolfgang Denk

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