Skip to contentSkip to conversation

linux-next: build failure after merge of the akpm-current tree

DISCUSSION Stephen Rothwell 3 participants 6 messages May 7, 2020 – May 8, 2020

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

Hi all,

After merging the akpm-current tree, today's linux-next build (arm collie_defconfig and many others) failed like this:

arch/arm/mm/dma-mapping.c: In function 'dma_cache_maint_page':
arch/arm/mm/dma-mapping.c:892:6: error: implicit declaration of function 'kunmap_high' [-Werror=implicit-function-declaration]

      kunmap_high(page);
      ^
arch/arm/mm/flush.c: In function '__flush_dcache_page':
arch/arm/mm/flush.c:221:6: error: implicit declaration of function 'kunmap_high' [-Werror=implicit-function-declaration]
      kunmap_high(page + i);
      ^

Caused by commit

6b66ab470b4d ("arch/kunmap: remove duplicate kunmap implementations")

kunmap_high() is now only declared when CONFIG_HIGHMEM is defined.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi all,

Quoted 13 lines · On Thu, 7 May 2020 22:17:21 +1000 Stephen Rothwell <[email protected]> wrote:

After merging the akpm-current tree, today's linux-next build (arm collie_defconfig and many others) failed like this:

arch/arm/mm/dma-mapping.c: In function 'dma_cache_maint_page':
arch/arm/mm/dma-mapping.c:892:6: error: implicit declaration of function 'kunmap_high' [-Werror=implicit-function-declaration]

      kunmap_high(page);
      ^
arch/arm/mm/flush.c: In function '__flush_dcache_page':
arch/arm/mm/flush.c:221:6: error: implicit declaration of function 'kunmap_high' [-Werror=implicit-function-declaration]
      kunmap_high(page + i);
      ^
Quoted 5 lines

Caused by commit

6b66ab470b4d ("arch/kunmap: remove duplicate kunmap implementations")

kunmap_high() is now only declared when CONFIG_HIGHMEM is defined.

Is there anything that can be done quickly about this as it broke a large number of builds ...

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#2 lore raw
Quoted 16 lines · On Fri, 8 May 2020 11:43:38 +1000 Stephen Rothwell <[email protected]> wrote:

Hi all,

Quoted 13 lines · On Thu, 7 May 2020 22:17:21 +1000 Stephen Rothwell <[email protected]> wrote:

After merging the akpm-current tree, today's linux-next build (arm collie_defconfig and many others) failed like this:

arch/arm/mm/dma-mapping.c: In function 'dma_cache_maint_page':
arch/arm/mm/dma-mapping.c:892:6: error: implicit declaration of function 'kunmap_high' [-Werror=implicit-function-declaration]

      kunmap_high(page);
      ^
arch/arm/mm/flush.c: In function '__flush_dcache_page':
arch/arm/mm/flush.c:221:6: error: implicit declaration of function 'kunmap_high' [-Werror=implicit-function-declaration]
      kunmap_high(page + i);
      ^
Quoted 8 lines
Quoted 5 lines

Caused by commit

6b66ab470b4d ("arch/kunmap: remove duplicate kunmap implementations")

kunmap_high() is now only declared when CONFIG_HIGHMEM is defined.

Is there anything that can be done quickly about this as it broke a large number of builds ...

This? It's based on Ira's v3 series but should work.

From: Andrew Morton <[email protected]>
Subject: arch-kunmap-remove-duplicate-kunmap-implementations-fix

fix CONFIG_HIGHMEM=n build on various architectures

---

 include/linux/highmem.h |    5 +++++
 1 file changed, 5 insertions(+)
include/linux/highmem.h renamed from include/linux/highmem.h~arch-kunmap-remove-duplicate-kunmap-implementations-fix +5 -0
@@ -53,6 +53,7 @@ static inline void *kmap(struct page *pa
 }
 
 void kunmap_high(struct page *page);
