]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/x86/include/asm/mmu_context.h
x86/mm/gup: Switch GUP to the generic get_user_page_fast() implementation
[karo-tx-linux.git] / arch / x86 / include / asm / mmu_context.h
index 68b329d77b3a406365f3aa06a6aaf6a8bae24c81..6e933d2d88d99bbf503ca379fa8f34e3dbfee993 100644 (file)
@@ -220,18 +220,6 @@ static inline int vma_pkey(struct vm_area_struct *vma)
 }
 #endif
 
-static inline bool __pkru_allows_pkey(u16 pkey, bool write)
-{
-       u32 pkru = read_pkru();
-
-       if (!__pkru_allows_read(pkru, pkey))
-               return false;
-       if (write && !__pkru_allows_write(pkru, pkey))
-               return false;
-
-       return true;
-}
-
 /*
  * We only want to enforce protection keys on the current process
  * because we effectively have no access to PKRU for other