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: kdoc: simplify the output-item passing

Since our output items contain their name, we don't need to pass it
separately.

Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

+3 -3
+2 -2
scripts/lib/kdoc/kdoc_files.py
··· 275 275 self.config.log.warning("No kernel-doc for file %s", fname) 276 276 continue 277 277 278 - for name, arg in self.results[fname]: 279 - m = self.out_msg(fname, name, arg) 278 + for arg in self.results[fname]: 279 + m = self.out_msg(fname, arg.name, arg) 280 280 281 281 if m is None: 282 282 ln = arg.get("ln", 0)
+1 -1
scripts/lib/kdoc/kdoc_parser.py
··· 284 284 del sections[section] 285 285 sectionlist.remove(section) 286 286 287 - self.entries.append((name, item)) 287 + self.entries.append(item) 288 288 289 289 self.config.log.debug("Output: %s:%s = %s", dtype, name, pformat(args)) 290 290