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

scripts/kernel-doc: Do not process backslash lines in comments

To prevent this, do the pre-processing only for lines which are no
comments, e.g. do not start with ' *'.

Suggested-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240122093152.22536-3-anna-maria@linutronix.de

authored by

Anna-Maria Behnsen and committed by
Jonathan Corbet
e5a52766 a0abb82d

+1 -1
+1 -1
scripts/kernel-doc
··· 2331 2331 2332 2332 $section_counter = 0; 2333 2333 while (<IN_FILE>) { 2334 - while (s/\\\s*$//) { 2334 + while (!/^ \*/ && s/\\\s*$//) { 2335 2335 $_ .= <IN_FILE>; 2336 2336 } 2337 2337 # Replace tabs by spaces