Skip to content

Commit bb73501

Browse files
committed
parisc: fix build when ARCH_HAS_KMAP
When we build for PA8X00, we define ARCH_HAS_KMAP, which results in the kmap_types.h include in highmem.h getting skipped... In file included from include/linux/pagemap.h:10, from include/linux/mempolicy.h:62, from init/main.c:52: include/linux/highmem.h:196: warning: 'enum km_type' declared inside parameter list include/linux/highmem.h:196: warning: its scope is only this definition or declaration, which is probably not what you want include/linux/highmem.h:196: error: parameter 1 ('type') has incomplete type Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
1 parent 7cec2ef commit bb73501

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/parisc/include/asm/cacheflush.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ void mark_rodata_ro(void);
9797

9898
#ifdef CONFIG_PA8X00
9999
/* Only pa8800, pa8900 needs this */
100+
101+
#include <asm/kmap_types.h>
102+
100103
#define ARCH_HAS_KMAP
101104

102105
void kunmap_parisc(void *addr);

0 commit comments

Comments
 (0)