include-linux-ofh-make-for_each_child_of_node-reference-its-args-when-config_of=n.patch removed from -mm tree
Subject: [merged] include-linux-ofh-make-for_each_child_of_node-reference-its-args-when-config_of=n.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 24 Jan 2014 11:00:27 -0800
The patch titled
Subject: include/linux/of.h: make for_each_child_of_node() reference its args when CONFIG_OF=n
has been removed from the -mm tree. Its filename was
include-linux-ofh-make-for_each_child_of_node-reference-its-args-when-config_of=n.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: David Howells <[email protected]>
Subject: include/linux/of.h: make for_each_child_of_node() reference its args when CONFIG_OF=n
Make for_each_child_of_node() reference its args when CONFIG_OF=n to avoid warnings like:
drivers/leds/leds-pwm.c:88:22: warning: unused variable 'node' [-Wunused-variable] struct device_node *node = pdev->dev.of_node; ^
---
include/linux/of.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
include/linux/of.h renamed from include/linux/of.h~include-linux-ofh-make-for_each_child_of_node-reference-its-args-when-config_of=n +6 -1
@@ -377,8 +377,13 @@ static inline bool of_have_populated_dt(return false; } +/* Kill an unused variable warning on a device_node pointer */ +static inline void __of_use_dn (const struct device_node *np) +{ +} +#define for_each_child_of_node (parent, child) \ - while (0) + while (__of_use_dn(parent), __of_use_dn(child), 0)#define for_each_available_child_of_node (parent, child) \ while (0)
_
Patches currently in -mm which might be from [email protected] are
origin.patch afs-proc-cells-and-rootcell-are-writeable.patch linux-next.patch mutex-subsystem-synchro-test-module.patch