* [PATCH] fix build warnings
@ 2013-01-26 11:23 Sascha Hauer
2013-01-26 11:23 ` [PATCH 1/3] ARM bcm2835: Fix noreturn function does return Sascha Hauer
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Sascha Hauer @ 2013-01-26 11:23 UTC (permalink / raw)
To: barebox
These are some fixes for build warnings.
Sascha
----------------------------------------------------------------
Sascha Hauer (3):
ARM bcm2835: Fix noreturn function does return
ARM: Fix reassigning symbols in defconfigs
pbl string: Fix no previous prototype warnings
arch/arm/configs/at91sam9n12ek_defconfig | 1 -
arch/arm/configs/eukrea_cpuimx51_defconfig | 1 -
arch/arm/configs/pcm027_defconfig | 1 -
arch/arm/mach-bcm2835/core.c | 2 ++
pbl/string.c | 10 ++--------
5 files changed, 4 insertions(+), 11 deletions(-)
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] ARM bcm2835: Fix noreturn function does return
2013-01-26 11:23 [PATCH] fix build warnings Sascha Hauer
@ 2013-01-26 11:23 ` Sascha Hauer
2013-01-26 11:23 ` [PATCH 2/3] ARM: Fix reassigning symbols in defconfigs Sascha Hauer
2013-01-26 11:23 ` [PATCH 3/3] pbl string: Fix no previous prototype warnings Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2013-01-26 11:23 UTC (permalink / raw)
To: barebox
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/mach-bcm2835/core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-bcm2835/core.c b/arch/arm/mach-bcm2835/core.c
index b0fec8b..f44ecd5 100644
--- a/arch/arm/mach-bcm2835/core.c
+++ b/arch/arm/mach-bcm2835/core.c
@@ -97,5 +97,7 @@ void __noreturn reset_cpu (unsigned long addr)
rstc |= PM_RSTC_WRCFG_FULL_RESET;
writel(PM_PASSWORD | RESET_TIMEOUT, PM_WDOG);
writel(PM_PASSWORD | rstc, PM_RSTC);
+
+ while (1);
}
EXPORT_SYMBOL(reset_cpu);
--
1.7.10.4
_______________________________________________
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: Fix reassigning symbols in defconfigs
2013-01-26 11:23 [PATCH] fix build warnings Sascha Hauer
2013-01-26 11:23 ` [PATCH 1/3] ARM bcm2835: Fix noreturn function does return Sascha Hauer
@ 2013-01-26 11:23 ` Sascha Hauer
2013-01-26 11:23 ` [PATCH 3/3] pbl string: Fix no previous prototype warnings Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2013-01-26 11:23 UTC (permalink / raw)
To: barebox
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/configs/at91sam9n12ek_defconfig | 1 -
arch/arm/configs/eukrea_cpuimx51_defconfig | 1 -
arch/arm/configs/pcm027_defconfig | 1 -
3 files changed, 3 deletions(-)
diff --git a/arch/arm/configs/at91sam9n12ek_defconfig b/arch/arm/configs/at91sam9n12ek_defconfig
index d46a9bd..3e25c8f 100644
--- a/arch/arm/configs/at91sam9n12ek_defconfig
+++ b/arch/arm/configs/at91sam9n12ek_defconfig
@@ -6,7 +6,6 @@ CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
CONFIG_PBL_IMAGE=y
CONFIG_MMU=y
CONFIG_TEXT_BASE=0x26f00000
-CONFIG_BAREBOX_MAX_IMAGE_SIZE=0x40000
CONFIG_EXPERIMENTAL=y
CONFIG_MALLOC_TLSF=y
CONFIG_PROMPT="9G20-EK:"
diff --git a/arch/arm/configs/eukrea_cpuimx51_defconfig b/arch/arm/configs/eukrea_cpuimx51_defconfig
index e4ec7b0..3f5d817 100644
--- a/arch/arm/configs/eukrea_cpuimx51_defconfig
+++ b/arch/arm/configs/eukrea_cpuimx51_defconfig
@@ -50,7 +50,6 @@ CONFIG_NET_DHCP=y
CONFIG_NET_NFS=y
CONFIG_NET_PING=y
CONFIG_CMD_TFTP=y
-CONFIG_FS_TFTP=y
CONFIG_NET_NETCONSOLE=y
CONFIG_NET_RESOLV=y
CONFIG_DRIVER_NET_FEC_IMX=y
diff --git a/arch/arm/configs/pcm027_defconfig b/arch/arm/configs/pcm027_defconfig
index e08955b..ac9269d 100644
--- a/arch/arm/configs/pcm027_defconfig
+++ b/arch/arm/configs/pcm027_defconfig
@@ -57,5 +57,4 @@ CONFIG_DRIVER_NET_SMC91111=y
CONFIG_DRIVER_CFI=y
CONFIG_VIDEO=y
CONFIG_DRIVER_VIDEO_PXA=y
-CONFIG_FS_TFTP=y
CONFIG_LZO_DECOMPRESS=y
--
1.7.10.4
_______________________________________________
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] pbl string: Fix no previous prototype warnings
2013-01-26 11:23 [PATCH] fix build warnings Sascha Hauer
2013-01-26 11:23 ` [PATCH 1/3] ARM bcm2835: Fix noreturn function does return Sascha Hauer
2013-01-26 11:23 ` [PATCH 2/3] ARM: Fix reassigning symbols in defconfigs Sascha Hauer
@ 2013-01-26 11:23 ` Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2013-01-26 11:23 UTC (permalink / raw)
To: barebox
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
pbl/string.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/pbl/string.c b/pbl/string.c
index 6787e82..b773f5c 100644
--- a/pbl/string.c
+++ b/pbl/string.c
@@ -5,6 +5,7 @@
*/
#include <linux/types.h>
+#include <linux/string.h>
void *memcpy(void *__dest, __const void *__src, size_t __n)
{
@@ -103,7 +104,7 @@ void *memchr(const void *s, int c, size_t count)
return NULL;
}
-char *strchr(const char *s, int c)
+char *_strchr(const char *s, int c)
{
while (*s != (char)c)
if (*s++ == '\0')
@@ -111,8 +112,6 @@ char *strchr(const char *s, int c)
return (char *)s;
}
-#undef memset
-
void *memset(void *s, int c, size_t count)
{
char *xs = s;
@@ -120,8 +119,3 @@ void *memset(void *s, int c, size_t count)
*xs++ = c;
return s;
}
-
-void __memzero(void *s, size_t count)
-{
- memset(s, 0, count);
-}
--
1.7.10.4
_______________________________________________
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:[~2013-01-26 11:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-26 11:23 [PATCH] fix build warnings Sascha Hauer
2013-01-26 11:23 ` [PATCH 1/3] ARM bcm2835: Fix noreturn function does return Sascha Hauer
2013-01-26 11:23 ` [PATCH 2/3] ARM: Fix reassigning symbols in defconfigs Sascha Hauer
2013-01-26 11:23 ` [PATCH 3/3] pbl string: Fix no previous prototype warnings Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox