diff --git a/Documentation/index.rst b/Documentation/index.rst
index 20c00a9f2a932ee299fea0cf1f25680f0449beb4..5d310d960f82557986eed39690e4d6922e032ce0 100644
--- a/Documentation/index.rst
+++ b/Documentation/index.rst
@@ -3,6 +3,8 @@
    You can adapt this file completely to your liking, but it should at least
    contain the root `toctree` directive.
 
+.. _linux_doc:
+
 The Linux Kernel documentation
 ==============================
 
diff --git a/Documentation/kernel-hacking/index.rst b/Documentation/kernel-hacking/index.rst
index fcb0eda3cca36aaa0de96e7b8c768a07fb284c0c..f530276522904c1ddd4db4655f399c5d02ed696a 100644
--- a/Documentation/kernel-hacking/index.rst
+++ b/Documentation/kernel-hacking/index.rst
@@ -1,3 +1,5 @@
+.. _kernel_hacking:
+
 =====================
 Kernel Hacking Guides
 =====================