Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1443552
| From | Brian Norris <computersforpeace@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mtd: nand: omap2: add missing braces |
| Date | 2016-07-14 18:00 +0200 |
| Message-ID | <rURdo-389-11@gated-at.bofh.it> (permalink) |
| References | <rULAZ-81N-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 <arnd@arndb.de>
> 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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] mtd: nand: omap2: add missing braces Arnd Bergmann <arnd@arndb.de> - 2016-07-14 12:00 +0200 Re: [PATCH] mtd: nand: omap2: add missing braces Teresa Remmet <t.remmet@phytec.de> - 2016-07-14 15:10 +0200 Re: [PATCH] mtd: nand: omap2: add missing braces Brian Norris <computersforpeace@gmail.com> - 2016-07-14 18:00 +0200
csiph-web