linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build failure after merge of the mtd-fixes tree
@ 2020-05-17 22:40 Stephen Rothwell
  2020-05-17 23:02 ` Richard Weinberger
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2020-05-17 22:40 UTC (permalink / raw)
  To: Boris Brezillon
  Cc: Linux Next Mailing List, Linux Kernel Mailing List,
	Miquel Raynal, Richard Weinberger

[-- Attachment #1: Type: text/plain, Size: 868 bytes --]

Hi all,

After merging the mtd-fixes tree, today's linux-next build (x86_64
allmodconfig) failed like this:

/home/sfr/next/next/drivers/mtd/nand/spi/core.c: In function 'spinand_init':
/home/sfr/next/next/drivers/mtd/nand/spi/core.c:1093:26: error: 'struct nand_device' has no member named 'ecc'
 1093 |  mtd->ecc_strength = nand->ecc.ctx.conf.strength;
      |                          ^~
/home/sfr/next/next/drivers/mtd/nand/spi/core.c:1094:27: error: 'struct nand_device' has no member named 'ecc'
 1094 |  mtd->ecc_step_size = nand->ecc.ctx.conf.step_size;
      |                           ^~

Caused by commit

  d5baa0ec83de ("mtd: spinand: Propagate ECC information to the MTD structure")

"This fix depends on recent changes and should not be backported as-is." ?

I have reverted that commit for today.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: linux-next: build failure after merge of the mtd-fixes tree
  2020-05-17 22:40 linux-next: build failure after merge of the mtd-fixes tree Stephen Rothwell
@ 2020-05-17 23:02 ` Richard Weinberger
  2020-05-18  7:45   ` Miquel Raynal
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Weinberger @ 2020-05-17 23:02 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Boris Brezillon, Linux Next Mailing List,
	Linux Kernel Mailing List, Miquel Raynal, Richard Weinberger

On Mon, May 18, 2020 at 12:41 AM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Hi all,
>
> After merging the mtd-fixes tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> /home/sfr/next/next/drivers/mtd/nand/spi/core.c: In function 'spinand_init':
> /home/sfr/next/next/drivers/mtd/nand/spi/core.c:1093:26: error: 'struct nand_device' has no member named 'ecc'
>  1093 |  mtd->ecc_strength = nand->ecc.ctx.conf.strength;
>       |                          ^~
> /home/sfr/next/next/drivers/mtd/nand/spi/core.c:1094:27: error: 'struct nand_device' has no member named 'ecc'
>  1094 |  mtd->ecc_step_size = nand->ecc.ctx.conf.step_size;
>       |                           ^~
>
> Caused by commit
>
>   d5baa0ec83de ("mtd: spinand: Propagate ECC information to the MTD structure")
>
> "This fix depends on recent changes and should not be backported as-is." ?

Urgh, yes.
This patch slipped in.

Anyway, Miquel, the ready-to-backport diff would be this?

diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c
index 248c4d7a0cf4..e2c382ffc5b6 100644
--- a/drivers/mtd/nand/spi/core.c
+++ b/drivers/mtd/nand/spi/core.c
@@ -1090,8 +1090,8 @@ static int spinand_init(struct spinand_device *spinand)
        mtd->oobavail = ret;

        /* Propagate ECC information to mtd_info */
-       mtd->ecc_strength = nand->ecc.ctx.conf.strength;
-       mtd->ecc_step_size = nand->ecc.ctx.conf.step_size;
+       mtd->ecc_strength = nand->eccreq.strength;
+       mtd->ecc_step_size = nand->eccreq.step_size;

        return 0;

-- 
Thanks,
//richard

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

* Re: linux-next: build failure after merge of the mtd-fixes tree
  2020-05-17 23:02 ` Richard Weinberger
@ 2020-05-18  7:45   ` Miquel Raynal
  0 siblings, 0 replies; 3+ messages in thread
From: Miquel Raynal @ 2020-05-18  7:45 UTC (permalink / raw)
  To: Richard Weinberger
  Cc: Stephen Rothwell, Boris Brezillon, Linux Next Mailing List,
	Linux Kernel Mailing List, Richard Weinberger

Hi Richard,

Richard Weinberger <richard.weinberger@gmail.com> wrote on Mon, 18 May
2020 01:02:54 +0200:

> On Mon, May 18, 2020 at 12:41 AM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
> > Hi all,
> >
> > After merging the mtd-fixes tree, today's linux-next build (x86_64
> > allmodconfig) failed like this:
> >
> > /home/sfr/next/next/drivers/mtd/nand/spi/core.c: In function 'spinand_init':
> > /home/sfr/next/next/drivers/mtd/nand/spi/core.c:1093:26: error: 'struct nand_device' has no member named 'ecc'
> >  1093 |  mtd->ecc_strength = nand->ecc.ctx.conf.strength;
> >       |                          ^~
> > /home/sfr/next/next/drivers/mtd/nand/spi/core.c:1094:27: error: 'struct nand_device' has no member named 'ecc'
> >  1094 |  mtd->ecc_step_size = nand->ecc.ctx.conf.step_size;
> >       |                           ^~
> >
> > Caused by commit
> >
> >   d5baa0ec83de ("mtd: spinand: Propagate ECC information to the MTD structure")
> >
> > "This fix depends on recent changes and should not be backported as-is." ?  
> 
> Urgh, yes.
> This patch slipped in.
> 
> Anyway, Miquel, the ready-to-backport diff would be this?
> 
> diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c
> index 248c4d7a0cf4..e2c382ffc5b6 100644
> --- a/drivers/mtd/nand/spi/core.c
> +++ b/drivers/mtd/nand/spi/core.c
> @@ -1090,8 +1090,8 @@ static int spinand_init(struct spinand_device *spinand)
>         mtd->oobavail = ret;
> 
>         /* Propagate ECC information to mtd_info */
> -       mtd->ecc_strength = nand->ecc.ctx.conf.strength;
> -       mtd->ecc_step_size = nand->ecc.ctx.conf.step_size;
> +       mtd->ecc_strength = nand->eccreq.strength;
> +       mtd->ecc_step_size = nand->eccreq.step_size;

Indeed, sorry for the confusion, this is fine.

Thanks,
Miquèl

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

end of thread, other threads:[~2020-05-18  7:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-17 22:40 linux-next: build failure after merge of the mtd-fixes tree Stephen Rothwell
2020-05-17 23:02 ` Richard Weinberger
2020-05-18  7:45   ` Miquel Raynal

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).