Skip to contentSkip to conversation

linux-next: build failure after merge of the devicetree tree

PATCH Stephen Rothwell 2 participants 2 messages May 26, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Grant,

After merging the devicetree tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

drivers/of/base.c: In function 'of_update_property':
drivers/of/base.c:1906:10: error: 'found' undeclared (first use in this function)

   return found ? 0 : -ENODEV;
          ^

Caused by a bad automatic merge resolution between commits 582da6527da3 ("of: make of_update_property() usable earlier in the boot process") (merged into Linus' tree between v3.15-rc4 and rc5) and 947fdaad0627 ("of: fix race between search and remove in of_update_property()") from the devicetree tree.

I have added the following merge fix patch:

From: Stephen Rothwell <[email protected]>
Date: Mon, 26 May 2014 14:50:40 +1000
Subject: [PATCH] of: fix bad merge of drivers/of/base.c

---
 drivers/of/base.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/of/base.c +0 -4
index 395ee2b3146d..03e7fc6c93e8 100644
@@ -1901,10 +1901,6 @@ int of_update_property(struct device_node *np, struct property *newprop)
 	if (!of_kset)
 		return 0;
 
-	/* At early boot, bail out and defer setup to of_init() */
-	if (!of_kset)
-		return found ? 0 : -ENODEV;
-
 	/* Update the sysfs attribute */
 	if (oldprop)
 		sysfs_remove_bin_file(&np->kobj, &oldprop->attr);
Signature · 5 lines
2.0.0.rc4

-- 
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw

Dear Stephen Rothwell,

drivers/of/base.c int of_update_property(struct device_node *np, struct property *newprop) · line 1907

Quoted 12 lines · Stephen Rothwell
drivers/of/base.c +0 -4
index 395ee2b3146d..03e7fc6c93e8 100644
@@ -1901,10 +1901,6 @@ int of_update_property(struct device_node *np, struct property *newprop)
 	if (!of_kset)
 		return 0;
 
-	/* At early boot, bail out and defer setup to of_init() */
-	if (!of_kset)
-		return found ? 0 : -ENODEV;
-

Seems like this is in fact reverting my change entirely, so maybe Grant should drop my patch instead?

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com