mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: include some headers from barebox-arm.h
@ 2015-01-13  9:36 Masahiro Yamada
  2015-01-14  6:16 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2015-01-13  9:36 UTC (permalink / raw)
  To: barebox

ENTRY_FUNCTION() references __barebox_arm_head(),
so <asm/barebox-arm-head.h> should be included from barebox-arm.h
to avoid implicit declaration warning/error.

ENTRY_FUNCTION() uses __naked, so <linux/compiler.h> should also be
included.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

 arch/arm/include/asm/barebox-arm.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/include/asm/barebox-arm.h b/arch/arm/include/asm/barebox-arm.h
index 9ad07cb..dbc8aaa 100644
--- a/arch/arm/include/asm/barebox-arm.h
+++ b/arch/arm/include/asm/barebox-arm.h
@@ -29,6 +29,8 @@
 #include <asm-generic/memory_layout.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
+#include <linux/compiler.h>
+#include <asm/barebox-arm-head.h>
 
 /* cpu/.../cpu.c */
 int	cleanup_before_linux(void);
-- 
1.9.1


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

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

* Re: [PATCH] ARM: include some headers from barebox-arm.h
  2015-01-13  9:36 [PATCH] ARM: include some headers from barebox-arm.h Masahiro Yamada
@ 2015-01-14  6:16 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-01-14  6:16 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: barebox

On Tue, Jan 13, 2015 at 06:36:54PM +0900, Masahiro Yamada wrote:
> ENTRY_FUNCTION() references __barebox_arm_head(),
> so <asm/barebox-arm-head.h> should be included from barebox-arm.h
> to avoid implicit declaration warning/error.
> 
> ENTRY_FUNCTION() uses __naked, so <linux/compiler.h> should also be
> included.
> 
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>

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] 2+ messages in thread

end of thread, other threads:[~2015-01-14  6:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-13  9:36 [PATCH] ARM: include some headers from barebox-arm.h Masahiro Yamada
2015-01-14  6:16 ` Sascha Hauer

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