mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] ARM: socfpga: reset-manager: fix Wmissing-prototypes
@ 2019-10-17  6:09 Steffen Trumtrar
  2019-10-17  6:09 ` [PATCH 2/3] ARM: socfpga: clock-manager: " Steffen Trumtrar
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Steffen Trumtrar @ 2019-10-17  6:09 UTC (permalink / raw)
  To: Barebox List

Fix the following warnings

arch/arm/mach-socfpga/arria10-reset-manager.c:152:6: warning: no previous prototype for
'arria10_reset_deassert_shared_peripherals_q1' [-Wmissing-prototypes]
  152 | void arria10_reset_deassert_shared_peripherals_q1(uint32_t *mask0,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm/mach-socfpga/arria10-reset-manager.c:226:6: warning: no previous prototype for
'arria10_reset_deassert_shared_peripherals_q2' [-Wmissing-prototypes]
  226 | void arria10_reset_deassert_shared_peripherals_q2(uint32_t *mask0,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm/mach-socfpga/arria10-reset-manager.c:272:6: warning: no previous prototype for
'arria10_reset_deassert_shared_peripherals_q3' [-Wmissing-prototypes]
  272 | void arria10_reset_deassert_shared_peripherals_q3(uint32_t *mask0,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm/mach-socfpga/arria10-reset-manager.c:329:6: warning: no previous prototype for
'arria10_reset_deassert_shared_peripherals_q4' [-Wmissing-prototypes]
  329 | void arria10_reset_deassert_shared_peripherals_q4(uint32_t *mask0, uint32_t *mask1)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
 arch/arm/mach-socfpga/include/mach/arria10-reset-manager.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mach-socfpga/include/mach/arria10-reset-manager.h b/arch/arm/mach-socfpga/include/mach/arria10-reset-manager.h
index ebd20434263a..2033de77a39f 100644
--- a/arch/arm/mach-socfpga/include/mach/arria10-reset-manager.h
+++ b/arch/arm/mach-socfpga/include/mach/arria10-reset-manager.h
@@ -108,6 +108,10 @@
 void arria10_reset_peripherals(void);
 void arria10_reset_deassert_dedicated_peripherals(void);
 void arria10_reset_deassert_shared_peripherals(void);
+void arria10_reset_deassert_shared_peripherals_q1(uint32_t *mask0, uint32_t *mask1);
+void arria10_reset_deassert_shared_peripherals_q2(uint32_t *mask0, uint32_t *mask1);
+void arria10_reset_deassert_shared_peripherals_q3(uint32_t *mask0, uint32_t *mask1);
+void arria10_reset_deassert_shared_peripherals_q4(uint32_t *mask0, uint32_t *mask1);
 void arria10_reset_deassert_fpga_peripherals(void);
 
 #endif
-- 
2.23.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 2/3] ARM: socfpga: clock-manager: fix Wmissing-prototypes
  2019-10-17  6:09 [PATCH 1/3] ARM: socfpga: reset-manager: fix Wmissing-prototypes Steffen Trumtrar
@ 2019-10-17  6:09 ` Steffen Trumtrar
  2019-10-17  6:09 ` [PATCH 3/3] ARM: socfpga: arria10-xload: " Steffen Trumtrar
  2019-10-18 10:51 ` [PATCH 1/3] ARM: socfpga: reset-manager: " Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Steffen Trumtrar @ 2019-10-17  6:09 UTC (permalink / raw)
  To: Barebox List

Fix the warning

arch/arm/mach-socfpga/arria10-clock-manager.c:113:14: warning: no previous prototype for
'arria10_cm_get_mmc_controller_clk_hz' [-Wmissing-prototypes]
  113 | unsigned int arria10_cm_get_mmc_controller_clk_hz(void)
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
 arch/arm/mach-socfpga/include/mach/arria10-clock-manager.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-socfpga/include/mach/arria10-clock-manager.h b/arch/arm/mach-socfpga/include/mach/arria10-clock-manager.h
