]> git.baikalelectronics.ru Git - kernel.git/commit
kernel-doc: concatenate contents of colliding sections
authorJani Nikula <jani.nikula@intel.com>
Sun, 29 May 2016 06:40:44 +0000 (09:40 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 30 May 2016 10:39:03 +0000 (13:39 +0300)
commit3e2e430ce93759319b58303bdf9cf67765e6d045
tree4beae235711cac4623ec1e8bf473df4a89c5be57
parent3a285ac32f575541416f59cfac1f7c669355769b
kernel-doc: concatenate contents of colliding sections

If there are multiple sections with the same section name, the current
implementation results in several sections by the same heading, with the
content duplicated from the last section to all. Even if there's the
error message, a more graceful approach is to combine all the
identically named sections into one, with concatenated contents.

With the supported sections already limited to select few, there are
massively fewer collisions than there used to be, but this is still
useful for e.g. when function parameters are documented in the middle of
a documentation comment, with description spread out above and
below. (This is not a recommended documentation style, but used in the
kernel nonetheless.)

We can now also demote the error to a warning.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
scripts/kernel-doc