diff options
author | Rob Herring <robh@kernel.org> | 2014-02-03 14:53:44 (GMT) |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2014-02-05 15:51:54 (GMT) |
commit | 662372e42e46d9bbfcb83e1cce81f6b33cebaddd (patch) | |
tree | 3bae78a163360b86e61ecd76208d9611b2c1f777 /drivers/of | |
parent | b2d960e4061986c6aab2269103d61e8408dcc71d (diff) | |
download | linux-662372e42e46d9bbfcb83e1cce81f6b33cebaddd.tar.xz |
of: restructure for_each macros to fix compile warnings
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 with W=1.
Fix both types of warnings by making all the for_each macros
unconditional and rely on the dummy static inline functions to
initialize and reference any variables.
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of')
0 files changed, 0 insertions, 0 deletions