Search code examples
linux-kernelcompilationkernelindentationrestructuredtext

Documentation/admin-guide/device-mapper/writecache.rst:23: ERROR: Unexpected indentation


While compiling linux documentation using sudo make htmldocs I'm getting the following errors

/linux_work/linux_stable/Documentation/admin-guide/device-mapper/writecache.rst:23: ERROR: Unexpected indentation.
/linux_work/linux_stable/Documentation/ABI/testing/sysfs-bus-nvdimm:11: ERROR: Unexpected indentation.
/linux_work/linux_stable/Documentation/ABI/testing/sysfs-bus-iio-sx9324:2: ERROR: Unexpected indentation.

But when I checked the source code. I couldn't figure out the cause of the error.

Here's writecache.rst:

enter image description here

Here's Here's sysfs-bus-iio-sx9324: enter image description here

Here's sysfs-bus-nvdimm:

enter image description here

How can I fix the errors:


Solution

  • This patches solved the issue:

    https://lore.kernel.org/linux-doc/1d576ae406d6183321320ffceb9c63a09fa095d3.1660829433.git.mchehab@kernel.org/

    https://lore.kernel.org/lkml/[email protected]/T/