Skip to contentSkip to conversation

powerpc/pseries: make pseries_devicetree_update() static

PATCH Applied Nathan Lynch 3 participants 3 messages Feb 7, 2022 – Feb 16, 2022 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/pseries: make pseries_devicetree_update() static

pseries_devicetree_update() has only one call site, in the same file in which it is defined. Make it static.

---
 arch/powerpc/include/asm/rtas.h           | 1 -
 arch/powerpc/platforms/pseries/mobility.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
arch/powerpc/include/asm/rtas.h +0 -1
index 82e5b055fa2a..00531af17ce0 100644
@@ -274,7 +274,6 @@ extern void pSeries_log_error(char *buf, unsigned int err_type, int fatal);
 #ifdef CONFIG_PPC_PSERIES
 extern time64_t last_rtas_event;
 extern int clobbering_unread_rtas_event(void);
-extern int pseries_devicetree_update(s32 scope);
 extern void post_mobility_fixup(void);
 int rtas_syscall_dispatch_ibm_suspend_me(u64 handle);
 #else
arch/powerpc/platforms/pseries/mobility.c +1 -1
index 85033f392c78..94077fa91959 100644
@@ -265,7 +265,7 @@ static int add_dt_node(struct device_node *parent_dn, __be32 drc_index)
 	return rc;
 }
 
-int pseries_devicetree_update(s32 scope)
+static int pseries_devicetree_update(s32 scope)
 {
 	char *rtas_buf;
 	__be32 *data;
Signature · 1 line
2.34.1