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.

docs: kernel_include.py: remove range restriction for gen docs

Originally, parse-readers were generating an output where
the first two lines were setting a literal block.

The script now gets only the actual parsed data without that,
so it is now safe to allow start-line and end-line parameters
to be handled.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/5dff693860a6a3faade15c24abdc380f09db468d.1755872208.git.mchehab+huawei@kernel.org

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
67faed5d 3f7f3d49

-6
-6
Documentation/sphinx/kernel_include.py
··· 122 122 exceptions_file = os.path.join(source_dir, self.options['exception-file']) 123 123 parser.process_exceptions(exceptions_file) 124 124 125 - if self.options.get("start-line") or self.options.get("end-line"): 126 - raise self.severe('generate-cross-refs can\'t be used with "start-line" or "end-line"') 127 - 128 125 # Store references on a symbol dict to be used at check time 129 126 if 'warn-broken' in self.options: 130 127 env._xref_files.add(path) ··· 205 208 rawtext = self.read_rawtext_with_xrefs(env, path) 206 209 207 210 title = os.path.basename(path) 208 - 209 - if startline or endline: 210 - raise self.severe('generate-cross-refs can\'t be used together with "start-line" or "end-line"') 211 211 212 212 if "code" not in self.options: 213 213 rawtext = ".. parsed-literal::\n\n" + rawtext