Skip to contentSkip to conversation

linux-next: build failure after merge of the percpu tree

PATCH Stephen Rothwell 3 participants 3 messages Dec 11, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the percpu tree, today's linux-next build (sparc64 defconfig) failed like this:

mm/percpu.c: In function 'pcpu_page_first_chunk':
mm/percpu.c:3336:17: error: implicit declaration of function 'flush_cache_vmap_early'; did you mean 'flush_cache_vmap'? [-Werror=implicit-function-declaration]

 3336 |                 flush_cache_vmap_early(unit_addr, unit_addr + ai->unit_size); 
      |                 ^~~~~~~~~~~~~~~~~~~~~~
      |                 flush_cache_vmap

cc1: some warnings being treated as errors

Caused by commit

a95c15a43f4a ("mm: Introduce flush_cache_vmap_early() and its riscv implementation")

I have applied the following fix patch for today. Are there other archs that don't use asm-generic/cacheflush.h?

From: Stephen Rothwell <[email protected]>
Date: Mon, 11 Dec 2023 16:57:00 +1100
Subject: [PATCH] fix up for "mm: Introduce flush_cache_vmap_early() and its riscv implementation"

---
 arch/sparc/include/asm/cacheflush.h | 7 +++++++
 1 file changed, 7 insertions(+)
arch/sparc/include/asm/cacheflush.h +7 -0
index 881ac76eab93..9d87b2bcb217 100644
@@ -10,4 +10,11 @@
 #else
 #include <asm/cacheflush_32.h>
 #endif
+
+#ifndef __ASSEMBLY__
+static inline void flush_cache_vmap_early(unsigned long start, unsigned long end)
+{
+}
+#endif
+
 #endif
Signature · 5 lines
2.40.1

-- 
Cheers,
Stephen Rothwell
#1 lore raw

Hi Stephen,

Quoted 11 lines · Stephen Rothwell

Hi all,

After merging the percpu tree, today's linux-next build (sparc64 defconfig) failed like this:

mm/percpu.c: In function 'pcpu_page_first_chunk':
mm/percpu.c:3336:17: error: implicit declaration of function 'flush_cache_vmap_early'; did you mean 'flush_cache_vmap'? [-Werror=implicit-function-declaration]

 3336 |                 flush_cache_vmap_early(unit_addr, unit_addr + ai->unit_size);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
      |                 flush_cache_vmap
Quoted 8 lines

cc1: some warnings being treated as errors

Caused by commit

a95c15a43f4a ("mm: Introduce flush_cache_vmap_early() and its riscv implementation")

I have applied the following fix patch for today. Are there other archs that don't use asm-generic/cacheflush.h?

It seems like most archs do not include this file, I should have checked. As I'm a bit scared of the possible side-effects of including asm-generic/cacheflush.h, I'll define flush_cache_vmap_early() on all archs that do define flush_cache_vmap().

Stephen, do you want a patch fix? Or do you want me to send a new version of the current patches so that you can drop them for now?

Sorry for the oversight,

Thanks,

Alex

Quoted 32 lines

From: Stephen Rothwell <[email protected]>
Date: Mon, 11 Dec 2023 16:57:00 +1100
Subject: [PATCH] fix up for "mm: Introduce flush_cache_vmap_early() and its riscv implementation"

---
 arch/sparc/include/asm/cacheflush.h | 7 +++++++
 1 file changed, 7 insertions(+)
arch/sparc/include/asm/cacheflush.h +7 -1
index 881ac76eab93..9d87b2bcb217 100644
@@ -10,4 +10,11 @@
 #else
 #include <asm/cacheflush_32.h>
 #endif
+
+#ifndef __ASSEMBLY__
+static inline void flush_cache_vmap_early(unsigned long start, unsigned long end)
+{
+}
+#endif
+
 #endif
--

2.40.1

--
Cheers,
Stephen Rothwell

#2 lore raw

Hello,

Quoted 23 lines · Alexandre Ghiti

Hi Stephen,

Quoted 19 lines · Stephen Rothwell

Hi all,

After merging the percpu tree, today's linux-next build (sparc64 defconfig) failed like this:

mm/percpu.c: In function 'pcpu_page_first_chunk':
mm/percpu.c:3336:17: error: implicit declaration of function 'flush_cache_vmap_early'; did you mean 'flush_cache_vmap'? [-Werror=implicit-function-declaration]

 3336 |                 flush_cache_vmap_early(unit_addr, unit_addr + ai->unit_size);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
      |                 flush_cache_vmap

cc1: some warnings being treated as errors

Caused by commit

a95c15a43f4a ("mm: Introduce flush_cache_vmap_early() and its riscv implementation")

I have applied the following fix patch for today. Are there other archs that don't use asm-generic/cacheflush.h?

I'm surprised automation didn't catch this as this should have failed for any sparc build? It passed sparc allmodconfig gcc on my branches.

Quoted 5 lines

It seems like most archs do not include this file, I should have checked. As I'm a bit scared of the possible side-effects of including asm-generic/cacheflush.h, I'll define flush_cache_vmap_early() on all archs that do define flush_cache_vmap().

Hmmm. That makes sense, but we'd still need to check so we have the generic #ifndef definition included everywhere too.

Quoted 3 lines

Stephen, do you want a patch fix? Or do you want me to send a new version of the current patches so that you can drop them for now?

The for-next tree gets recreated from pulls of the maintainers' trees. I'm going to drop the series from percpu and then we can go again with a v2.

Quoted 2 lines

Sorry for the oversight,

All good it happens. It's why the automation is there.

Thanks,
Dennis

Quoted 36 lines

Thanks,

Alex

Quoted 32 lines

From: Stephen Rothwell <[email protected]>
Date: Mon, 11 Dec 2023 16:57:00 +1100
Subject: [PATCH] fix up for "mm: Introduce flush_cache_vmap_early() and its riscv implementation"

---
 arch/sparc/include/asm/cacheflush.h | 7 +++++++
 1 file changed, 7 insertions(+)
arch/sparc/include/asm/cacheflush.h +7 -1
index 881ac76eab93..9d87b2bcb217 100644
@@ -10,4 +10,11 @@
 #else
 #include <asm/cacheflush_32.h>
 #endif
+
+#ifndef __ASSEMBLY__
+static inline void flush_cache_vmap_early(unsigned long start, unsigned long end)
+{
+}
+#endif
+
 #endif
--

2.40.1

--
Cheers,
Stephen Rothwell