Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

memblock: get rid of a :c:type leftover

chanseset b3a7bb1851c8 ("docs: get rid of :c:type explicit declarations for structs")
removed several :c:type: markups, except by one.

Now, Sphinx 3.x complains about it:

.../Documentation/core-api/boot-time-mm:26: ../mm/memblock.c:51: WARNING: Unparseable C cross-reference: 'struct\nmemblock_type'
Invalid C declaration: Expected identifier in nested name, got keyword: struct [error at 6]
struct
memblock_type
------^

As, on Sphinx 3.x, the right markup is c:struct:`foo`.

So, let's remove it, relying on automarkup.py to convert it.

Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

+2 -2
+2 -2
mm/memblock.c
··· 50 50 * 51 51 * Each region is represented by struct memblock_region that 52 52 * defines the region extents, its attributes and NUMA node id on NUMA 53 - * systems. Every memory type is described by the :c:type:`struct 54 - * memblock_type` which contains an array of memory regions along with 53 + * systems. Every memory type is described by the struct memblock_type 54 + * which contains an array of memory regions along with 55 55 * the allocator metadata. The "memory" and "reserved" types are nicely 56 56 * wrapped with struct memblock. This structure is statically 57 57 * initialized at build time. The region arrays are initially sized to