Skip to contentSkip to conversation

linux-next: build failure after merge of the mtd-fixes tree

DISCUSSION Stephen Rothwell 3 participants 3 messages May 17, 2020 – May 18, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 14 lines · Stephen Rothwell

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;
| ^~

Quoted 5 lines

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?

drivers/mtd/nand/spi/core.c +2 -2
index 248c4d7a0cf4..e2c382ffc5b6 100644
@@ -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;
 
Signature · 2 lines
Thanks,
//richard
maintainer
#2 lore raw

Hi Richard,

Richard Weinberger <[email protected]> wrote on Mon, 18 May 2020 01:02:54 +0200:

Quoted 31 lines · Stephen Rothwell
Quoted 14 lines

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;
| ^~

Quoted 5 lines

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?

drivers/mtd/nand/spi/core.c +0 -0
index 248c4d7a0cf4..e2c382ffc5b6 100644

drivers/mtd/nand/spi/core.c static int spinand_init(struct spinand_device *spinand) · line 1094

Quoted 7 lines
drivers/mtd/nand/spi/core.c +2 -2
@@ -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