Skip to contentSkip to conversation

sparc: Kill exports of prom internal functions

PATCH Applied Julian Calaby 2 participants 2 messages Jan 8, 2009 – Jan 9, 2009 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH v2 4/5 sparc: Kill exports of prom internal functions

sparc: Kill exports of prom internal functions

__prom_getchild() and __prom_getsibling() are not used anywhere, so don't export them.

---
 arch/sparc/include/asm/oplib_32.h |   11 -----------
 arch/sparc/include/asm/oplib_64.h |   10 ----------
 arch/sparc/prom/tree_32.c         |    2 --
 arch/sparc/prom/tree_64.c         |    2 --
 4 files changed, 0 insertions(+), 25 deletions(-)
arch/sparc/include/asm/oplib_32.h +0 -11
index 73d4552..33e31ce 100644
@@ -177,17 +177,6 @@ extern void prom_putsegment(int context, unsigned long virt_addr,
 
 /* PROM device tree traversal functions... */
 
-#ifdef PROMLIB_INTERNAL
-
-/* Internal version of prom_getchild. */
-extern int __prom_getchild(int parent_node);
-
-/* Internal version of prom_getsibling. */
-extern int __prom_getsibling(int node);
-
-#endif
-
-
 /* Get the child node of the given node, or zero if no child exists. */
 extern int prom_getchild(int parent_node);
 
arch/sparc/include/asm/oplib_64.h +0 -10
index 6d2c2ca..a5db031 100644
@@ -218,16 +218,6 @@ extern void prom_unmap(unsigned long size, unsigned long vaddr);
 
 /* PROM device tree traversal functions... */
 
-#ifdef PROMLIB_INTERNAL
-
-/* Internal version of prom_getchild. */
-extern int __prom_getchild(int parent_node);
-
-/* Internal version of prom_getsibling. */
-extern int __prom_getsibling(int node);
-
-#endif
-
 /* Get the child node of the given node, or zero if no child exists. */
 extern int prom_getchild(int parent_node);
 
arch/sparc/prom/tree_32.c +0 -2
index 9d9965c..431e04c 100644
@@ -34,7 +34,6 @@ int __prom_getchild(int node)
 
 	return cnode;
 }
-EXPORT_SYMBOL(__prom_getchild);
 
 /* Return the child of node 'node' or zero if no this node has no
  * direct descendent.
@@ -67,7 +66,6 @@ int __prom_getsibling(int node)
 
 	return cnode;
 }
-EXPORT_SYMBOL(__prom_getsibling);
 
 /* Return the next sibling of node 'node' or zero if no more siblings
  * at this level of depth in the tree.
arch/sparc/prom/tree_64.c +0 -2
index 175c709..8ea73dd 100644
@@ -23,7 +23,6 @@ inline int __prom_getchild(int node)
 {
 	return p1275_cmd ("child", P1275_INOUT(1, 1), node);
 }
-EXPORT_SYMBOL(__prom_getchild);
 
 inline int prom_getchild(int node)
 {
@@ -53,7 +52,6 @@ inline int __prom_getsibling(int node)
 {
 	return p1275_cmd(prom_peer_name, P1275_INOUT(1, 1), node);
 }
-EXPORT_SYMBOL(__prom_getsibling);
 
 inline int prom_getsibling(int node)
 {