From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751433AbcGNP7B (ORCPT ); Thu, 14 Jul 2016 11:59:01 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:36021 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751141AbcGNP66 (ORCPT ); Thu, 14 Jul 2016 11:58:58 -0400 Date: Thu, 14 Jul 2016 08:58:49 -0700 From: Brian Norris To: Arnd Bergmann Cc: Teresa Remmet , Boris Brezillon , Richard Weinberger , David Woodhouse , Roger Quadros , Tony Lindgren , "Cooper Jr., Franklin" , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: nand: omap2: add missing braces Message-ID: <20160714155849.GA120073@google.com> References: <20160714095416.739127-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160714095416.739127-1-arnd@arndb.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 14, 2016 at 11:53:48AM +0200, Arnd Bergmann wrote: > A bug fix just introduced incorrect behavior in the omap2 nand driver, as > found by gcc-6.1: > > drivers/mtd/nand/omap2.c: In function 'omap_get_dt_info': > drivers/mtd/nand/omap2.c:1658:2: error: this 'if' clause does not guard... [-Werror=misleading-indentation] > if (!info->elm_of_node) > ^~ > drivers/mtd/nand/omap2.c:1660:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' > if (!info->elm_of_node) > ^~ > > We clearly need to put the indented code into { } braces to get the intended > behavior. > > Signed-off-by: Arnd Bergmann > Fixes: 3bbca2c54f86 ("mtd: nand: omap2: Add check for old elm binding") Wow, can't believe I missed that. Squashed into the original patch. Thanks, Brian