public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] Fix show_boot_progress prototype
@ 2008-04-19 15:59 Jean-Christophe PLAGNIOL-VILLARD
  2008-04-19 16:46 ` [U-Boot-Users] [PATCH] image: remove inline for image_print_contents and image_print_contents_noindent Jean-Christophe PLAGNIOL-VILLARD
  2008-04-25  7:16 ` [U-Boot-Users] [PATCH] Fix show_boot_progress prototype Wolfgang Denk
  0 siblings, 2 replies; 5+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2008-04-19 15:59 UTC (permalink / raw)
  To: u-boot

in commit fad634071 "make show_boot_progress () weak."
show_boot_progress is supposed to be declared as weak but declare as inline
instead of.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

diff --git a/include/common.h b/include/common.h
index 8630780..eeb6686 100644
--- a/include/common.h
+++ b/include/common.h
@@ -661,7 +661,7 @@ int	pcmcia_init (void);
 /*
  * Board-specific Platform code can reimplement show_boot_progress () if needed
  */
-void inline show_boot_progress (int val);
+void __attribute__((weak)) show_boot_progress (int val);
 
 #ifdef CONFIG_INIT_CRITICAL
 #error CONFIG_INIT_CRITICAL is deprecated!
-- 
1.5.4.5

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

* [U-Boot-Users] [PATCH] image: remove inline for image_print_contents and image_print_contents_noindent
  2008-04-19 15:59 [U-Boot-Users] [PATCH] Fix show_boot_progress prototype Jean-Christophe PLAGNIOL-VILLARD
@ 2008-04-19 16:46 ` Jean-Christophe PLAGNIOL-VILLARD
  2008-04-20 23:39   ` Wolfgang Denk
  2008-04-21  8:39   ` Bartlomiej Sieka
  2008-04-25  7:16 ` [U-Boot-Users] [PATCH] Fix show_boot_progress prototype Wolfgang Denk
  1 sibling, 2 replies; 5+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2008-04-19 16:46 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

diff --git a/common/image.c b/common/image.c
index d218f2f..ac033df 100644
--- a/common/image.c
+++ b/common/image.c
@@ -366,12 +366,12 @@ static void __image_print_contents (image_header_t *hdr, const char *p)
 	}
 }
 
-inline void image_print_contents (image_header_t *hdr)
+void image_print_contents (image_header_t *hdr)
 {
 	__image_print_contents (hdr, "   ");
 }
 
-inline void image_print_contents_noindent (image_header_t *hdr)
+void image_print_contents_noindent (image_header_t *hdr)
 {
 	__image_print_contents (hdr, "");
 }
diff --git a/include/image.h b/include/image.h
index 60fdb2b..491d1cb 100644
--- a/include/image.h
+++ b/include/image.h
@@ -392,8 +392,8 @@ ulong image_multi_count (image_header_t *hdr);
 void image_multi_getimg (image_header_t *hdr, ulong idx,
 			ulong *data, ulong *len);
 
-inline void image_print_contents (image_header_t *hdr);
-inline void image_print_contents_noindent (image_header_t *hdr);
+void image_print_contents (image_header_t *hdr);
+void image_print_contents_noindent (image_header_t *hdr);
 
 #ifndef USE_HOSTCC
 static inline int image_check_target_arch (image_header_t *hdr)
-- 
1.5.4.5

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

* [U-Boot-Users] [PATCH] image: remove inline for image_print_contents and image_print_contents_noindent
  2008-04-19 16:46 ` [U-Boot-Users] [PATCH] image: remove inline for image_print_contents and image_print_contents_noindent Jean-Christophe PLAGNIOL-VILLARD
@ 2008-04-20 23:39   ` Wolfgang Denk
  2008-04-21  8:39   ` Bartlomiej Sieka
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2008-04-20 23:39 UTC (permalink / raw)
  To: u-boot

In message <1208623614-26957-1-git-send-email-plagnioj@jcrosoft.com> you wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

Would you please explain *why* you are doing this?

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
The so-called "desktop metaphor" of today's workstations  is  instead
an  "airplane-seat"  metaphor.  Anyone who has shuffled a lap full of
papers while seated between two portly passengers will recognize  the
difference -- one can see only a very few things at once.
                                                   - Fred Brooks, Jr.

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

* [U-Boot-Users] [PATCH] image: remove inline for image_print_contents and image_print_contents_noindent
  2008-04-19 16:46 ` [U-Boot-Users] [PATCH] image: remove inline for image_print_contents and image_print_contents_noindent Jean-Christophe PLAGNIOL-VILLARD
  2008-04-20 23:39   ` Wolfgang Denk
@ 2008-04-21  8:39   ` Bartlomiej Sieka
  1 sibling, 0 replies; 5+ messages in thread
From: Bartlomiej Sieka @ 2008-04-21  8:39 UTC (permalink / raw)
  To: u-boot

Jean-Christophe PLAGNIOL-VILLARD wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

Hi Jean-Christophe,

Please have a look at my patch:

Date: Fri, 18 Apr 2008 12:39:23 +0200
Subject: [U-Boot-Users] [PATCH v2] Memory footprint optimizations

It rearranges image printing functions, in particular it removes the
image_print_contents_noindent() function and changes the implementation
of image_print_contents() making it non-inline among other things. So it
seems that your changes will not be necessary eventually (apart from the
rationale for them, which Wolfgang has already asked about).

Regards,
Bartlomiej

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

* [U-Boot-Users] [PATCH] Fix show_boot_progress prototype
  2008-04-19 15:59 [U-Boot-Users] [PATCH] Fix show_boot_progress prototype Jean-Christophe PLAGNIOL-VILLARD
  2008-04-19 16:46 ` [U-Boot-Users] [PATCH] image: remove inline for image_print_contents and image_print_contents_noindent Jean-Christophe PLAGNIOL-VILLARD
@ 2008-04-25  7:16 ` Wolfgang Denk
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2008-04-25  7:16 UTC (permalink / raw)
  To: u-boot

In message <1208620760-23645-1-git-send-email-plagnioj@jcrosoft.com> you wrote:
> in commit fad634071 "make show_boot_progress () weak."
> show_boot_progress is supposed to be declared as weak but declare as inline
> instead of.
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> 
> diff --git a/include/common.h b/include/common.h
> index 8630780..eeb6686 100644

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
"What if" is a trademark of Hewlett Packard, so stop using it in your
sentences without permission, or risk being sued.

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

end of thread, other threads:[~2008-04-25  7:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-19 15:59 [U-Boot-Users] [PATCH] Fix show_boot_progress prototype Jean-Christophe PLAGNIOL-VILLARD
2008-04-19 16:46 ` [U-Boot-Users] [PATCH] image: remove inline for image_print_contents and image_print_contents_noindent Jean-Christophe PLAGNIOL-VILLARD
2008-04-20 23:39   ` Wolfgang Denk
2008-04-21  8:39   ` Bartlomiej Sieka
2008-04-25  7:16 ` [U-Boot-Users] [PATCH] Fix show_boot_progress prototype Wolfgang Denk

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