Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2519219ybk; Mon, 18 May 2020 00:49:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2bxPKt+hBmb2JRZXRBsn3d/VEH+mGB14TOzvZ8rxRX5jq7B1eBnzhKUb6BQ8Hm6urj4gZ X-Received: by 2002:a17:907:364:: with SMTP id rs4mr13489084ejb.311.1589788184622; Mon, 18 May 2020 00:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589788184; cv=none; d=google.com; s=arc-20160816; b=SoIh9bwAPdQom4Ga2RiGKQVMjNpoKsPo/yK0l7jMLZiyxDAXXVq3jGWmAplBmPYeSO /fv5AdmqBT+V3HUkzo4C6VG65+3IwtkAGcnAUGwtVk91FtvdoxOhcJgHR03DvAV/jc0w BuCcKHLdEaMwBdTMy9VJRn2gHTJdenSuO6wFduufmjhsFKIb473WnJoQFQ1C3gMW82RD w2SU74f8RDG7ML2UQCMrzUSZW8p6Mdxmf7BKeA8tiNGeNbhhQ++dPf2jYWQvhcCpaK20 aMmD5z9rQUbbsxGqIUDpXwlwGGIyxN7Rp8vQMXd17cHFZWqxfHrwprlV5u5to50vIEwb x2JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=T8ipCoJPiNhVXwKFP5EA8gHGW/xYOvygEAX6R87wBb8=; b=PmheuQecFqX8ujmcIf9nF8FdCPEQkFfK0Hb/RcOBmh79FZCNdtjL1YDnCd5cggIXsX tIUCXBWDAcgEjGzb2PEwxlxxKsSdjggZCYv0iT5lNiIyz5xe6Sxw2o0gEM4GIaUnsZl1 G8cLjVrdvmeM2t/bpqOsvpJDVs6XJe0MpBdIGMz5O1efWHEEsbkDKr1f8mvrGYGeQxc7 K3JTo91R5TltBZBKT8TJS/Pdj/L235XauOlhevP61Ehaq0C8PpxC/4Oeag06H8uJnEM0 LI3+Nwh0/tC5/5IYge/r9/MVihtRhWjVT6g7iiRlozwRlakhes0gbvC5xjN1mM1FKrtF dZMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d22si5755346ejj.389.2020.05.18.00.49.21; Mon, 18 May 2020 00:49:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727823AbgERHpZ convert rfc822-to-8bit (ORCPT + 99 others); Mon, 18 May 2020 03:45:25 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:46295 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727017AbgERHpZ (ORCPT ); Mon, 18 May 2020 03:45:25 -0400 Received: from xps13 (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 5BEE524001A; Mon, 18 May 2020 07:45:21 +0000 (UTC) Date: Mon, 18 May 2020 09:45:19 +0200 From: Miquel Raynal To: Richard Weinberger Cc: Stephen Rothwell , Boris Brezillon , Linux Next Mailing List , Linux Kernel Mailing List , Richard Weinberger Subject: Re: linux-next: build failure after merge of the mtd-fixes tree Message-ID: <20200518094519.1e15d108@xps13> In-Reply-To: References: <20200518084021.64cbf411@canb.auug.org.au> Organization: Bootlin X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Richard, Richard Weinberger wrote on Mon, 18 May 2020 01:02:54 +0200: > On Mon, May 18, 2020 at 12:41 AM Stephen Rothwell 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