All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next] Build failure drivers/cxl/cxl_pmem (powerpc)
@ 2022-07-29  4:01 ` Sachin Sant
  0 siblings, 0 replies; 8+ messages in thread
From: Sachin Sant @ 2022-07-29  4:01 UTC (permalink / raw)
  To: linux-cxl, Dan Williams; +Cc: linuxppc-dev, linux-next

Linux-next (5.19.0-rc8-next-20220728) fails to build on powerpc with
following error:

ERROR: modpost: "memory_add_physaddr_to_nid" [drivers/cxl/cxl_pmem.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:128: modules-only.symvers] Error 1

The code in question was last changed by following patch:

commit 04ad63f086d1
       cxl/region: Introduce cxl_pmem_region objects


 - Sachin

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [linux-next] Build failure drivers/cxl/cxl_pmem (powerpc)
@ 2022-07-29  4:01 ` Sachin Sant
  0 siblings, 0 replies; 8+ messages in thread
From: Sachin Sant @ 2022-07-29  4:01 UTC (permalink / raw)
  To: linux-cxl, Dan Williams; +Cc: linux-next, linuxppc-dev

Linux-next (5.19.0-rc8-next-20220728) fails to build on powerpc with
following error:

ERROR: modpost: "memory_add_physaddr_to_nid" [drivers/cxl/cxl_pmem.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:128: modules-only.symvers] Error 1

The code in question was last changed by following patch:

commit 04ad63f086d1
       cxl/region: Introduce cxl_pmem_region objects


 - Sachin

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [linux-next] Build failure drivers/cxl/cxl_pmem (powerpc)
  2022-07-29  4:01 ` Sachin Sant
@ 2022-07-29  6:17   ` Michael Ellerman
  -1 siblings, 0 replies; 8+ messages in thread
From: Michael Ellerman @ 2022-07-29  6:17 UTC (permalink / raw)
  To: Sachin Sant, linux-cxl, Dan Williams; +Cc: linuxppc-dev, linux-next

Sachin Sant <sachinp@linux.ibm.com> writes:
> Linux-next (5.19.0-rc8-next-20220728) fails to build on powerpc with
> following error:
>
> ERROR: modpost: "memory_add_physaddr_to_nid" [drivers/cxl/cxl_pmem.ko] undefined!
> make[1]: *** [scripts/Makefile.modpost:128: modules-only.symvers] Error 1
>
> The code in question was last changed by following patch:
>
> commit 04ad63f086d1
>        cxl/region: Introduce cxl_pmem_region objects

This should fix it.

Dan, do you want to apply that on top of your tree to reduce the window
of breakage?

cheers


From 8ca5b098b6ff1048953be748dbffc987996e2605 Mon Sep 17 00:00:00 2001
From: Michael Ellerman <mpe@ellerman.id.au>
Date: Fri, 29 Jul 2022 16:13:55 +1000
Subject: [PATCH] powerpc/mm: Export memory_add_physaddr_to_nid() for modules

The cxl_pmem module wants to call memory_add_physaddr_to_nid(), so
export the symbol.

Fixes: 04ad63f086d1 ("cxl/region: Introduce cxl_pmem_region objects")
Reported-by: Sachin Sant <sachinp@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 arch/powerpc/mm/mem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index 7b0d286bf9ba..01772e79fd93 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -55,6 +55,7 @@ int memory_add_physaddr_to_nid(u64 start)
 {
 	return hot_add_scn_to_nid(start);
 }
+EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
 #endif
 
 int __weak create_section_mapping(unsigned long start, unsigned long end,
-- 
2.35.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [linux-next] Build failure drivers/cxl/cxl_pmem (powerpc)
@ 2022-07-29  6:17   ` Michael Ellerman
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Ellerman @ 2022-07-29  6:17 UTC (permalink / raw)
  To: Sachin Sant, linux-cxl, Dan Williams; +Cc: linux-next, linuxppc-dev

Sachin Sant <sachinp@linux.ibm.com> writes:
> Linux-next (5.19.0-rc8-next-20220728) fails to build on powerpc with
> following error:
>
> ERROR: modpost: "memory_add_physaddr_to_nid" [drivers/cxl/cxl_pmem.ko] undefined!
> make[1]: *** [scripts/Makefile.modpost:128: modules-only.symvers] Error 1
>
> The code in question was last changed by following patch:
>
> commit 04ad63f086d1
>        cxl/region: Introduce cxl_pmem_region objects

This should fix it.

Dan, do you want to apply that on top of your tree to reduce the window
of breakage?

cheers


From 8ca5b098b6ff1048953be748dbffc987996e2605 Mon Sep 17 00:00:00 2001
From: Michael Ellerman <mpe@ellerman.id.au>
Date: Fri, 29 Jul 2022 16:13:55 +1000
Subject: [PATCH] powerpc/mm: Export memory_add_physaddr_to_nid() for modules

The cxl_pmem module wants to call memory_add_physaddr_to_nid(), so
export the symbol.

Fixes: 04ad63f086d1 ("cxl/region: Introduce cxl_pmem_region objects")
Reported-by: Sachin Sant <sachinp@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 arch/powerpc/mm/mem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index 7b0d286bf9ba..01772e79fd93 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -55,6 +55,7 @@ int memory_add_physaddr_to_nid(u64 start)
 {
 	return hot_add_scn_to_nid(start);
 }
+EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
 #endif
 
 int __weak create_section_mapping(unsigned long start, unsigned long end,
-- 
2.35.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [linux-next] Build failure drivers/cxl/cxl_pmem (powerpc)
  2022-07-29  6:17   ` Michael Ellerman
@ 2022-07-29  7:18     ` Sachin Sant
  -1 siblings, 0 replies; 8+ messages in thread
From: Sachin Sant @ 2022-07-29  7:18 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: linux-cxl, Dan Williams, linuxppc-dev, linux-next


> From 8ca5b098b6ff1048953be748dbffc987996e2605 Mon Sep 17 00:00:00 2001
> From: Michael Ellerman <mpe@ellerman.id.au>
> Date: Fri, 29 Jul 2022 16:13:55 +1000
> Subject: [PATCH] powerpc/mm: Export memory_add_physaddr_to_nid() for modules
> 
> The cxl_pmem module wants to call memory_add_physaddr_to_nid(), so
> export the symbol.
> 
> Fixes: 04ad63f086d1 ("cxl/region: Introduce cxl_pmem_region objects")
> Reported-by: Sachin Sant <sachinp@linux.ibm.com>
> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
> ---

Thanks Michael.

Tested-by: Sachin Sant <sachinp@linux.ibm.com>

> arch/powerpc/mm/mem.c | 1 +
> 1 file changed, 1 insertion(+)
> 
> diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
> index 7b0d286bf9ba..01772e79fd93 100644
> --- a/arch/powerpc/mm/mem.c
> +++ b/arch/powerpc/mm/mem.c
> @@ -55,6 +55,7 @@ int memory_add_physaddr_to_nid(u64 start)
> {
> 	return hot_add_scn_to_nid(start);
> }
> +EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
> #endif
> 
> int __weak create_section_mapping(unsigned long start, unsigned long end,
> -- 
> 2.35.3
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [linux-next] Build failure drivers/cxl/cxl_pmem (powerpc)
@ 2022-07-29  7:18     ` Sachin Sant
  0 siblings, 0 replies; 8+ messages in thread
From: Sachin Sant @ 2022-07-29  7:18 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: Dan Williams, linux-next, linuxppc-dev, linux-cxl


> From 8ca5b098b6ff1048953be748dbffc987996e2605 Mon Sep 17 00:00:00 2001
> From: Michael Ellerman <mpe@ellerman.id.au>
> Date: Fri, 29 Jul 2022 16:13:55 +1000
> Subject: [PATCH] powerpc/mm: Export memory_add_physaddr_to_nid() for modules
> 
> The cxl_pmem module wants to call memory_add_physaddr_to_nid(), so
> export the symbol.
> 
> Fixes: 04ad63f086d1 ("cxl/region: Introduce cxl_pmem_region objects")
> Reported-by: Sachin Sant <sachinp@linux.ibm.com>
> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
> ---

Thanks Michael.

Tested-by: Sachin Sant <sachinp@linux.ibm.com>

> arch/powerpc/mm/mem.c | 1 +
> 1 file changed, 1 insertion(+)
> 
> diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
> index 7b0d286bf9ba..01772e79fd93 100644
> --- a/arch/powerpc/mm/mem.c
> +++ b/arch/powerpc/mm/mem.c
> @@ -55,6 +55,7 @@ int memory_add_physaddr_to_nid(u64 start)
> {
> 	return hot_add_scn_to_nid(start);
> }
> +EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
> #endif
> 
> int __weak create_section_mapping(unsigned long start, unsigned long end,
> -- 
> 2.35.3
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [linux-next] Build failure drivers/cxl/cxl_pmem (powerpc)
  2022-07-29  6:17   ` Michael Ellerman
@ 2022-07-29 14:35     ` Dan Williams
  -1 siblings, 0 replies; 8+ messages in thread
From: Dan Williams @ 2022-07-29 14:35 UTC (permalink / raw)
  To: Michael Ellerman, Sachin Sant, linux-cxl, Dan Williams
  Cc: linuxppc-dev, linux-next

Michael Ellerman wrote:
> Sachin Sant <sachinp@linux.ibm.com> writes:
> > Linux-next (5.19.0-rc8-next-20220728) fails to build on powerpc with
> > following error:
> >
> > ERROR: modpost: "memory_add_physaddr_to_nid" [drivers/cxl/cxl_pmem.ko] undefined!
> > make[1]: *** [scripts/Makefile.modpost:128: modules-only.symvers] Error 1
> >
> > The code in question was last changed by following patch:
> >
> > commit 04ad63f086d1
> >        cxl/region: Introduce cxl_pmem_region objects
> 
> This should fix it.
> 
> Dan, do you want to apply that on top of your tree to reduce the window
> of breakage?

Yes, will apply, thanks.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [linux-next] Build failure drivers/cxl/cxl_pmem (powerpc)
@ 2022-07-29 14:35     ` Dan Williams
  0 siblings, 0 replies; 8+ messages in thread
From: Dan Williams @ 2022-07-29 14:35 UTC (permalink / raw)
  To: Michael Ellerman, Sachin Sant, linux-cxl, Dan Williams
  Cc: linux-next, linuxppc-dev

Michael Ellerman wrote:
> Sachin Sant <sachinp@linux.ibm.com> writes:
> > Linux-next (5.19.0-rc8-next-20220728) fails to build on powerpc with
> > following error:
> >
> > ERROR: modpost: "memory_add_physaddr_to_nid" [drivers/cxl/cxl_pmem.ko] undefined!
> > make[1]: *** [scripts/Makefile.modpost:128: modules-only.symvers] Error 1
> >
> > The code in question was last changed by following patch:
> >
> > commit 04ad63f086d1
> >        cxl/region: Introduce cxl_pmem_region objects
> 
> This should fix it.
> 
> Dan, do you want to apply that on top of your tree to reduce the window
> of breakage?

Yes, will apply, thanks.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-07-29 14:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-29  4:01 [linux-next] Build failure drivers/cxl/cxl_pmem (powerpc) Sachin Sant
2022-07-29  4:01 ` Sachin Sant
2022-07-29  6:17 ` Michael Ellerman
2022-07-29  6:17   ` Michael Ellerman
2022-07-29  7:18   ` Sachin Sant
2022-07-29  7:18     ` Sachin Sant
2022-07-29 14:35   ` Dan Williams
2022-07-29 14:35     ` Dan Williams

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.