diff mbox series

[02/35] common: Move main_loop() to init.h

Message ID 20191212004755.11091-3-sjg@chromium.org
State Superseded
Delegated to: Tom Rini
Headers show
Series common: Further reduce size of common.h even more | expand

Commit Message

Simon Glass Dec. 12, 2019, 12:47 a.m. UTC
Move this function out of common.h and into a better place.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 common/board_r.c | 1 +
 common/main.c    | 1 +
 include/common.h | 3 ---
 include/init.h   | 7 +++++++
 4 files changed, 9 insertions(+), 3 deletions(-)

Comments

Simon Goldschmidt Dec. 12, 2019, 8:20 a.m. UTC | #1
On Thu, Dec 12, 2019 at 1:48 AM Simon Glass <sjg@chromium.org> wrote:
>
> Move this function out of common.h and into a better place.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>

> ---
>
>  common/board_r.c | 1 +
>  common/main.c    | 1 +
>  include/common.h | 3 ---
>  include/init.h   | 7 +++++++
>  4 files changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/common/board_r.c b/common/board_r.c
> index 5464172259..cda90bd385 100644
> --- a/common/board_r.c
> +++ b/common/board_r.c
> @@ -25,6 +25,7 @@
>  #include <env_internal.h>
>  #include <fdtdec.h>
>  #include <ide.h>
> +#include <init.h>
>  #include <initcall.h>
>  #if defined(CONFIG_CMD_KGDB)
>  #include <kgdb.h>
> diff --git a/common/main.c b/common/main.c
> index a94df7ae04..ec8994ad45 100644
> --- a/common/main.c
> +++ b/common/main.c
> @@ -12,6 +12,7 @@
>  #include <command.h>
>  #include <console.h>
>  #include <env.h>
> +#include <init.h>
>  #include <version.h>
>
>  /*
> diff --git a/include/common.h b/include/common.h
> index fecfa27747..f1a3d32547 100644
> --- a/include/common.h
> +++ b/include/common.h
> @@ -64,9 +64,6 @@ void  hang            (void) __attribute__ ((noreturn));
>
>  #include <display_options.h>
>
> -/* common/main.c */
> -void   main_loop       (void);
> -
>  int checkflash(void);
>  int checkdram(void);
>  extern u8 __dtb_dt_begin[];    /* embedded device tree blob */
> diff --git a/include/init.h b/include/init.h
> index 8b65b2afe4..105afc6c3c 100644
> --- a/include/init.h
> +++ b/include/init.h
> @@ -210,6 +210,13 @@ void pci_init_board(void);
>
>  void trap_init(unsigned long reloc_addr);
>
> +/**
> + * main_loop() - Enter the main loop of U-Boot
> + *
> + * This normally runs the command line.
> + */
> +void main_loop(void);
> +
>  #endif /* __ASSEMBLY__ */
>  /* Put only stuff here that the assembler can digest */
>
> --
> 2.24.0.525.g8f36a354ae-goog
>
Simon Goldschmidt Dec. 12, 2019, 8:32 a.m. UTC | #2
Kind of off-topic, but Boris's address at Bootlin doesn't exist anymore and I
keep getting mail delivery error responses.

Do we have any kind of marking such addresses as "don't use" to patman so this
won't happen in the future?

Regards,
Simon

On Thu, Dec 12, 2019 at 1:48 AM Simon Glass <sjg@chromium.org> wrote:
>
> Move this function out of common.h and into a better place.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>  common/board_r.c | 1 +
>  common/main.c    | 1 +
>  include/common.h | 3 ---
>  include/init.h   | 7 +++++++
>  4 files changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/common/board_r.c b/common/board_r.c
> index 5464172259..cda90bd385 100644
> --- a/common/board_r.c
> +++ b/common/board_r.c
> @@ -25,6 +25,7 @@
>  #include <env_internal.h>
>  #include <fdtdec.h>
>  #include <ide.h>
> +#include <init.h>
>  #include <initcall.h>
>  #if defined(CONFIG_CMD_KGDB)
>  #include <kgdb.h>
> diff --git a/common/main.c b/common/main.c
> index a94df7ae04..ec8994ad45 100644
> --- a/common/main.c
> +++ b/common/main.c
> @@ -12,6 +12,7 @@
>  #include <command.h>
>  #include <console.h>
>  #include <env.h>
> +#include <init.h>
>  #include <version.h>
>
>  /*
> diff --git a/include/common.h b/include/common.h
> index fecfa27747..f1a3d32547 100644
> --- a/include/common.h
> +++ b/include/common.h
> @@ -64,9 +64,6 @@ void  hang            (void) __attribute__ ((noreturn));
>
>  #include <display_options.h>
>
> -/* common/main.c */
> -void   main_loop       (void);
> -
>  int checkflash(void);
>  int checkdram(void);
>  extern u8 __dtb_dt_begin[];    /* embedded device tree blob */
> diff --git a/include/init.h b/include/init.h
> index 8b65b2afe4..105afc6c3c 100644
> --- a/include/init.h
> +++ b/include/init.h
> @@ -210,6 +210,13 @@ void pci_init_board(void);
>
>  void trap_init(unsigned long reloc_addr);
>
> +/**
> + * main_loop() - Enter the main loop of U-Boot
> + *
> + * This normally runs the command line.
> + */
> +void main_loop(void);
> +
>  #endif /* __ASSEMBLY__ */
>  /* Put only stuff here that the assembler can digest */
>
> --
> 2.24.0.525.g8f36a354ae-goog
>
Heinrich Schuchardt Dec. 12, 2019, 9 a.m. UTC | #3
On 12/12/19 9:32 AM, Simon Goldschmidt wrote:
> Kind of off-topic, but Boris's address at Bootlin doesn't exist anymore and I
> keep getting mail delivery error responses.
>
> Do we have any kind of marking such addresses as "don't use" to patman so this
> won't happen in the future?

