Re: [PATCH] of: restructure for_each macros to fix compile warnings

2014-02-04 Thread Grant Likely
On Mon, 3 Feb 2014 17:17:04 -0600, Rob Herring wrote: > From: Rob Herring > > Commit 00b2c76a6a "include/linux/of.h: make for_each_child_of_node() > reference its args when CONFIG_OF=n" fixed warnings for unused > variables, but introduced variable "used uninitialized" warnings. > Simply initia

[PATCH] of: restructure for_each macros to fix compile warnings

2014-02-03 Thread Rob Herring
From: Rob Herring Commit 00b2c76a6a "include/linux/of.h: make for_each_child_of_node() reference its args when CONFIG_OF=n" fixed warnings for unused variables, but introduced variable "used uninitialized" warnings. Simply initializing the variables would result in "set but not used" warnings wit