From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.bootlin.com ([62.4.15.54]:37483 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728134AbeIQR7a (ORCPT ); Mon, 17 Sep 2018 13:59:30 -0400 Date: Mon, 17 Sep 2018 14:32:11 +0200 From: Boris Brezillon To: Miquel Raynal Cc: Richard Weinberger , stable@vger.kernel.org, Marek Vasut , linux-mtd@lists.infradead.org, Brian Norris , David Woodhouse Subject: Re: [PATCH] mtd: rawnand: marvell: prevent harmless warnings Message-ID: <20180917143211.7e615d69@bbrezillon> In-Reply-To: <20180910151523.38a59b68@xps13> References: <20180907142954.13299-1-miquel.raynal@bootlin.com> <20180910145744.4a73b068@bbrezillon> <20180910151523.38a59b68@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: On Mon, 10 Sep 2018 15:15:23 +0200 Miquel Raynal wrote: > Hi Boris, > > Boris Brezillon wrote on Mon, 10 Sep 2018 > 14:57:44 +0200: > > > On Fri, 7 Sep 2018 16:29:54 +0200 > > Miquel Raynal wrote: > > > > > Since the addition of WARN_ON() in nand_subop_get_data/addr_len() > > > helpers, this driver will produce harmless warnings (mostly at probe) > > > just because it always called the *_data_len() helper in the parsing > > > > ^calls > > > > > function (even on non-data instructions, where this value is > > > meaningless and unneeded. > > > > ^ missing ')' > > > > > > > > Fix these warnings by deriving the length only when it is relevant. > > > > > > Fixes: 760c435e0f85 ("mtd: rawnand: make subop helpers return unsigned values") > > > Cc: stable@vger.kernel.org > > > > You can drop the above line this 760c435e0f85 was merged in 4.19-rc1. > > > > If you're okay with these changes, no need to send a new version, I'll > > fix it when applying. > > Sure, you can apply, thanks for fixing it. Queued to master. Thanks, Boris