mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 08/11] ARM: PXA: Provide prototype for pxa_clear_reset_source()
Date: Mon, 18 Mar 2019 10:14:51 +0100	[thread overview]
Message-ID: <20190318091454.11386-9-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20190318091454.11386-1-s.hauer@pengutronix.de>

Move pxa_clear_reset_source() declaration to a header file where the
file implementing it can see it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/mach-pxa/common.c                | 2 --
 arch/arm/mach-pxa/include/mach/hardware.h | 4 ++++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-pxa/common.c b/arch/arm/mach-pxa/common.c
index c0281d69ef..f2648f4687 100644
--- a/arch/arm/mach-pxa/common.c
+++ b/arch/arm/mach-pxa/common.c
@@ -29,8 +29,6 @@
 #define OWER_WME	(1 << 0)	/* Watch-dog Match Enable */
 #define OSSR_M3		(1 << 3)	/* Match status channel 3 */
 
-extern void pxa_clear_reset_source(void);
-
 static void __noreturn pxa_restart_soc(struct restart_handler *rst)
 {
 	/* Clear last reset source */
diff --git a/arch/arm/mach-pxa/include/mach/hardware.h b/arch/arm/mach-pxa/include/mach/hardware.h
index 902d11ddfc..d968a11880 100644
--- a/arch/arm/mach-pxa/include/mach/hardware.h
+++ b/arch/arm/mach-pxa/include/mach/hardware.h
@@ -46,6 +46,10 @@
 
 #ifdef __ASSEMBLY__
 #define __REG(x) (x)
+#else
+
+void pxa_clear_reset_source(void);
+
 #endif
 
 #endif	/* !__MACH_HARDWARE_H */
-- 
2.20.1


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

  parent reply	other threads:[~2019-03-18  9:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-18  9:14 [PATCH 00/11] Fix -Wmissing-prototypes warnings Sascha Hauer
2019-03-18  9:14 ` [PATCH 01/11] ARM: semihosting: Fix function prototype Sascha Hauer
2019-03-18  9:14 ` [PATCH 02/11] treewide: Make locally used functions static Sascha Hauer
2019-03-18  9:14 ` [PATCH 03/11] treewide: Add missing includes Sascha Hauer
2019-03-18  9:14 ` [PATCH 04/11] ARM: i.MX: external-nand-boot: remove unused i.MX21 entry Sascha Hauer
2019-03-18  9:14 ` [PATCH 05/11] ARM: boards: Harmonize barebox_arm_reset_vector() prototype Sascha Hauer
2019-03-18 10:31   ` Roland Hieber
2019-03-18 10:41     ` Sascha Hauer
2019-03-18  9:14 ` [PATCH 06/11] ARM: sha256: Remove unused functions Sascha Hauer
2019-03-18  9:14 ` [PATCH 07/11] ARM: sha256: Remove unused header file Sascha Hauer
2019-03-18  9:14 ` Sascha Hauer [this message]
2019-03-18  9:14 ` [PATCH 09/11] bus: mvebu-mbus: Add missing whitespace Sascha Hauer
2019-03-18  9:14 ` [PATCH 10/11] mfd: twl-core: Add missing prototype for twlcore_get() Sascha Hauer
2019-03-18  9:14 ` [PATCH 11/11] fs: squashfs: Remove unused function Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190318091454.11386-9-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox