Skip to contentSkip to conversation

mmap18: Fix the doc

PATCH In review Ma Xinjian via ltp 1 participant 2 messages Apr 11, 2025 – Apr 16, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmap18: Fix the doc

Use :: to keep the description of stack memory map as original text when viewed in RST format.

---
 testcases/kernel/syscalls/mmap/mmap18.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
testcases/kernel/syscalls/mmap/mmap18.c +10 -10
index 3de524ecc..5f0eee6ba 100644
@@ -28,18 +28,18 @@
  *
  * Kernel default `stack_guard_gap` size is `256 * getpagesize()`.
  *
- * The stack memory map would look like:
+ * The stack memory map would look like::
  *
- * |  -  -  -   reserved  size   -  -  -  |
+ *   |  -  -  -   reserved  size   -  -  -  |
  *
- * +-- - - - --+------------+-------------+
- * | 256 pages |  unmapped  |   mapped    |
- * +-- - - - --+------------+-------------+
- *                          | mapped size |
- * ^           |  -  -  stack size  -  -  |
- * start
- *             ^                          ^
- *             stack bottom       stack top
+ *   +-- - - - --+------------+-------------+
+ *   | 256 pages |  unmapped  |   mapped    |
+ *   +-- - - - --+------------+-------------+
+ *                            | mapped size |
+ *   ^           |  -  -  stack size  -  -  |
+ *   start
+ *               ^                          ^
+ *               stack bottom       stack top
  *
  * **Test 2**
  *
Signature · 5 lines
2.47.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi Ma,

I merged this  patch, as well as all the others related to tests description in RST format.

Kind regards,
Andrea Cervesato

Quoted 40 lines · Ma Xinjian via ltp

Use :: to keep the description of stack memory map as original text when viewed in RST format.

---
  testcases/kernel/syscalls/mmap/mmap18.c | 20 ++++++++++----------
  1 file changed, 10 insertions(+), 10 deletions(-)
testcases/kernel/syscalls/mmap/mmap18.c +10 -10
index 3de524ecc..5f0eee6ba 100644
@@ -28,18 +28,18 @@
   *
   * Kernel default `stack_guard_gap` size is `256 * getpagesize()`.
   *
- * The stack memory map would look like:
+ * The stack memory map would look like::
   *
- * |  -  -  -   reserved  size   -  -  -  |
+ *   |  -  -  -   reserved  size   -  -  -  |
   *
- * +-- - - - --+------------+-------------+
- * | 256 pages |  unmapped  |   mapped    |
- * +-- - - - --+------------+-------------+
- *                          | mapped size |
- * ^           |  -  -  stack size  -  -  |
- * start
- *             ^                          ^
- *             stack bottom       stack top
+ *   +-- - - - --+------------+-------------+
+ *   | 256 pages |  unmapped  |   mapped    |
+ *   +-- - - - --+------------+-------------+
+ *                            | mapped size |
+ *   ^           |  -  -  stack size  -  -  |
+ *   start
+ *               ^                          ^
+ *               stack bottom       stack top
   *
   * **Test 2**
   *
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp