* [PATCH] mtd: ndfc: fix typo in structure dereference
@ 2011-11-22 4:39 Tony Breeds
2011-11-22 8:56 ` Dmitry Eremin-Solenikov
2011-11-22 21:42 ` Artem Bityutskiy
0 siblings, 2 replies; 4+ messages in thread
From: Tony Breeds @ 2011-11-22 4:39 UTC (permalink / raw)
To: David Woodhouse, linux-mtd; +Cc: Dmitry Eremin-Solenikov
[-- Attachment #1: Type: text/plain, Size: 989 bytes --]
In commit 9d7948c50055e74b693ce9e99a709b2e5bbc1942 (mtd: ndfc: use
ofpart through generic parsing) we dereference a non pointer type
causing the following compiler error:
drivers/mtd/nand/ndfc.c: In function 'ndfc_chip_init':
drivers/mtd/nand/ndfc.c:191: error: invalid type argument of '->' (have 'struct mtd_part_parser_data')
Fix that.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
---
drivers/mtd/nand/ndfc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c
index ee17139..f8aacf4 100644
--- a/drivers/mtd/nand/ndfc.c
+++ b/drivers/mtd/nand/ndfc.c
@@ -188,7 +188,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc,
if (!flash_np)
return -ENODEV;
- ppdata->of_node = flash_np;
+ ppdata.of_node = flash_np;
ndfc->mtd.name = kasprintf(GFP_KERNEL, "%s.%s",
dev_name(&ndfc->ofdev->dev), flash_np->name);
if (!ndfc->mtd.name) {
--
1.7.6.4
Yours Tony
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] mtd: ndfc: fix typo in structure dereference
2011-11-22 4:39 [PATCH] mtd: ndfc: fix typo in structure dereference Tony Breeds
@ 2011-11-22 8:56 ` Dmitry Eremin-Solenikov
2011-11-22 21:37 ` Tony Breeds
2011-11-22 21:42 ` Artem Bityutskiy
1 sibling, 1 reply; 4+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-11-22 8:56 UTC (permalink / raw)
To: Tony Breeds; +Cc: linux-mtd, David Woodhouse
On 11/22/11, Tony Breeds <tony@bakeyournoodle.com> wrote:
> In commit 9d7948c50055e74b693ce9e99a709b2e5bbc1942 (mtd: ndfc: use
> ofpart through generic parsing) we dereference a non pointer type
> causing the following compiler error:
> drivers/mtd/nand/ndfc.c: In function 'ndfc_chip_init':
> drivers/mtd/nand/ndfc.c:191: error: invalid type argument of '->' (have
> 'struct mtd_part_parser_data')
>
> Fix that.
>
> Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Acked-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Sometimes I wander about this serie. I tried to test most
of the combinations, I could test at that momemt. The patches
were split in simple chunks to simplify review and testing. They
waited in linux-next for 2 or 3 releases. And I still see problems
with those patches.
> ---
> drivers/mtd/nand/ndfc.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c
> index ee17139..f8aacf4 100644
> --- a/drivers/mtd/nand/ndfc.c
> +++ b/drivers/mtd/nand/ndfc.c
> @@ -188,7 +188,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc,
> if (!flash_np)
> return -ENODEV;
>
> - ppdata->of_node = flash_np;
> + ppdata.of_node = flash_np;
> ndfc->mtd.name = kasprintf(GFP_KERNEL, "%s.%s",
> dev_name(&ndfc->ofdev->dev), flash_np->name);
> if (!ndfc->mtd.name) {
> --
> 1.7.6.4
>
> Yours Tony
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mtd: ndfc: fix typo in structure dereference
2011-11-22 8:56 ` Dmitry Eremin-Solenikov
@ 2011-11-22 21:37 ` Tony Breeds
0 siblings, 0 replies; 4+ messages in thread
From: Tony Breeds @ 2011-11-22 21:37 UTC (permalink / raw)
To: Dmitry Eremin-Solenikov; +Cc: linux-mtd, David Woodhouse
[-- Attachment #1: Type: text/plain, Size: 1278 bytes --]
On Tue, Nov 22, 2011 at 12:56:43PM +0400, Dmitry Eremin-Solenikov wrote:
> On 11/22/11, Tony Breeds <tony@bakeyournoodle.com> wrote:
> > In commit 9d7948c50055e74b693ce9e99a709b2e5bbc1942 (mtd: ndfc: use
> > ofpart through generic parsing) we dereference a non pointer type
> > causing the following compiler error:
> > drivers/mtd/nand/ndfc.c: In function 'ndfc_chip_init':
> > drivers/mtd/nand/ndfc.c:191: error: invalid type argument of '->' (have
> > 'struct mtd_part_parser_data')
> >
> > Fix that.
> >
> > Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
>
> Acked-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Thanks.
> Sometimes I wander about this serie. I tried to test most
> of the combinations, I could test at that momemt. The patches
> were split in simple chunks to simplify review and testing. They
> waited in linux-next for 2 or 3 releases. And I still see problems
> with those patches.
I actually found the problem in linux-next sometime ago, and I swear I
posted this patch but clearly I didn't.
linux-next is a great tool but even linux-next doesn't test all the
defconfigs in the kernel and therefore misses some code.
I'll talk to Stephen about adding something that will run over this
code.
Yours Tony
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mtd: ndfc: fix typo in structure dereference
2011-11-22 4:39 [PATCH] mtd: ndfc: fix typo in structure dereference Tony Breeds
2011-11-22 8:56 ` Dmitry Eremin-Solenikov
@ 2011-11-22 21:42 ` Artem Bityutskiy
1 sibling, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2011-11-22 21:42 UTC (permalink / raw)
To: Tony Breeds, David Woodhouse; +Cc: Dmitry Eremin-Solenikov, linux-mtd
On Tue, 2011-11-22 at 15:39 +1100, Tony Breeds wrote:
> In commit 9d7948c50055e74b693ce9e99a709b2e5bbc1942 (mtd: ndfc: use
> ofpart through generic parsing) we dereference a non pointer type
> causing the following compiler error:
> drivers/mtd/nand/ndfc.c: In function 'ndfc_chip_init':
> drivers/mtd/nand/ndfc.c:191: error: invalid type argument of '->' (have 'struct mtd_part_parser_data')
>
> Fix that.
>
> Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Pushed to l2-mtd-2.6.git, thanks.
This has to be sent to Linus this release cycle.
Artem.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-22 21:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-22 4:39 [PATCH] mtd: ndfc: fix typo in structure dereference Tony Breeds
2011-11-22 8:56 ` Dmitry Eremin-Solenikov
2011-11-22 21:37 ` Tony Breeds
2011-11-22 21:42 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox