Skip to content

Commit f7c7190

Browse files
bulwahnmartinkpetersen
authored andcommitted
scsi: core: Really include kunit tests with SCSI_LIB_KUNIT_TEST
Commit 25a1f7a ("scsi: core: Add kunit tests for scsi_check_passthrough()") adds the config SCSI_LIB_KUNIT_TEST and corresponding tests. Due to naming confusion, the actual tests would only be included when the non-existing config SCSI_KUNIT_TEST is enabled (note this missing 'LIB' in the config name). So, they are basically dead right now. Adjust the name to actual existing config. Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com> Link: https://lore.kernel.org/r/20240207145603.15680-1-lukas.bulwahn@gmail.com Reviewed-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 4ad9465 commit f7c7190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/scsi_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3435,6 +3435,6 @@ void scsi_build_sense(struct scsi_cmnd *scmd, int desc, u8 key, u8 asc, u8 ascq)
34353435
}
34363436
EXPORT_SYMBOL_GPL(scsi_build_sense);
34373437

3438-
#ifdef CONFIG_SCSI_KUNIT_TEST
3438+
#ifdef CONFIG_SCSI_LIB_KUNIT_TEST
34393439
#include "scsi_lib_test.c"
34403440
#endif

0 commit comments

Comments
 (0)