Skip to contentSkip to conversation

fastboot: nand: fix compile error

PATCH New Peng Fan 2 participants 3 messages Jun 20, 2016

lore
Share & tools
lore

Peng Fan

author
#0 lore raw

PATCH 1/1 fastboot: nand: fix compile error

Error info "
common/fb_nand.c: In function 'fb_nand_lookup':
common/fb_nand.c:65:3: error: 'mtd' undeclared (first use in this function)

  *mtd = nand_info[dev->id->num];
     ^

"

Correct fb_nand_lookup parameter name to fix this issue.

Cc Maxime Ripard <[email protected]>
Cc Scott Wood <[email protected]>
Cc Tom Rini <[email protected]>
---
 common/fb_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/fb_nand.c +1 -1
index e55ea38..ae34f48 100644
@@ -34,7 +34,7 @@ __weak int board_fastboot_write_partition_setup(char *name)
 }
 
 static int fb_nand_lookup(const char *partname, char *response,
-			  struct mtd_info **nand,
+			  struct mtd_info **mtd,
 			  struct part_info **part)
 {
 	struct mtd_device *dev;
Signature · 1 line
2.6.2
#1 lore raw

PATCH 1/1 fastboot: nand: fix compile error

Quoted 9 lines · Peng Fan

Error info "
common/fb_nand.c: In function 'fb_nand_lookup':
common/fb_nand.c:65:3: error: 'mtd' undeclared (first use in this function)

  *mtd = nand_info[dev->id->num];
     ^

"

Correct fb_nand_lookup parameter name to fix this issue.

Quoted 7 lines
Cc Maxime Ripard <[email protected]>
Cc Scott Wood <[email protected]>
Cc Tom Rini <[email protected]>
---
 common/fb_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

I've already received and applied a patch for this.

-Scott

author
#2 lore raw

PATCH 1/1 fastboot: nand: fix compile error

Hi Scott,

Quoted 18 lines · Scott Wood
Quoted 9 lines · Peng Fan

Error info "
common/fb_nand.c: In function 'fb_nand_lookup':
common/fb_nand.c:65:3: error: 'mtd' undeclared (first use in this function)

  *mtd = nand_info[dev->id->num];
     ^

"

Correct fb_nand_lookup parameter name to fix this issue.

Quoted 7 lines
Cc Maxime Ripard <[email protected]>
Cc Scott Wood <[email protected]>
Cc Tom Rini <[email protected]>
---
 common/fb_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 1 line

I've already received and applied a patch for this.

I worked this patch based on upstream tree and not checked your tree.

Drop this patch, since there is already a fix.

Thanks,
Peng.

Quoted 3 lines

-Scott