* [PATCH] powerpc/pseries: make pseries_devicetree_update() static
@ 2022-02-07 22:12 Nathan Lynch
2022-02-08 19:33 ` Tyrel Datwyler
2022-02-16 12:25 ` Michael Ellerman
0 siblings, 2 replies; 3+ messages in thread
From: Nathan Lynch @ 2022-02-07 22:12 UTC (permalink / raw)
To: linuxppc-dev
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>
---
arch/powerpc/include/asm/rtas.h | 1 -
arch/powerpc/platforms/pseries/mobility.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h
index 82e5b055fa2a..00531af17ce0 100644
--- a/arch/powerpc/include/asm/rtas.h
+++ b/arch/powerpc/include/asm/rtas.h
@@ -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
diff --git a/arch/powerpc/platforms/pseries/mobility.c b/arch/powerpc/platforms/pseries/mobility.c
index 85033f392c78..94077fa91959 100644
--- a/arch/powerpc/platforms/pseries/mobility.c
+++ b/arch/powerpc/platforms/pseries/mobility.c
@@ -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;
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] powerpc/pseries: make pseries_devicetree_update() static
2022-02-07 22:12 [PATCH] powerpc/pseries: make pseries_devicetree_update() static Nathan Lynch
@ 2022-02-08 19:33 ` Tyrel Datwyler
2022-02-16 12:25 ` Michael Ellerman
1 sibling, 0 replies; 3+ messages in thread
From: Tyrel Datwyler @ 2022-02-08 19:33 UTC (permalink / raw)
To: Nathan Lynch, linuxppc-dev
On 2/7/22 2:12 PM, Nathan Lynch wrote:
> 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>
> ---
Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] powerpc/pseries: make pseries_devicetree_update() static
2022-02-07 22:12 [PATCH] powerpc/pseries: make pseries_devicetree_update() static Nathan Lynch
2022-02-08 19:33 ` Tyrel Datwyler
@ 2022-02-16 12:25 ` Michael Ellerman
1 sibling, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2022-02-16 12:25 UTC (permalink / raw)
To: Nathan Lynch, linuxppc-dev
On Mon, 7 Feb 2022 16:12:47 -0600, Nathan Lynch wrote:
> pseries_devicetree_update() has only one call site, in the same file in
> which it is defined. Make it static.
>
>
Applied to powerpc/next.
[1/1] powerpc/pseries: make pseries_devicetree_update() static
https://git.kernel.org/powerpc/c/92e6dc257bd5771cf8db662e4d371fdb58fcbf43
cheers
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-16 12:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-07 22:12 [PATCH] powerpc/pseries: make pseries_devicetree_update() static Nathan Lynch
2022-02-08 19:33 ` Tyrel Datwyler
2022-02-16 12:25 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).