Skip to contentSkip to conversation

of: make __of_attach_node() static

PATCH In review [email protected] 2 participants 2 messages Jun 21, 2017 – Jun 22, 2017 Device tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of: make __of_attach_node() static

From: Frank Rowand <frank.rowand-7U/[email protected]>

__of_attach_node() is not used outside of drivers/of/dynamic.c. Make it static and remove it from drivers/of/of_private.h.

---
 drivers/of/dynamic.c    | 2 +-
 drivers/of/of_private.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/of/dynamic.c +1 -1
index 888fdbc09992..0542cf8b6e3d 100644
@@ -216,7 +216,7 @@ int of_property_notify(int action, struct device_node *np,
 	return of_reconfig_notify(action, &pr);
 }
 
-void __of_attach_node(struct device_node *np)
+static void __of_attach_node(struct device_node *np)
 {
 	const __be32 *phandle;
 	int sz;
drivers/of/of_private.h +0 -1
index 4ebb0149d118..dd535365b5d2 100644
@@ -90,7 +90,6 @@ extern int __of_update_property(struct device_node *np,
 extern void __of_update_property_sysfs(struct device_node *np,
 		struct property *newprop, struct property *oldprop);
 
-extern void __of_attach_node(struct device_node *np);
 extern int __of_attach_node_sysfs(struct device_node *np);
 extern void __of_detach_node(struct device_node *np);
 extern void __of_detach_node_sysfs(struct device_node *np);
Signature · 6 lines
Frank Rowand <frank.rowand-7U/[email protected]>

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer
#1 lore raw
Quoted 10 lines · On Wed, Jun 21, 2017 at 12:16:38PM -0700…

From: Frank Rowand <frank.rowand-7U/[email protected]>

__of_attach_node() is not used outside of drivers/of/dynamic.c. Make it static and remove it from drivers/of/of_private.h.

---
 drivers/of/dynamic.c    | 2 +-
 drivers/of/of_private.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

Applied.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html