+ include-linux-ofh-make-for_each_child_of_node-reference-its-args-when-config_of=n.patch added to -mm tree
Subject: + include-linux-ofh-make-for_each_child_of_node-reference-its-args-when-config_of=n.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 03 Jan 2014 14:44:13 -0800
The patch titled
Subject: include/linux/of.h: make for_each_child_of_node() reference its args when CONFIG_OF=n
has been added to the -mm tree. Its filename is
include-linux-ofh-make-for_each_child_of_node-reference-its-args-when-config_of=n.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/include-linux-ofh-make-for_each_child_of_node-reference-its-args-when-config_of=n.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/include-linux-ofh-make-for_each_child_of_node-reference-its-args-when-config_of=n.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
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
include-linux-ofh-make-for_each_child_of_node-reference-its-args-when-config_of=n.patch drivers-gpu-drm-gma500-backlightc-fix-a-defined-but-not-used-warning-for-do_gma_backlight_set.patch drivers-mfd-max8998c-fix-pointer-integer-size-mismatch-warning-in-max8998_i2c_get_driver_data.patch drivers-mfd-tps65217c-fix-pointer-integer-size-mismatch-warning-in-tps65217_probe.patch drivers-regulator-tps62360-regulatorc-fix-pointer-integer-size-mismatch-warning-in-tps62360_probe.patch drivers-video-aty-aty128fbc-fix-a-warning-pertaining-to-the-aty128fb-backlight-variable.patch documentation-misc-devices-mei-mei-amt-versionc-remove-unneeded-call-of-mei_deinit.patch lib-assoc_arrayc-remove-global-variable.patch afs-proc-cells-and-rootcell-are-writeable.patch
linux-next.patch
mutex-subsystem-synchro-test-module.patch