index ee2b9b3c5ec1..c0a57439af0d 100644
--- a/arch/arm/mach-socfpga/include/mach/arria10-clock-manager.h
+++ b/arch/arm/mach-socfpga/include/mach/arria10-clock-manager.h
@@ -128,6 +128,7 @@ struct arria10_perpll_cfg {
 
 extern int arria10_cm_basic_init(struct arria10_mainpll_cfg *mainpll_cfg,
 				 struct arria10_perpll_cfg *perpll_cfg);
+unsigned int arria10_cm_get_mmc_controller_clk_hz(void);
 extern unsigned int cm_get_mmc_controller_clk_hz(void);
 extern void arria10_cm_use_intosc(void);
 extern uint32_t cm_l4_main_clk_hz;
-- 
2.23.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 3/3] ARM: socfpga: arria10-xload: fix Wmissing-prototypes
  2019-10-17  6:09 [PATCH 1/3] ARM: socfpga: reset-manager: fix Wmissing-prototypes Steffen Trumtrar
  2019-10-17  6:09 ` [PATCH 2/3] ARM: socfpga: clock-manager: " Steffen Trumtrar
@ 2019-10-17  6:09 ` Steffen Trumtrar
  2019-10-18 10:51 ` [PATCH 1/3] ARM: socfpga: reset-manager: " Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Steffen Trumtrar @ 2019-10-17  6:09 UTC (permalink / raw)
  To: Barebox List

Fix the warning:

arch/arm/mach-socfpga/arria10-xload.c:17:5: warning: no previous prototype for
'a10_update_bits' [-Wmissing-prototypes]
   17 | int a10_update_bits(unsigned int reg, unsigned int mask,
      |     ^~~~~~~~~~~~~~~

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
 arch/arm/mach-socfpga/include/mach/arria10-xload.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-socfpga/include/mach/arria10-xload.h b/arch/arm/mach-socfpga/include/mach/arria10-xload.h
index 71f839736230..7575231bbf34 100644
--- a/arch/arm/mach-socfpga/include/mach/arria10-xload.h
+++ b/arch/arm/mach-socfpga/include/mach/arria10-xload.h
@@ -4,6 +4,7 @@
 void arria10_init_mmc(void);
 int arria10_prepare_mmc(int barebox_part, int rbf_part);
 int arria10_read_blocks(void *dst, int blocknum, size_t len);
+int a10_update_bits(unsigned int reg, unsigned int mask, unsigned int val);
 
 struct partition {
 	uint64_t first_sec;
-- 
2.23.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 1/3] ARM: socfpga: reset-manager: fix Wmissing-prototypes
  2019-10-17  6:09 [PATCH 1/3] ARM: socfpga: reset-manager: fix Wmissing-prototypes Steffen Trumtrar
  2019-10-17  6:09 ` [PATCH 2/3] ARM: socfpga: clock-manager: " Steffen Trumtrar
  2019-10-17  6:09 ` [PATCH 3/3] ARM: socfpga: arria10-xload: " Steffen Trumtrar
@ 2019-10-18 10:51 ` Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2019-10-18 10:51 UTC (permalink / raw)
  To: Steffen Trumtrar; +Cc: Barebox List

On Thu, Oct 17, 2019 at 08:09:26AM +0200, Steffen Trumtrar wrote:
> Fix the following warnings
> 
> arch/arm/mach-socfpga/arria10-reset-manager.c:152:6: warning: no previous prototype for
> 'arria10_reset_deassert_shared_peripherals_q1' [-Wmissing-prototypes]
>   152 | void arria10_reset_deassert_shared_peripherals_q1(uint32_t *mask0,
>       |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> arch/arm/mach-socfpga/arria10-reset-manager.c:226:6: warning: no previous prototype for
> 'arria10_reset_deassert_shared_peripherals_q2' [-Wmissing-prototypes]
>   226 | void arria10_reset_deassert_shared_peripherals_q2(uint32_t *mask0,
>       |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> arch/arm/mach-socfpga/arria10-reset-manager.c:272:6: warning: no previous prototype for
> 'arria10_reset_deassert_shared_peripherals_q3' [-Wmissing-prototypes]
>   272 | void arria10_reset_deassert_shared_peripherals_q3(uint32_t *mask0,
>       |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> arch/arm/mach-socfpga/arria10-reset-manager.c:329:6: warning: no previous prototype for
> 'arria10_reset_deassert_shared_peripherals_q4' [-Wmissing-prototypes]
>   329 | void arria10_reset_deassert_shared_peripherals_q4(uint32_t *mask0, uint32_t *mask1)
>       |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> ---
>  arch/arm/mach-socfpga/include/mach/arria10-reset-manager.h | 4 ++++
>  1 file changed, 4 insertions(+)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-10-18 10:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-17  6:09 [PATCH 1/3] ARM: socfpga: reset-manager: fix Wmissing-prototypes Steffen Trumtrar
2019-10-17  6:09 ` [PATCH 2/3] ARM: socfpga: clock-manager: " Steffen Trumtrar
2019-10-17  6:09 ` [PATCH 3/3] ARM: socfpga: arria10-xload: " Steffen Trumtrar
2019-10-18 10:51 ` [PATCH 1/3] ARM: socfpga: reset-manager: " Sascha Hauer

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