File .mailmap could be used to map to Boris's new mail address.

Linux's .mailmap has these entries:

Boris Brezillon <bbrezillon@kernel.org> <boris.brezillon@bootlin.com>
Boris Brezillon <bbrezillon@kernel.org> <boris.brezillon@free-electrons.com>
Boris Brezillon <bbrezillon@kernel.org> <b.brezillon.dev@gmail.com>
Boris Brezillon <bbrezillon@kernel.org> <b.brezillon@overkiz.com>

since patch 7677ea0e8843e1a45e35253c0c5e22db11a99a62.

@Boris
Will it be ok for you if we also route U-Boot mails to your kernel.org
address?

Best regards

Heinrich
Boris Brezillon Dec. 12, 2019, 9:51 a.m. UTC | #4
On Thu, 12 Dec 2019 10:00:06 +0100
Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:

> On 12/12/19 9:32 AM, Simon Goldschmidt wrote:
> > Kind of off-topic, but Boris's address at Bootlin doesn't exist anymore and I
> > keep getting mail delivery error responses.
> >
> > Do we have any kind of marking such addresses as "don't use" to patman so this
> > won't happen in the future?  
> 
> File .mailmap could be used to map to Boris's new mail address.
> 
> Linux's .mailmap has these entries:
> 
> Boris Brezillon <bbrezillon@kernel.org> <boris.brezillon@bootlin.com>
> Boris Brezillon <bbrezillon@kernel.org> <boris.brezillon@free-electrons.com>
> Boris Brezillon <bbrezillon@kernel.org> <b.brezillon.dev@gmail.com>
> Boris Brezillon <bbrezillon@kernel.org> <b.brezillon@overkiz.com>
> 
> since patch 7677ea0e8843e1a45e35253c0c5e22db11a99a62.
> 
> @Boris
> Will it be ok for you if we also route U-Boot mails to your kernel.org
> address?

Sure, no problem.
Simon Glass Dec. 27, 2019, 4:42 p.m. UTC | #5
Hi Simon,

On Thu, 12 Dec 2019 at 01:33, Simon Goldschmidt
<simon.k.r.goldschmidt@gmail.com> wrote:
>
> Kind of off-topic, but Boris's address at Bootlin doesn't exist anymore and I
> keep getting mail delivery error responses.
>
> Do we have any kind of marking such addresses as "don't use" to patman so this
> won't happen in the future?

Patman does support a [bounces] section in ~/.patman. See patman docs.

Undocumented, doc/bounces should do what you want. If you add it there
then hopefully it will fix it for everyone.

Regards,
Simon
diff mbox series

Patch

diff --git a/common/board_r.c b/common/board_r.c
index 5464172259..cda90bd385 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -25,6 +25,7 @@ 
 #include <env_internal.h>
 #include <fdtdec.h>
 #include <ide.h>
+#include <init.h>
 #include <initcall.h>
 #if defined(CONFIG_CMD_KGDB)
 #include <kgdb.h>
diff --git a/common/main.c b/common/main.c
index a94df7ae04..ec8994ad45 100644
--- a/common/main.c
+++ b/common/main.c
@@ -12,6 +12,7 @@ 
 #include <command.h>
 #include <console.h>
 #include <env.h>
+#include <init.h>
 #include <version.h>
 
 /*
diff --git a/include/common.h b/include/common.h
index fecfa27747..f1a3d32547 100644
--- a/include/common.h
+++ b/include/common.h
@@ -64,9 +64,6 @@  void	hang		(void) __attribute__ ((noreturn));
 
 #include <display_options.h>
 
-/* common/main.c */
-void	main_loop	(void);
-
 int checkflash(void);
 int checkdram(void);
 extern u8 __dtb_dt_begin[];	/* embedded device tree blob */
diff --git a/include/init.h b/include/init.h
index 8b65b2afe4..105afc6c3c 100644
--- a/include/init.h
+++ b/include/init.h
@@ -210,6 +210,13 @@  void pci_init_board(void);
 
 void trap_init(unsigned long reloc_addr);
 
+/**
+ * main_loop() - Enter the main loop of U-Boot
+ *
+ * This normally runs the command line.
+ */
+void main_loop(void);
+
 #endif	/* __ASSEMBLY__ */
 /* Put only stuff here that the assembler can digest */