+
 static inline void kunmap(struct page *page)
 {
 	might_sleep();
@@ -111,6 +112,10 @@ static inline void *kmap(struct page *pa
 	return page_address(page);
 }
 
+static inline void kunmap_high(struct page *page)
+{
+}
+
 static inline void kunmap(struct page *page)
 {
 }

_

#3 lore raw

Hi Andrew,

Quoted 38 lines · On Thu, 7 May 2020 19:08:08 -0700 Andrew Morton <[email protected]>…

This? It's based on Ira's v3 series but should work.

From: Andrew Morton <[email protected]>
Subject: arch-kunmap-remove-duplicate-kunmap-implementations-fix

fix CONFIG_HIGHMEM=n build on various architectures

---

 include/linux/highmem.h |    5 +++++
 1 file changed, 5 insertions(+)
include/linux/highmem.h renamed from include/linux/highmem.h~arch-kunmap-remove-duplicate-kunmap-implementations-fix +5 -0
@@ -53,6 +53,7 @@ static inline void *kmap(struct page *pa
 }
 
 void kunmap_high(struct page *page);
+
 static inline void kunmap(struct page *page)
 {
 	might_sleep();
@@ -111,6 +112,10 @@ static inline void *kmap(struct page *pa
 	return page_address(page);
 }
 
+static inline void kunmap_high(struct page *page)
+{
+}
+
 static inline void kunmap(struct page *page)
 {
 }
Quoted 2 lines

_

Thanks, I have added that to linux-next today.

Signature · 2 lines
Cheers,
Stephen Rothwell
Reviewed-by
#4 lore raw
In reply to Andrew Morton
Quoted 20 lines · Andrew Morton
Quoted 18 lines · On Fri, 8 May 2020 11:43:38 +1000 Stephen Rothwell <[email protected]> wrote:

Hi all,

Quoted 15 lines · On Thu, 7 May 2020 22:17:21 +1000 Stephen Rothwell <[email protected]> wrote:

After merging the akpm-current tree, today's linux-next build (arm collie_defconfig and many others) failed like this:

arch/arm/mm/dma-mapping.c: In function 'dma_cache_maint_page':
arch/arm/mm/dma-mapping.c:892:6: error: implicit declaration of function 'kunmap_high' [-Werror=implicit-function-declaration]

      kunmap_high(page);
      ^
arch/arm/mm/flush.c: In function '__flush_dcache_page':
arch/arm/mm/flush.c:221:6: error: implicit declaration of function 'kunmap_high' [-Werror=implicit-function-declaration]
      kunmap_high(page + i);
      ^

Caused by commit

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

6b66ab470b4d ("arch/kunmap: remove duplicate kunmap implementations")

kunmap_high() is now only declared when CONFIG_HIGHMEM is defined.

Is there anything that can be done quickly about this as it broke a large number of builds ...

This? It's based on Ira's v3 series but should work.

Looks like arm is using kmap_high_get() internally which needs a kunmap_high()...

Quoted 7 lines

From: Andrew Morton <[email protected]>
Subject: arch-kunmap-remove-duplicate-kunmap-implementations-fix

fix CONFIG_HIGHMEM=n build on various architectures

This should probably be squashed into that patch though...

Andrew do you want a V3.1?

Ira

Quoted 31 lines

---

 include/linux/highmem.h |    5 +++++
 1 file changed, 5 insertions(+)
include/linux/highmem.h renamed from include/linux/highmem.h~arch-kunmap-remove-duplicate-kunmap-implementations-fix +5 -0
@@ -53,6 +53,7 @@ static inline void *kmap(struct page *pa
 }
 
 void kunmap_high(struct page *page);
+
 static inline void kunmap(struct page *page)
 {
 	might_sleep();
@@ -111,6 +112,10 @@ static inline void *kmap(struct page *pa
 	return page_address(page);
 }
 
+static inline void kunmap_high(struct page *page)
+{
+}
+
 static inline void kunmap(struct page *page)
 {
 }

_

maintainer
#5 lore raw
Quoted 3 lines · On Fri, 8 May 2020 07:51:23 -0700 Ira Weiny <[email protected]> wrote:

This should probably be squashed into that patch though...

Andrew do you want a V3.1?

Is OK, I'll always fold foo-fix.patch into foo.patch before sending it onwards.