aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorNiklas Cassel <[email protected]>2023-05-11 03:13:38 +0200
committerMartin K. Petersen <[email protected]>2023-05-22 17:05:19 -0400
commit734326937b65cec7ffd00bfbbce0f791ac4aac84 (patch)
treee9d2399a99fc5ecbacb93ee72968afcebcdfccc0 /lib/test_fortify/write_overflow-strlcpy-src.c
parent3d848ca1ebc8d8864f25bd461914c93eff82a2d2 (diff)
scsi: core: Rename and move get_scsi_ml_byte()
SCSI has two different getters: - get_XXX_byte() (in scsi_cmnd.h) which takes a struct scsi_cmnd *, and - XXX_byte() (in scsi.h) which takes a scmd->result. The proper name for get_scsi_ml_byte() should thus be without the get_ prefix, as it takes a scmd->result. Rename the function to rectify this. (This change was suggested by Mike Christie.) Additionally, move get_scsi_ml_byte() to scsi_priv.h since both scsi_lib.c and scsi_error.c will need to use this helper in a follow-up patch. Cc: Mike Christie <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Niklas Cassel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions