docs: move protection-keys.rst to the core-api book
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 7 Jun 2019 18:54:31 +0000 (15:54 -0300)
committerJonathan Corbet <corbet@lwn.net>
Sat, 8 Jun 2019 19:42:12 +0000 (13:42 -0600)
This document is used by multiple architectures:

$ echo $(git grep -l  pkey_mprotect arch|cut -d'/' -f 2|sort|uniq)
alpha arm arm64 ia64 m68k microblaze mips parisc powerpc s390 sh sparc x86 xtensa

So, let's move it to the core book and adjust the links to it
accordingly.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/core-api/index.rst
Documentation/core-api/protection-keys.rst [moved from Documentation/x86/protection-keys.rst with 100% similarity]
Documentation/x86/index.rst
arch/powerpc/Kconfig
arch/x86/Kconfig
tools/testing/selftests/x86/protection_keys.c

index ee1bb89..2466a4c 100644 (file)
@@ -34,6 +34,7 @@ Core utilities
    timekeeping
    boot-time-mm
    memory-hotplug
+   protection-keys
 
 
 Interfaces for kernel debugging
index ae36fc5..f2de1b2 100644 (file)
@@ -19,7 +19,6 @@ x86-specific Documentation
    tlb
    mtrr
    pat
-   protection-keys
    intel_mpx
    amd-memory-encryption
    pti
index 8c1c636..3b795a0 100644 (file)
@@ -898,7 +898,7 @@ config PPC_MEM_KEYS
          page-based protections, but without requiring modification of the
          page tables when an application changes protection domains.
 
-         For details, see Documentation/vm/protection-keys.rst
+         For details, see Documentation/core-api/protection-keys.rst
 
          If unsure, say y.
 
index 2bbbd4d..d87d53f 100644 (file)
@@ -1911,7 +1911,7 @@ config X86_INTEL_MEMORY_PROTECTION_KEYS
          page-based protections, but without requiring modification of the
          page tables when an application changes protection domains.
 
-         For details, see Documentation/x86/protection-keys.txt
+         For details, see Documentation/core-api/protection-keys.rst
 
          If unsure, say y.
 
index 5d546dc..480995b 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /*
- * Tests x86 Memory Protection Keys (see Documentation/x86/protection-keys.txt)
+ * Tests x86 Memory Protection Keys (see Documentation/core-api/protection-keys.rst)
  *
  * There are examples in here of:
  *  * how to set protection keys on memory