Re: [PATCH 00/23] [v4] KAISER: unmap most of the kernel from userspace page tables

From: Ingo Molnar
Date: Thu Nov 23 2017 - 02:33:05 EST



* Ingo Molnar <mingo@xxxxxxxxxx> wrote:

>
> 32-bit x86 defconfig still doesn't build:
>
> arch/x86/events/intel/ds.c: In function âdsallocâ:
> arch/x86/events/intel/ds.c:296:6: error: implicit declaration of function âkaiser_add_mappingâ; did you mean âkgid_has_mappingâ? [-Werror=implicit-function-declaration]

The patch below should cure this one - only build tested.

Thanks,

Ingo

arch/x86/events/intel/ds.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/events/intel/ds.c b/arch/x86/events/intel/ds.c
index c9f44d7ce838..61388b01962d 100644
--- a/arch/x86/events/intel/ds.c
+++ b/arch/x86/events/intel/ds.c
@@ -3,7 +3,7 @@
#include <linux/types.h>
#include <linux/slab.h>

-#include <asm/kaiser.h>
+#include <linux/kaiser.h>
#include <asm/perf_event.h>
#include <asm/insn.h>