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

Ingo Molnar
2017-11-23T07:33:02Z

* Ingo Molnar <mingo@kernel.org> 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>