* [PATCH for 2.6.28] NAND: fsl_upm: fix build problem with 2.6.28-rc2
@ 2008-11-26 16:38 Anton Vorontsov
2008-12-03 15:47 ` Kumar Gala
0 siblings, 1 reply; 4+ messages in thread
From: Anton Vorontsov @ 2008-11-26 16:38 UTC (permalink / raw)
To: David Woodhouse, Andrew Morton; +Cc: linuxppc-dev, linux-mtd, linux-kernel
From: Wolfgang Grandegger <wg@grandegger.com>
The patch fixes following build error:
CC drivers/mtd/nand/fsl_upm.o
drivers/mtd/nand/fsl_upm.c: In function 'fun_chip_init':
drivers/mtd/nand/fsl_upm.c:168: warning: passing argument 2 of 'of_mtd_parse_partitions' from incompatible pointer type
drivers/mtd/nand/fsl_upm.c:168: warning: passing argument 3 of 'of_mtd_parse_partitions' from incompatible pointer type
drivers/mtd/nand/fsl_upm.c:168: error: too many arguments to function 'of_mtd_parse_partitions'
make[1]: *** [drivers/mtd/nand/fsl_upm.o] Error 1
The breakage was introduced in 69fd3a8d098faf41a04930afa83757c0555ee360
("[MTD] remove unused mtd parameter in of_mtd_parse_partitions()").
While at it, also add a check for the of_mtd_parse_partitions() return
value.
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
---
drivers/mtd/nand/fsl_upm.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c
index 024e3ff..a83192f 100644
--- a/drivers/mtd/nand/fsl_upm.c
+++ b/drivers/mtd/nand/fsl_upm.c
@@ -163,9 +163,11 @@ static int __devinit fun_chip_init(struct fsl_upm_nand *fun,
ret = parse_mtd_partitions(&fun->mtd, part_types, &fun->parts, 0);
#ifdef CONFIG_MTD_OF_PARTS
- if (ret == 0)
- ret = of_mtd_parse_partitions(fun->dev, &fun->mtd,
- flash_np, &fun->parts);
+ if (ret == 0) {
+ ret = of_mtd_parse_partitions(fun->dev, flash_np, &fun->parts);
+ if (ret < 0)
+ goto err;
+ }
#endif
if (ret > 0)
ret = add_mtd_partitions(&fun->mtd, fun->parts, ret);
--
1.5.6.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH for 2.6.28] NAND: fsl_upm: fix build problem with 2.6.28-rc2
2008-11-26 16:38 [PATCH for 2.6.28] NAND: fsl_upm: fix build problem with 2.6.28-rc2 Anton Vorontsov
@ 2008-12-03 15:47 ` Kumar Gala
2008-12-03 16:27 ` Anton Vorontsov
0 siblings, 1 reply; 4+ messages in thread
From: Kumar Gala @ 2008-12-03 15:47 UTC (permalink / raw)
To: David Woodhouse
Cc: linux-kernel Kernel, linux-ppc list, linux-mtd, Andrew Morton
On Nov 26, 2008, at 10:38 AM, Anton Vorontsov wrote:
> From: Wolfgang Grandegger <wg@grandegger.com>
>
> The patch fixes following build error:
>
> CC drivers/mtd/nand/fsl_upm.o
> drivers/mtd/nand/fsl_upm.c: In function 'fun_chip_init':
> drivers/mtd/nand/fsl_upm.c:168: warning: passing argument 2 of
> 'of_mtd_parse_partitions' from incompatible pointer type
> drivers/mtd/nand/fsl_upm.c:168: warning: passing argument 3 of
> 'of_mtd_parse_partitions' from incompatible pointer type
> drivers/mtd/nand/fsl_upm.c:168: error: too many arguments to
> function 'of_mtd_parse_partitions'
> make[1]: *** [drivers/mtd/nand/fsl_upm.o] Error 1
>
> The breakage was introduced in
> 69fd3a8d098faf41a04930afa83757c0555ee360
> ("[MTD] remove unused mtd parameter in of_mtd_parse_partitions()").
>
> While at it, also add a check for the of_mtd_parse_partitions() return
> value.
>
> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
> ---
> drivers/mtd/nand/fsl_upm.c | 8 +++++---
> 1 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c
> index 024e3ff..a83192f 100644
> --- a/drivers/mtd/nand/fsl_upm.c
> +++ b/drivers/mtd/nand/fsl_upm.c
> @@ -163,9 +163,11 @@ static int __devinit fun_chip_init(struct
> fsl_upm_nand *fun,
> ret = parse_mtd_partitions(&fun->mtd, part_types, &fun->parts, 0);
>
> #ifdef CONFIG_MTD_OF_PARTS
> - if (ret == 0)
> - ret = of_mtd_parse_partitions(fun->dev, &fun->mtd,
> - flash_np, &fun->parts);
> + if (ret == 0) {
> + ret = of_mtd_parse_partitions(fun->dev, flash_np, &fun->parts);
> + if (ret < 0)
> + goto err;
> + }
> #endif
> if (ret > 0)
> ret = add_mtd_partitions(&fun->mtd, fun->parts, ret);
> --
> 1.5.6.5
David,
what's going on with this patch?
- k
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-
> kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH for 2.6.28] NAND: fsl_upm: fix build problem with 2.6.28-rc2
2008-12-03 15:47 ` Kumar Gala
@ 2008-12-03 16:27 ` Anton Vorontsov
2008-12-03 16:43 ` Kumar Gala
0 siblings, 1 reply; 4+ messages in thread
From: Anton Vorontsov @ 2008-12-03 16:27 UTC (permalink / raw)
To: Kumar Gala
Cc: linux-kernel Kernel, linux-ppc list, linux-mtd, Andrew Morton,
David Woodhouse
On Wed, Dec 03, 2008 at 09:47:53AM -0600, Kumar Gala wrote:
[...]
>> The patch fixes following build error:
>>
>> CC drivers/mtd/nand/fsl_upm.o
>> drivers/mtd/nand/fsl_upm.c: In function 'fun_chip_init':
>> drivers/mtd/nand/fsl_upm.c:168: warning: passing argument 2 of
>> 'of_mtd_parse_partitions' from incompatible pointer type
>> drivers/mtd/nand/fsl_upm.c:168: warning: passing argument 3 of
>> 'of_mtd_parse_partitions' from incompatible pointer type
>> drivers/mtd/nand/fsl_upm.c:168: error: too many arguments to function
>> 'of_mtd_parse_partitions'
>> make[1]: *** [drivers/mtd/nand/fsl_upm.o] Error 1
>>
>> The breakage was introduced in
>> 69fd3a8d098faf41a04930afa83757c0555ee360
>> ("[MTD] remove unused mtd parameter in of_mtd_parse_partitions()").
>>
>> While at it, also add a check for the of_mtd_parse_partitions() return
>> value.
>>
>> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
>> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
[...]
> David,
>
> what's going on with this patch?
Recently I got email from Andrew's patch tracking system that
the patch was merged into subsystem tree. Here it is:
http://git.infradead.org/mtd-2.6.git?a=commitdiff;h=29b65861fbece04cfdf3fee352d5247369131850
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH for 2.6.28] NAND: fsl_upm: fix build problem with 2.6.28-rc2
2008-12-03 16:27 ` Anton Vorontsov
@ 2008-12-03 16:43 ` Kumar Gala
0 siblings, 0 replies; 4+ messages in thread
From: Kumar Gala @ 2008-12-03 16:43 UTC (permalink / raw)
To: avorontsov
Cc: linux-kernel Kernel, linux-ppc list, linux-mtd, Andrew Morton,
David Woodhouse
On Dec 3, 2008, at 10:27 AM, Anton Vorontsov wrote:
> On Wed, Dec 03, 2008 at 09:47:53AM -0600, Kumar Gala wrote:
> [...]
>>> The patch fixes following build error:
>>>
>>> CC drivers/mtd/nand/fsl_upm.o
>>> drivers/mtd/nand/fsl_upm.c: In function 'fun_chip_init':
>>> drivers/mtd/nand/fsl_upm.c:168: warning: passing argument 2 of
>>> 'of_mtd_parse_partitions' from incompatible pointer type
>>> drivers/mtd/nand/fsl_upm.c:168: warning: passing argument 3 of
>>> 'of_mtd_parse_partitions' from incompatible pointer type
>>> drivers/mtd/nand/fsl_upm.c:168: error: too many arguments to
>>> function
>>> 'of_mtd_parse_partitions'
>>> make[1]: *** [drivers/mtd/nand/fsl_upm.o] Error 1
>>>
>>> The breakage was introduced in
>>> 69fd3a8d098faf41a04930afa83757c0555ee360
>>> ("[MTD] remove unused mtd parameter in of_mtd_parse_partitions()").
>>>
>>> While at it, also add a check for the of_mtd_parse_partitions()
>>> return
>>> value.
>>>
>>> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
>>> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
> [...]
>> David,
>>
>> what's going on with this patch?
>
> Recently I got email from Andrew's patch tracking system that
> the patch was merged into subsystem tree. Here it is:
>
> http://git.infradead.org/mtd-2.6.git?a=commitdiff;h=29b65861fbece04cfdf3fee352d5247369131850
is it going into 2.6.28 or waiting for .29?
- k
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-12-03 16:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-26 16:38 [PATCH for 2.6.28] NAND: fsl_upm: fix build problem with 2.6.28-rc2 Anton Vorontsov
2008-12-03 15:47 ` Kumar Gala
2008-12-03 16:27 ` Anton Vorontsov
2008-12-03 16:43 ` Kumar Gala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).