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

driver core: attribute_container: fix W=1 warnings

Fix the following make W=1 kernel build warnings:

drivers/base/attribute_container.c:304: warning: Function parameter or member 'fn' not described in 'attribute_container_device_trigger_safe'
drivers/base/attribute_container.c:304: warning: Function parameter or member 'undo' not described in 'attribute_container_device_trigger_safe'
drivers/base/attribute_container.c:357: warning: Function parameter or member 'fn' not described in 'attribute_container_device_trigger'

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210512072233.3817056-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Yang Yingliang and committed by
Greg Kroah-Hartman
a6daf4bb 8c60a141

+3 -3
+3 -3
drivers/base/attribute_container.c
··· 284 284 * matching classdev or fail all of them. 285 285 * 286 286 * @dev: The generic device to run the trigger for 287 - * @fn the function to execute for each classdev. 288 - * @undo A function to undo the work previously done in case of error 287 + * @fn: the function to execute for each classdev. 288 + * @undo: A function to undo the work previously done in case of error 289 289 * 290 290 * This function is a safe version of 291 291 * attribute_container_device_trigger. It stops on the first error and ··· 343 343 * attribute_container_device_trigger - execute a trigger for each matching classdev 344 344 * 345 345 * @dev: The generic device to run the trigger for 346 - * @fn the function to execute for each classdev. 346 + * @fn: the function to execute for each classdev. 347 347 * 348 348 * This function is for executing a trigger when you need to know both 349 349 * the container and the classdev. If you only care about the