]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: ufs: core: Improve return value documentation
authorBart Van Assche <bvanassche@acm.org>
Mon, 23 Jun 2025 21:59:01 +0000 (14:59 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Jul 2025 01:43:21 +0000 (21:43 -0400)
commitcc59f3b68542a2ef05e7afd0cc329ff8b8a649d0
treed8354840c87594ae5014d5d805568c56c41ed6ce
parent26b971d58ab9f0d5003ac750a97bb88cec7aa2e1
scsi: ufs: core: Improve return value documentation

Some functions return a negative value to indicate an error while other
functions return a value != 0 to indicate an error. Document the return
value behavior where this documentation is missing and fix the return
value documentation where necessary. Add warnings to detect mismatches
between documentation and implementation. This matters because several
sysfs callback functions only work correctly if a negative value is
returned upon error.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20250623215909.4169007-1-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c