* [PATCH] powerpc/pseries: Fix build break when MEMORY_HOTREMOVE=n
@ 2017-02-16 3:01 Michael Ellerman
2017-02-16 3:41 ` Nathan Fontenot
2017-02-16 5:59 ` Michael Ellerman
0 siblings, 2 replies; 4+ messages in thread
From: Michael Ellerman @ 2017-02-16 3:01 UTC (permalink / raw)
To: linuxppc-dev; +Cc: jallen, nfont
We broke the build when CONFIG_MEMORY_HOTREMOVE=n:
arch/powerpc/platforms/pseries/hotplug-memory.c:821:8: error: implicit
declaration of function 'dlpar_memory_readd_by_index'
Add a dummy to fix it.
Fixes: e70d59700fc3 ("powerpc/pseries: Introduce memory hotplug READD operation")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
arch/powerpc/platforms/pseries/hotplug-memory.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c b/arch/powerpc/platforms/pseries/hotplug-memory.c
index 3381c20edbc0..b3b92814ce87 100644
--- a/arch/powerpc/platforms/pseries/hotplug-memory.c
+++ b/arch/powerpc/platforms/pseries/hotplug-memory.c
@@ -628,7 +628,10 @@ static int dlpar_memory_remove_by_index(u32 drc_index, struct property *prop)
{
return -EOPNOTSUPP;
}
-
+static int dlpar_memory_readd_by_index(u32 drc_index, struct property *prop)
+{
+ return -EOPNOTSUPP;
+}
#endif /* CONFIG_MEMORY_HOTREMOVE */
static int dlpar_add_lmb(struct of_drconf_cell *lmb)
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] powerpc/pseries: Fix build break when MEMORY_HOTREMOVE=n
2017-02-16 3:01 [PATCH] powerpc/pseries: Fix build break when MEMORY_HOTREMOVE=n Michael Ellerman
@ 2017-02-16 3:41 ` Nathan Fontenot
2017-02-16 4:21 ` Michael Ellerman
2017-02-16 5:59 ` Michael Ellerman
1 sibling, 1 reply; 4+ messages in thread
From: Nathan Fontenot @ 2017-02-16 3:41 UTC (permalink / raw)
To: Michael Ellerman, linuxppc-dev; +Cc: jallen
On 02/15/2017 09:01 PM, Michael Ellerman wrote:
> We broke the build when CONFIG_MEMORY_HOTREMOVE=n:
>
> arch/powerpc/platforms/pseries/hotplug-memory.c:821:8: error: implicit
> declaration of function 'dlpar_memory_readd_by_index'
>
> Add a dummy to fix it.
>
> Fixes: e70d59700fc3 ("powerpc/pseries: Introduce memory hotplug READD operation")
> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Looks like we both saw the same thing today, this was patch 1/4 in the
'Implement indexed-count memory hotplug' patchset I sent out earlier today.
Perhaps I should have sent that as a separate patch.
Reviewed-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
> ---
> arch/powerpc/platforms/pseries/hotplug-memory.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c b/arch/powerpc/platforms/pseries/hotplug-memory.c
> index 3381c20edbc0..b3b92814ce87 100644
> --- a/arch/powerpc/platforms/pseries/hotplug-memory.c
> +++ b/arch/powerpc/platforms/pseries/hotplug-memory.c
> @@ -628,7 +628,10 @@ static int dlpar_memory_remove_by_index(u32 drc_index, struct property *prop)
> {
> return -EOPNOTSUPP;
> }
> -
> +static int dlpar_memory_readd_by_index(u32 drc_index, struct property *prop)
> +{
> + return -EOPNOTSUPP;
> +}
> #endif /* CONFIG_MEMORY_HOTREMOVE */
>
> static int dlpar_add_lmb(struct of_drconf_cell *lmb)
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] powerpc/pseries: Fix build break when MEMORY_HOTREMOVE=n
2017-02-16 3:41 ` Nathan Fontenot
@ 2017-02-16 4:21 ` Michael Ellerman
0 siblings, 0 replies; 4+ messages in thread
From: Michael Ellerman @ 2017-02-16 4:21 UTC (permalink / raw)
To: Nathan Fontenot, linuxppc-dev; +Cc: jallen
Nathan Fontenot <nfont@linux.vnet.ibm.com> writes:
> On 02/15/2017 09:01 PM, Michael Ellerman wrote:
>> We broke the build when CONFIG_MEMORY_HOTREMOVE=3Dn:
>>=20
>> arch/powerpc/platforms/pseries/hotplug-memory.c:821:8: error: implicit
>> declaration of function 'dlpar_memory_readd_by_index'
>>=20
>> Add a dummy to fix it.
>>=20
>> Fixes: e70d59700fc3 ("powerpc/pseries: Introduce memory hotplug READD op=
eration")
>> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
>
> Looks like we both saw the same thing today, this was patch 1/4 in the
> 'Implement indexed-count memory hotplug'=E2=80=8B patchset I sent out ear=
lier today.
Ah right, sorry. My auto builds hit it overnight, and then I sent it
before checking mail today.
> Perhaps I should have sent that as a separate patch.
No biggy.
cheers
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: powerpc/pseries: Fix build break when MEMORY_HOTREMOVE=n
2017-02-16 3:01 [PATCH] powerpc/pseries: Fix build break when MEMORY_HOTREMOVE=n Michael Ellerman
2017-02-16 3:41 ` Nathan Fontenot
@ 2017-02-16 5:59 ` Michael Ellerman
1 sibling, 0 replies; 4+ messages in thread
From: Michael Ellerman @ 2017-02-16 5:59 UTC (permalink / raw)
To: Michael Ellerman, linuxppc-dev; +Cc: jallen, nfont
On Thu, 2017-02-16 at 03:01:18 UTC, Michael Ellerman wrote:
> We broke the build when CONFIG_MEMORY_HOTREMOVE=n:
>
> arch/powerpc/platforms/pseries/hotplug-memory.c:821:8: error: implicit
> declaration of function 'dlpar_memory_readd_by_index'
>
> Add a dummy to fix it.
>
> Fixes: e70d59700fc3 ("powerpc/pseries: Introduce memory hotplug READD operation")
> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
> Reviewed-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Applied to powerpc next.
https://git.kernel.org/powerpc/c/f84775c2d5d92581f2df60d53b574b
cheers
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-02-16 5:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-16 3:01 [PATCH] powerpc/pseries: Fix build break when MEMORY_HOTREMOVE=n Michael Ellerman
2017-02-16 3:41 ` Nathan Fontenot
2017-02-16 4:21 ` Michael Ellerman
2017-02-16 5:59 ` Michael Ellerman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.