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

mcb: core: fix kernel-doc warnings

Correct function comments to prevent warnings from
scripts/kernel-doc.

mcb-core.c:270: warning: Function parameter or member 'carrier' not described in 'mcb_alloc_bus'
mcb-core.c:336: warning: expecting prototype for mcb_bus_put(). Prototype was for mcb_bus_get() instead
mcb-core.c:463: warning: Function parameter or member 'mem' not described in 'mcb_release_mem'
mcb-core.c:463: warning: Excess function parameter 'dev' description in 'mcb_release_mem'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Johannes Thumshirn <morbidrsa@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20231206055821.17284-1-rdunlap@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Randy Dunlap and committed by
Greg Kroah-Hartman
ce8df3f4 3634783b

+3 -2
+3 -2
drivers/mcb/mcb-core.c
··· 263 263 264 264 /** 265 265 * mcb_alloc_bus() - Allocate a new @mcb_bus 266 + * @carrier: generic &struct device for the carrier device 266 267 * 267 268 * Allocate a new @mcb_bus. 268 269 */ ··· 328 327 EXPORT_SYMBOL_NS_GPL(mcb_release_bus, MCB); 329 328 330 329 /** 331 - * mcb_bus_put() - Increment refcnt 330 + * mcb_bus_get() - Increment refcnt 332 331 * @bus: The @mcb_bus 333 332 * 334 333 * Get a @mcb_bus' ref ··· 456 455 457 456 /** 458 457 * mcb_release_mem() - Release memory requested by device 459 - * @dev: The @mcb_device that requested the memory 458 + * @mem: The memory resource to be released 460 459 * 461 460 * Release memory that was prior requested via @mcb_request_mem(). 462 461 */