Skip to contentSkip to conversation

ARM: highmem: fix cache_is_vivt() reference

PATCH Applied Arnd Bergmann 2 participants 2 messages Dec 4, 2020 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: highmem: fix cache_is_vivt() reference

From: Arnd Bergmann <[email protected]>

The reference to cache_is_vivt() was moved into a header file, which now causes a build failure in rare randconfig builds:

arch/arm/include/asm/highmem.h:52:43: error: implicit declaration of function 'cache_is_vivt' [-Werror,-Wimplicit-function-declaration]

Add an explicit include to make it build reliably.

Fixes 2a15ba82fa6c ("ARM: highmem: Switch to generic kmap atomic")
---
 arch/arm/include/asm/highmem.h | 1 +
 1 file changed, 1 insertion(+)
arch/arm/include/asm/highmem.h +1 -0
index a41de523d053..b4b66220952d 100644
@@ -2,6 +2,7 @@
 #ifndef _ASM_HIGHMEM_H
 #define _ASM_HIGHMEM_H
 
+#include <asm/cachetype.h>
 #include <asm/fixmap.h>
 
 #define PKMAP_BASE		(PAGE_OFFSET - PMD_SIZE)
Signature · 1 line
2.27.0
merge bot Applied
#1 lore raw

[tip: core/mm] ARM: highmem: Fix cache_is_vivt() reference

The following commit has been merged into the core/mm branch of tip:

The following commit has been merged into the core/mm branch of tip:

Commit-ID:     68061c02bb295da4955f0d309b9459f0a7ba83dd
Gitweb:        https://git.kernel.org/tip/68061c02bb295da4955f0d309b9459f0a7ba83dd
Author:        Arnd Bergmann <[email protected]>
AuthorDate:    Fri, 04 Dec 2020 17:59:22 +01:00
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Fri, 04 Dec 2020 23:35:34 +01:00

ARM: highmem: Fix cache_is_vivt() reference

The reference to cache_is_vivt() was moved into a header file, which now causes a build failure in rare randconfig builds:

arch/arm/include/asm/highmem.h:52:43: error: implicit declaration of function 'cache_is_vivt' [-Werror,-Wimplicit-function-declaration]

Add an explicit include to make it build reliably.

Fixes 2a15ba82fa6c ("ARM: highmem: Switch to generic kmap atomic")
Cc Russell King <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Ira Weiny <[email protected]>
---
 arch/arm/include/asm/highmem.h | 1 +
 1 file changed, 1 insertion(+)
arch/arm/include/asm/highmem.h +1 -0
index a41de52..b4b6622 100644
@@ -2,6 +2,7 @@
 #ifndef _ASM_HIGHMEM_H
 #define _ASM_HIGHMEM_H
 
+#include <asm/cachetype.h>
 #include <asm/fixmap.h>
 
 #define PKMAP_BASE		(PAGE_OFFSET - PMD_SIZE)