]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/pseries: make pseries_devicetree_update() static
authorNathan Lynch <nathanl@linux.ibm.com>
Mon, 7 Feb 2022 22:12:47 +0000 (16:12 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 12 Feb 2022 11:47:44 +0000 (22:47 +1100)
pseries_devicetree_update() has only one call site, in the same file in
which it is defined. Make it static.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220207221247.354454-1-nathanl@linux.ibm.com
arch/powerpc/include/asm/rtas.h
arch/powerpc/platforms/pseries/mobility.c

index 82e5b055fa2a6ca63d773c2abfffe9bdb4c0d475..00531af17ce05380fd54e91a0586c05f13c6e0f3 100644 (file)
@@ -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
index 85033f392c78a7959aa397903955c36e2e3189a0..94077fa91959de13097712c417a7a68f649d1613 100644 (file)
@@ -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;