Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

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

authored by

Nathan Lynch and committed by
Michael Ellerman
92e6dc25 692b21d7

+1 -2
-1
arch/powerpc/include/asm/rtas.h
··· 274 274 #ifdef CONFIG_PPC_PSERIES 275 275 extern time64_t last_rtas_event; 276 276 extern int clobbering_unread_rtas_event(void); 277 - extern int pseries_devicetree_update(s32 scope); 278 277 extern void post_mobility_fixup(void); 279 278 int rtas_syscall_dispatch_ibm_suspend_me(u64 handle); 280 279 #else
+1 -1
arch/powerpc/platforms/pseries/mobility.c
··· 265 265 return rc; 266 266 } 267 267 268 - int pseries_devicetree_update(s32 scope) 268 + static int pseries_devicetree_update(s32 scope) 269 269 { 270 270 char *rtas_buf; 271 271 __be32 *data;