x86: clean up pte_exec
[sfrench/cifs-2.6.git] / include / asm-x86 / pgtable-3level.h
index 62bb06575d5afe3af44e327f1edd32775c43a216..62a1ffbc8784ce06d1e68edc631a1ee6a0c76f45 100644 (file)
 #define pud_bad(pud)                           0
 #define pud_present(pud)                       1
 
-/*
- * All present pages with !NX bit are kernel-executable:
- */
-static inline int pte_exec_kernel(pte_t pte)
-{
-       return !(pte_val(pte) & _PAGE_NX);
-}
-
 /* Rules for using set_pte: the pte being assigned *must* be
  * either not present or in a state where the hardware will
  * not attempt to update the pte.  In places where this is