Hi Ram, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.15 next-20180201] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Ram-Pai/mm-x86-powerpc-Enhancements-to-Memory-Protection-Keys/20180202-120004 config: x86_64-randconfig-x005-201804 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All error/warnings (new ones prefixed by >>): In file included from arch/x86/include/asm/mmu_context.h:8:0, from arch/x86/events/core.c:36: >> include/linux/pkeys.h:16:23: error: expected identifier or '(' before numeric constant #define vma_pkey(vma) 0 ^ >> arch/x86/include/asm/mmu_context.h:298:19: note: in expansion of macro 'vma_pkey' static inline int vma_pkey(struct vm_area_struct *vma) ^~~~~~~~ vim +16 include/linux/pkeys.h 7 8 #ifdef CONFIG_ARCH_HAS_PKEYS 9 #include <asm/pkeys.h> 10 #else /* ! CONFIG_ARCH_HAS_PKEYS */ 11 #define arch_max_pkey() (1) 12 #define execute_only_pkey(mm) (0) 13 #define arch_override_mprotect_pkey(vma, prot, pkey) (0) 14 #define PKEY_DEDICATED_EXECUTE_ONLY 0 15 #define ARCH_VM_PKEY_FLAGS 0 > 16 #define vma_pkey(vma) 0 17 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip