mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] arm: eukrea: Fix compilation warning.
@ 2011-05-02 19:52 Marek Belisko
  2011-05-02 19:52 ` [PATCH 2/3] arm: karo-tx25: " Marek Belisko
  2011-05-02 19:52 ` [PATCH 3/3] scripts: " Marek Belisko
  0 siblings, 2 replies; 3+ messages in thread
From: Marek Belisko @ 2011-05-02 19:52 UTC (permalink / raw)
  To: barebox; +Cc: Marek Belisko

Fix following warning:
arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c: In function 'eukrea_cpuimx35_devices_init':
arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c:176:15: warning: unused variable 'tmp'

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
 arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c b/arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c
index 73bb2e1..f0eb088 100644
--- a/arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c
+++ b/arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c
@@ -173,8 +173,6 @@ postcore_initcall(eukrea_cpuimx35_mmu_init);
 
 static int eukrea_cpuimx35_devices_init(void)
 {
-	unsigned int tmp;
-
 	imx35_add_nand(&nand_info);
 
 	devfs_add_partition("nand0", 0x00000, 0x40000, PARTITION_FIXED, "self_raw");
-- 
1.7.4.1


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

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

* [PATCH 2/3] arm: karo-tx25: Fix compilation warning.
  2011-05-02 19:52 [PATCH 1/3] arm: eukrea: Fix compilation warning Marek Belisko
@ 2011-05-02 19:52 ` Marek Belisko
  2011-05-02 19:52 ` [PATCH 3/3] scripts: " Marek Belisko
  1 sibling, 0 replies; 3+ messages in thread
From: Marek Belisko @ 2011-05-02 19:52 UTC (permalink / raw)
  To: barebox; +Cc: Marek Belisko

Fix following warning:
arch/arm/boards/karo-tx25/lowlevel.c: In function 'board_init_lowlevel':
arch/arm/boards/karo-tx25/lowlevel.c:75:6: warning: unused variable 'i'

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
 arch/arm/boards/karo-tx25/lowlevel.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/arm/boards/karo-tx25/lowlevel.c b/arch/arm/boards/karo-tx25/lowlevel.c
index 86319d7..868ba08 100644
--- a/arch/arm/boards/karo-tx25/lowlevel.c
+++ b/arch/arm/boards/karo-tx25/lowlevel.c
@@ -72,7 +72,6 @@ static inline void __bare_init  setup_sdram(uint32_t base, uint32_t esdctl,
 void __bare_init __naked board_init_lowlevel(void)
 {
 	uint32_t r;
-	int i;
 #ifdef CONFIG_NAND_IMX_BOOT
 	unsigned int *trg, *src;
 #endif
-- 
1.7.4.1


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

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

* [PATCH 3/3] scripts: Fix compilation warning.
  2011-05-02 19:52 [PATCH 1/3] arm: eukrea: Fix compilation warning Marek Belisko
  2011-05-02 19:52 ` [PATCH 2/3] arm: karo-tx25: " Marek Belisko
@ 2011-05-02 19:52 ` Marek Belisko
  1 sibling, 0 replies; 3+ messages in thread
From: Marek Belisko @ 2011-05-02 19:52 UTC (permalink / raw)
  To: barebox; +Cc: Marek Belisko

Fix following warning:
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:81:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result

Solution overtaken from kernel tree.

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
 scripts/kallsyms.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index 1f11d84..b3591a9 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -76,10 +76,8 @@ static int read_symbol(FILE *in, struct sym_entry *s)
 
 	rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, str);
 	if (rc != 3) {
-		if (rc != EOF) {
-			/* skip line */
-			fgets(str, 500, in);
-		}
+		if (rc != EOF && fgets(str, 500, in) == NULL)
+			fprintf(stderr, "Read error or end of file.\n");
 		return -1;
 	}
 
-- 
1.7.4.1


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

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

end of thread, other threads:[~2011-05-02 19:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-02 19:52 [PATCH 1/3] arm: eukrea: Fix compilation warning Marek Belisko
2011-05-02 19:52 ` [PATCH 2/3] arm: karo-tx25: " Marek Belisko
2011-05-02 19:52 ` [PATCH 3/3] scripts: " Marek Belisko

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