All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] fastboot: nand: fix compile error
@ 2016-06-20  7:15 Peng Fan
  2016-06-20  8:17 ` Scott Wood
  0 siblings, 1 reply; 3+ messages in thread
From: Peng Fan @ 2016-06-20  7:15 UTC (permalink / raw)
  To: u-boot

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.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Scott Wood <oss@buserror.net>
Cc: Tom Rini <trini@konsulko.com>
---
 common/fb_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/fb_nand.c b/common/fb_nand.c
index e55ea38..ae34f48 100644
--- a/common/fb_nand.c
+++ b/common/fb_nand.c
@@ -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;
-- 
2.6.2

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

* [U-Boot] [PATCH] fastboot: nand: fix compile error
  2016-06-20  7:15 [U-Boot] [PATCH] fastboot: nand: fix compile error Peng Fan
@ 2016-06-20  8:17 ` Scott Wood
  2016-06-20  8:22   ` Peng Fan
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Wood @ 2016-06-20  8:17 UTC (permalink / raw)
  To: u-boot

On Mon, 2016-06-20 at 15:15 +0800, Peng Fan wrote:
> 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.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
> Cc: Scott Wood <oss@buserror.net>
> Cc: Tom Rini <trini@konsulko.com>
> ---
>  common/fb_nand.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

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

-Scott

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

* [U-Boot] [PATCH] fastboot: nand: fix compile error
  2016-06-20  8:17 ` Scott Wood
@ 2016-06-20  8:22   ` Peng Fan
  0 siblings, 0 replies; 3+ messages in thread
From: Peng Fan @ 2016-06-20  8:22 UTC (permalink / raw)
  To: u-boot

Hi Scott,
On Mon, Jun 20, 2016 at 03:17:11AM -0500, Scott Wood wrote:
>On Mon, 2016-06-20 at 15:15 +0800, Peng Fan wrote:
>> 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.
>> 
>> Signed-off-by: Peng Fan <peng.fan@nxp.com>
>> Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
>> Cc: Scott Wood <oss@buserror.net>
>> Cc: Tom Rini <trini@konsulko.com>
>> ---
>>  common/fb_nand.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>
>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.
>
>-Scott
>

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

end of thread, other threads:[~2016-06-20  8:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-20  7:15 [U-Boot] [PATCH] fastboot: nand: fix compile error Peng Fan
2016-06-20  8:17 ` Scott Wood
2016-06-20  8:22   ` Peng Fan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.