From: Rob Herring Date: Mon, 3 Feb 2014 14:53:44 +0000 (-0600) Subject: of: restructure for_each macros to fix compile warnings X-Git-Tag: v3.14-rc3~33^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=662372e42e46d9bbfcb83e1cce81f6b33cebaddd;p=pandora-kernel.git 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 Cc: David Howells Signed-off-by: Rob Herring Acked-by: Grant Likely --- Reading git-diff-tree failed