2026-05-05 09:41 ftp://ftp.de.debian.org/debian/pool/main/t/tgt/tgt_1.0.85.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: f01120b (2026-05-05 11:35:05 +0200) count: 749 710 elapsed-time: 12.8 11.1 head-timing-info: old-timing-info: head results: tgt-1.0.85/usr/util.h:229:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __WORDSIZE [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/util.h:234:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __WORDSIZE [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/util.h:239:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __WORDSIZE [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs.c:100:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable backingstore_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs.c:117:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs.c:164:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs.c:206:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bs_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs.c:227:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs.c:264:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BSDIR [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs.c:338:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs.c:387:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs.c:405:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs.c:424:8: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] tgt-1.0.85/usr/bs.c:421:7: note: outer condition: ret tgt-1.0.85/usr/bs.c:424:8: note: identical inner condition: ret tgt-1.0.85/usr/bs.c:315:13: style: Condition 'sig_fd<0' is always true [knownConditionTrueFalse] tgt-1.0.85/usr/bs.c:314:11: note: Assignment 'sig_fd=-1', assigned value is -1 tgt-1.0.85/usr/bs.c:315:13: note: Condition 'sig_fd<0' is always true tgt-1.0.85/usr/bs.c:401:10: style:inconclusive: Function 'bs_thread_open' argument 3 names different: declaration '' definition 'nr_threads'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/bs.c:69:21: style: Parameter 'opcodes' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/bs.c:77:56: style: Parameter 'bst' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/bs.c:270:18: style: Variable 'dirent' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_aio.c:90:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IO_CMD_PWRITE [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_aio.c:129:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_aio.c:191:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dev_list_entry [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_aio.c:218:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_aio.c:267:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_aio.c:283:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_aio.c:326:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_aio.c:243:50: style: Parameter 'ep' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/bs_aio.c:385:42: style: Parameter 'lu' can be declared as pointer to const. However it seems that 'bs_aio_close' is a callback function, if 'lu' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/bs_aio.c:421:21: note: You might need to cast the function pointer here tgt-1.0.85/usr/bs_aio.c:385:42: note: Parameter 'lu' can be declared as pointer to const tgt-1.0.85/usr/bs_glfs.c:83:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gfd [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_glfs.c:409:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_SYNC [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_glfs.c:461:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gfd [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_glfs.c:524:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable logfile [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_glfs.c:534:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gfd [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_glfs.c:470:14: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] tgt-1.0.85/usr/bs_glfs.c:489:16: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] tgt-1.0.85/usr/bs_glfs.c:237:12: style: Condition 'ret!=0' is always false [knownConditionTrueFalse] tgt-1.0.85/usr/bs_glfs.c:236:25: note: Calling function 'bs_glfs_discard' returns 0 tgt-1.0.85/usr/bs_glfs.c:236:25: note: Assignment 'ret=bs_glfs_discard(gfd,offset,tl)', assigned value is 0 tgt-1.0.85/usr/bs_glfs.c:237:12: note: Condition 'ret!=0' is always false tgt-1.0.85/usr/bs_glfs.c:347:42: style: Condition 'bs_glfs_discard(gfd,offset,tl)!=0' is always false [knownConditionTrueFalse] tgt-1.0.85/usr/bs_glfs.c:347:24: note: Calling function 'bs_glfs_discard' returns 0 tgt-1.0.85/usr/bs_glfs.c:347:42: note: Condition 'bs_glfs_discard(gfd,offset,tl)!=0' is always false tgt-1.0.85/usr/bs_glfs.c:381:15: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tgt-1.0.85/usr/bs_glfs.c:377:22: note: Assuming allocation function fails tgt-1.0.85/usr/bs_glfs.c:377:22: note: Assignment 'origp=strdup(image)', assigned value is 0 tgt-1.0.85/usr/bs_glfs.c:380:4: note: p is assigned 'origp' here. tgt-1.0.85/usr/bs_glfs.c:381:15: note: Null pointer dereference tgt-1.0.85/usr/bs_glfs.c:478:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] tgt-1.0.85/usr/bs_glfs.c:477:14: note: Assuming allocation function fails tgt-1.0.85/usr/bs_glfs.c:477:14: note: Assignment 'ret=malloc(len+1)', assigned value is 0 tgt-1.0.85/usr/bs_glfs.c:478:10: note: Null pointer dereference tgt-1.0.85/usr/bs_glfs.c:186:51: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] tgt-1.0.85/usr/bs_glfs.c:425:7: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] tgt-1.0.85/usr/bs_glfs.c:422:7: note: ret is assigned tgt-1.0.85/usr/bs_glfs.c:425:7: note: ret is overwritten tgt-1.0.85/usr/bs_glfs.c:73:39: style: Parameter 'gfd' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/bs_glfs.c:160:10: style: Variable 'spos' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_glfs.c:161:10: style: Variable 'dpos' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_glfs.c:210:20: style: Variable 'pg' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_glfs.c:375:35: style: Parameter 'image' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/bs_glfs.c:498:42: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/bs_glfs.c:513:8: style: Variable 'sloglevel' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_glfs.c:181:40: portability: 'scsi_get_out_buffer(cmd)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/bs_null.c:43:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_null.c:47:43: style: Parameter 'lu' can be declared as pointer to const. However it seems that 'bs_null_close' is a callback function, if 'lu' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/bs_null.c:55:15: note: You might need to cast the function pointer here tgt-1.0.85/usr/bs_null.c:47:43: note: Parameter 'lu' can be declared as pointer to const tgt-1.0.85/usr/bs_rbd.c:104:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rbd_image [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_rbd.c:277:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_rbd.c:431:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_rbd.c:527:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_rbd.c:472:14: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] tgt-1.0.85/usr/bs_rbd.c:491:16: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] tgt-1.0.85/usr/bs_rbd.c:588:3: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] tgt-1.0.85/usr/bs_rbd.c:71:15: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] tgt-1.0.85/usr/bs_rbd.c:67:22: note: Assuming allocation function fails tgt-1.0.85/usr/bs_rbd.c:67:22: note: Assignment 'origp=strdup(path)', assigned value is 0 tgt-1.0.85/usr/bs_rbd.c:70:4: note: p is assigned 'origp' here. tgt-1.0.85/usr/bs_rbd.c:71:15: note: Null pointer dereference tgt-1.0.85/usr/bs_rbd.c:480:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] tgt-1.0.85/usr/bs_rbd.c:479:14: note: Assuming allocation function fails tgt-1.0.85/usr/bs_rbd.c:479:14: note: Assignment 'ret=malloc(len+1)', assigned value is 0 tgt-1.0.85/usr/bs_rbd.c:480:10: note: Null pointer dereference tgt-1.0.85/usr/bs_rbd.c:226:51: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] tgt-1.0.85/usr/bs_rbd.c:65:35: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/bs_rbd.c:195:10: style: Variable 'spos' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_rbd.c:196:10: style: Variable 'dpos' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_rbd.c:248:20: style: Variable 'pg' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_rbd.c:501:42: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/bs_rbd.c:221:40: portability: 'scsi_get_out_buffer(cmd)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/bs_rdwr.c:147:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POSIX_FADV_NOREUSE [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_rdwr.c:358:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_rdwr.c:213:12: style: Condition 'ret!=0' is always true [knownConditionTrueFalse] tgt-1.0.85/usr/bs_rdwr.c:212:27: note: Calling function 'unmap_file_region' returns -1 tgt-1.0.85/usr/bs_rdwr.c:212:27: note: Assignment 'ret=unmap_file_region(fd,offset,tl)', assigned value is -1 tgt-1.0.85/usr/bs_rdwr.c:213:12: note: Condition 'ret!=0' is always true tgt-1.0.85/usr/bs_rdwr.c:327:43: style: Condition 'unmap_file_region(fd,offset,tl)!=0' is always true [knownConditionTrueFalse] tgt-1.0.85/usr/bs_rdwr.c:327:26: note: Calling function 'unmap_file_region' returns -1 tgt-1.0.85/usr/bs_rdwr.c:327:43: note: Condition 'unmap_file_region(fd,offset,tl)!=0' is always true tgt-1.0.85/usr/bs_rdwr.c:156:51: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] tgt-1.0.85/usr/bs_rdwr.c:126:10: style: Variable 'spos' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_rdwr.c:127:10: style: Variable 'dpos' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_rdwr.c:181:20: style: Variable 'pg' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_rdwr.c:375:43: style: Parameter 'lu' can be declared as pointer to const. However it seems that 'bs_rdwr_close' is a callback function, if 'lu' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/bs_rdwr.c:420:15: note: You might need to cast the function pointer here tgt-1.0.85/usr/bs_rdwr.c:375:43: note: Parameter 'lu' can be declared as pointer to const tgt-1.0.85/usr/bs_rdwr.c:151:40: portability: 'scsi_get_out_buffer(cmd)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/bs_sg.c:62:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sg.c:82:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sg.c:156:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sg.c:208:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_TO_DEV [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sg.c:239:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sg.c:299:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_TO_DEV [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sg.c:319:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sg.c:339:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sg.c:364:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_GET_COMMAND_Q [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sg.c:388:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_GET_VERSION_NUM [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sg.c:441:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sg.c:315:2: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] tgt-1.0.85/usr/bs_sg.c:128:18: style: Variable 'dev' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_sg.c:197:18: style: Variable 'dev' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_sg.c:308:32: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/bs_sg.c:474:41: style: Parameter 'lu' can be declared as pointer to const. However it seems that 'bs_sg_close' is a callback function, if 'lu' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/bs_sg.c:501:15: note: You might need to cast the function pointer here tgt-1.0.85/usr/bs_sg.c:474:41: note: Parameter 'lu' can be declared as pointer to const tgt-1.0.85/usr/bs_sg.c:61:11: portability: 'p_read' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/bs_sg.c:81:12: portability: 'p_write' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/bs_sheepdog.c:378:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:439:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:464:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:502:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:525:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:566:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:594:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_base [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:619:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:686:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data_vdi_id [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:778:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:842:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:884:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:945:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:1110:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:1144:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:1285:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:1308:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:1391:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:1459:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_sheepdog.c:777:6: style: Condition 'ret' is always false [knownConditionTrueFalse] tgt-1.0.85/usr/bs_sheepdog.c:776:14: note: Calling function 'do_req' returns 0 tgt-1.0.85/usr/bs_sheepdog.c:776:14: note: Assignment 'ret=do_req(ai,(struct sheepdog_req*)&hdr,buf,&wlen,&rlen)', assigned value is 0 tgt-1.0.85/usr/bs_sheepdog.c:777:6: note: Condition 'ret' is always false tgt-1.0.85/usr/bs_sheepdog.c:841:6: style: Condition 'ret' is always false [knownConditionTrueFalse] tgt-1.0.85/usr/bs_sheepdog.c:840:14: note: Calling function 'do_req' returns 0 tgt-1.0.85/usr/bs_sheepdog.c:840:14: note: Assignment 'ret=do_req(ai,(struct sheepdog_req*)&hdr,NULL,&wlen,&rlen)', assigned value is 0 tgt-1.0.85/usr/bs_sheepdog.c:841:6: note: Condition 'ret' is always false tgt-1.0.85/usr/bs_sheepdog.c:1104:6: style: Condition 'ret' is always false [knownConditionTrueFalse] tgt-1.0.85/usr/bs_sheepdog.c:1103:14: note: Calling function 'do_req' returns 0 tgt-1.0.85/usr/bs_sheepdog.c:1103:14: note: Assignment 'ret=do_req(ai,(struct sheepdog_req*)&hdr,buf,&wlen,&rlen)', assigned value is 0 tgt-1.0.85/usr/bs_sheepdog.c:1104:6: note: Condition 'ret' is always false tgt-1.0.85/usr/bs_sheepdog.c:1283:6: style: Condition '!ret' is always true [knownConditionTrueFalse] tgt-1.0.85/usr/bs_sheepdog.c:1281:14: note: Calling function 'do_req' returns 0 tgt-1.0.85/usr/bs_sheepdog.c:1281:14: note: Assignment 'ret=do_req(ai,(struct sheepdog_req*)&hdr,NULL,&wlen,&rlen)', assigned value is 0 tgt-1.0.85/usr/bs_sheepdog.c:1283:6: note: Condition '!ret' is always true tgt-1.0.85/usr/bs_sheepdog.c:584:21: style: Parameter 'wlen' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/bs_sheepdog.c:746:27: style: Variable 'rsp' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_sheepdog.c:831:27: style: Variable 'rsp' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_sheepdog.c:1082:27: style: Variable 'rsp' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_sheepdog.c:1271:27: style: Variable 'rsp' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_sheepdog.c:620:12: error: Uninitialized variable: sockfd [uninitvar] tgt-1.0.85/usr/bs_sheepdog.c:782:15: warning: Uninitialized variable: rsp->result [uninitvar] tgt-1.0.85/usr/bs_sheepdog.c:746:33: note: Assignment 'rsp=(struct sheepdog_obj_rsp*)&hdr', assigned value is tgt-1.0.85/usr/bs_sheepdog.c:782:15: note: Uninitialized variable: rsp->result tgt-1.0.85/usr/bs_sheepdog.c:846:15: error: Uninitialized variable: rsp->result [uninitvar] tgt-1.0.85/usr/bs_sheepdog.c:831:33: note: Assignment 'rsp=(struct sheepdog_obj_rsp*)&hdr', assigned value is tgt-1.0.85/usr/bs_sheepdog.c:846:15: note: Uninitialized variable: rsp->result tgt-1.0.85/usr/bs_sheepdog.c:1109:11: error: Uninitialized variable: rsp->result [uninitvar] tgt-1.0.85/usr/bs_sheepdog.c:1082:33: note: Assignment 'rsp=(struct sheepdog_vdi_rsp*)&hdr', assigned value is tgt-1.0.85/usr/bs_sheepdog.c:1109:11: note: Uninitialized variable: rsp->result tgt-1.0.85/usr/bs_sheepdog.c:1283:19: error: Uninitialized variable: rsp->result [uninitvar] tgt-1.0.85/usr/bs_sheepdog.c:1271:33: note: Assignment 'rsp=(struct sheepdog_vdi_rsp*)&hdr', assigned value is tgt-1.0.85/usr/bs_sheepdog.c:1283:19: note: Uninitialized variable: rsp->result tgt-1.0.85/usr/bs_sheepdog.c:141:10: style: struct member 'sheepdog_rsp::proto_ver' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:142:10: style: struct member 'sheepdog_rsp::opcode' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:143:11: style: struct member 'sheepdog_rsp::flags' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:144:11: style: struct member 'sheepdog_rsp::epoch' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:145:11: style: struct member 'sheepdog_rsp::id' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:146:11: style: struct member 'sheepdog_rsp::data_length' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:147:11: style: struct member 'sheepdog_rsp::result' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:148:11: style: struct member 'sheepdog_rsp::opcode_specific' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:155:11: style: struct member 'sheepdog_obj_req::epoch' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:156:11: style: struct member 'sheepdog_obj_req::id' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:161:10: style: struct member 'sheepdog_obj_req::copy_policy' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:162:10: style: struct member 'sheepdog_obj_req::ec_index' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:163:10: style: struct member 'sheepdog_obj_req::reserved' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:164:11: style: struct member 'sheepdog_obj_req::rsvd' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:166:11: style: struct member 'sheepdog_obj_req::pad' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:189:11: style: struct member 'sheepdog_vdi_req::epoch' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:190:11: style: struct member 'sheepdog_vdi_req::id' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:192:11: style: struct member 'sheepdog_vdi_req::vdi_size' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:194:10: style: struct member 'sheepdog_vdi_req::copies' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:195:10: style: struct member 'sheepdog_vdi_req::copy_policy' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:196:10: style: struct member 'sheepdog_vdi_req::ec_index' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:197:10: style: struct member 'sheepdog_vdi_req::block_size_shift' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:200:11: style: struct member 'sheepdog_vdi_req::pad' is never used. [unusedStructMember] tgt-1.0.85/usr/bs_sheepdog.c:600:18: style: Variable 'iov[1].iov_len' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/bs_ssc.c:105:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_ssc.c:134:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_ssc.c:255:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_ssc.c:274:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_ssc.c:389:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_ssc.c:454:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_ssc.c:627:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_ssc.c:687:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/bs_ssc.c:48:29: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/bs_ssc.c:59:61: style: Parameter 'lu' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/bs_ssc.c:65:39: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/bs_ssc.c:198:26: style: Variable 'h' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_ssc.c:226:26: style: Variable 'h' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_ssc.c:313:26: style: Variable 'h' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/bs_ssc.c:685:42: style: Parameter 'lu' can be declared as pointer to const. However it seems that 'bs_ssc_close' is a callback function, if 'lu' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/bs_ssc.c:697:15: note: You might need to cast the function pointer here tgt-1.0.85/usr/bs_ssc.c:685:42: note: Parameter 'lu' can be declared as pointer to const tgt-1.0.85/usr/concat_buf.c:33:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/concat_buf.c:78:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/concat_buf.c:57:45: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/driver.c:45:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/driver.c:36:28: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/driver.c:62:50: style: Parameter 'drv' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/chap.c:74:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/chap.c:114:40: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/chap.c:168:47: style: Parameter 'intnum' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/chap.c:179:43: style: Parameter 'intnum' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/chap.c:225:52: style: Parameter 'encoded' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/chap.c:244:43: style: Parameter 'encoded' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/chap.c:311:94: style: Parameter 'challenge' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/chap.c:322:95: style: Parameter 'challenge' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/chap.c:197:9: style: Variable 'octets' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/iscsi/conn.c:51:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/conn.c:101:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/conn.c:220:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clist [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/conn.c:246:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGTADM_NO_TARGET [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/conn.c:249:16: error: Uninitialized variable: session->tsih [uninitvar] tgt-1.0.85/usr/iscsi/iscsi_tcp.c:648:9: error: There is an unknown macro here somewhere. Configuration is required. If _TAB2 is a macro then please configure it. [unknownMacro] tgt-1.0.85/usr/iscsi/iscsid.c:271:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clist [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:439:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:839:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1056:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATA_READ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1136:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAM_STAT_GOOD [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1270:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOLLIN [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1283:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_SIMPLE_TAG [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1322:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1402:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOLLIN [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1436:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOLLIN [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1448:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ABORT_TASK [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1506:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOLLIN [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1566:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable c_hlist [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1623:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1659:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1712:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1781:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:1937:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SAM_STAT_GOOD [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:2004:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data_length [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:2048:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:2222:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOLLOUT [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:2235:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:2402:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOLLIN [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iscsid.c:878:21: style: The if condition is the same as the previous if condition [duplicateCondition] tgt-1.0.85/usr/iscsi/iscsid.c:875:21: note: First condition tgt-1.0.85/usr/iscsi/iscsid.c:878:21: note: Second condition tgt-1.0.85/usr/iscsi/iscsid.c:2310:21: style: Variable 'conn->tx_iostate' is reassigned a value before the old one has been used. [redundantAssignment] tgt-1.0.85/usr/iscsi/iscsid.c:2306:21: note: conn->tx_iostate is assigned tgt-1.0.85/usr/iscsi/iscsid.c:2310:21: note: conn->tx_iostate is overwritten tgt-1.0.85/usr/iscsi/iscsid.c:102:58: style: Parameter 'searchKey' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/iscsid.c:104:15: style: Variable 'key' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iscsid.c:437:15: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iscsid.c:437:23: style: Variable 'session_type' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iscsid.c:661:22: style: Variable 'req' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iscsid.c:1192:20: style: Variable 'req' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iscsid.c:1278:20: style: Variable 'req' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iscsid.c:1299:20: style: Variable 'req' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iscsid.c:1353:30: style: Variable 'ahs_bidi' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iscsid.c:1390:20: style: Variable 'req' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iscsid.c:1406:43: style: Parameter 'mreq' can be declared as pointer to const. However it seems that 'iscsi_tm_done' is a callback function, if 'mreq' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/iscsi/iscsid.c:2556:21: note: You might need to cast the function pointer here tgt-1.0.85/usr/iscsi/iscsid.c:1406:43: note: Parameter 'mreq' can be declared as pointer to const tgt-1.0.85/usr/iscsi/iscsid.c:1498:20: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iscsid.c:1542:20: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iscsid.c:1726:20: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iscsid.c:2464:10: style: Variable 'addr' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iscsid.c:2464:17: style: Variable 'q' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iscsid.c:933:24: portability: 'conn->text_rsp_buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/iscsi/iscsid.c:1154:17: portability: 'conn->rsp.data' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/iscsi/iscsid.c:1578:30: portability: 'task->data' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/iscsi/iscsid.c:1567:13: error: Uninitialized variable: task->tag [uninitvar] tgt-1.0.85/usr/iscsi/iscsid.c:1520:7: style: Variable 'err' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/iscsi/iser.c:243:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBV_WR_SEND [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:261:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBV_SEND_SIGNALED [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:319:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable task_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:426:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBV_WR_RDMA_WRITE [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:469:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBV_WR_RDMA_READ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:567:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPC_PRIVATE [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:603:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:620:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pagesize [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:680:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:731:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable E2BIG [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:807:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable task_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:819:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable task_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:907:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBV_ACCESS_LOCAL_WRITE [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:1014:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBV_ACCESS_LOCAL_WRITE [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:1396:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:1494:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iser_conn_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:1882:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ABORT_TASK [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:1982:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_SIMPLE_TAG [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:1999:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dout_task_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:2030:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable task_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:2147:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:2181:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable exec_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:2330:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:2387:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATA_WRITE [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:2474:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable session_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:2570:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAGAIN [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:2598:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:2644:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:2790:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:2852:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:2990:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBV_WC_WR_FLUSH_ERR [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:3055:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBV_WC_SUCCESS [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:3191:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IBV_EVENT_COMM_EST [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:3326:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iser_dev_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:3344:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:3374:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:3439:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:3476:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:3486:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iser_conn_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:3592:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser.c:597:9: style: Obsolete function 'valloc' called. It is recommended to use 'malloc' or 'mmap' instead. [prohibitedvallocCalled] tgt-1.0.85/usr/iscsi/iser.c:3464:9: warning: Identical condition and return expression 'err', return value is always 0 [identicalConditionAfterEarlyExit] tgt-1.0.85/usr/iscsi/iser.c:3461:6: note: If condition 'err' is true, the function will return/exit tgt-1.0.85/usr/iscsi/iser.c:3464:9: note: Returning identical expression 'err' tgt-1.0.85/usr/iscsi/iser.c:1467:6: style: Condition '!dev_found' is always true [knownConditionTrueFalse] tgt-1.0.85/usr/iscsi/iser.c:1460:14: note: Assignment 'dev_found=0', assigned value is 0 tgt-1.0.85/usr/iscsi/iser.c:1462:21: note: Assuming condition is false tgt-1.0.85/usr/iscsi/iser.c:1467:6: note: Condition '!dev_found' is always true tgt-1.0.85/usr/iscsi/iser.c:1489:6: style: Condition 'err' is always false [knownConditionTrueFalse] tgt-1.0.85/usr/iscsi/iser.c:1488:22: note: Calling function 'iser_conn_init' returns 0 tgt-1.0.85/usr/iscsi/iser.c:1488:22: note: Assignment 'err=iser_conn_init(conn)', assigned value is 0 tgt-1.0.85/usr/iscsi/iser.c:1489:6: note: Condition 'err' is always false tgt-1.0.85/usr/iscsi/iser.c:2519:45: style:inconclusive: Function 'iser_login_rx' argument 1 names different: declaration 'task' definition 'rx_task'. [funcArgNamesDifferent] tgt-1.0.85/usr/iscsi/iser.c:110:45: note: Function 'iser_login_rx' argument 1 names different: declaration 'task' definition 'rx_task'. tgt-1.0.85/usr/iscsi/iser.c:2519:45: note: Function 'iser_login_rx' argument 1 names different: declaration 'task' definition 'rx_task'. tgt-1.0.85/usr/iscsi/iser.c:211:12: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/iser.c:212:21: style: Parameter 'srmr' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/iser.c:229:12: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/iser.c:230:21: style: Parameter 'srmr' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/iser.c:251:23: style: Parameter 'srmr' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/iser.c:500:23: style: Variable 'wr' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser.c:533:23: style: Variable 'wr' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser.c:1393:56: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/iser.c:1416:20: style: Variable 'conn' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser.c:1426:20: style: Variable 'conn' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser.c:1437:20: style: Variable 'conn' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser.c:1606:60: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/iser.c:1627:56: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/iser.c:1643:57: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/iser.c:1932:42: style: Parameter 'mreq' can be declared as pointer to const. However it seems that 'iser_tm_done' is a callback function, if 'mreq' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/iscsi/iser.c:3669:21: note: You might need to cast the function pointer here tgt-1.0.85/usr/iscsi/iser.c:1932:42: note: Parameter 'mreq' can be declared as pointer to const tgt-1.0.85/usr/iscsi/iser.c:2008:20: style: Variable 'req_bhs' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser.c:2156:20: style: Variable 'req_bhs' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser.c:2313:20: style: Variable 'req_bhs' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser.c:2320:27: style: Variable 'ahs_extcdb' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser.c:2356:30: style: Variable 'ahs_bidi' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser.c:2685:21: style: Variable 'cmp_task' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser.c:3119:54: style: Parameter 'tev' can be declared as pointer to const. However it seems that 'iser_sched_consume_cq' is a callback function, if 'tev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/iscsi/iser.c:3126:35: note: You might need to cast the function pointer here tgt-1.0.85/usr/iscsi/iser.c:3119:54: note: Parameter 'tev' can be declared as pointer to const tgt-1.0.85/usr/iscsi/iser.c:3134:51: style: Parameter 'tev' can be declared as pointer to const. However it seems that 'iser_sched_poll_cq' is a callback function, if 'tev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/iscsi/iser.c:3305:41: note: You might need to cast the function pointer here tgt-1.0.85/usr/iscsi/iser.c:3134:51: note: Parameter 'tev' can be declared as pointer to const tgt-1.0.85/usr/iscsi/iser.c:3357:45: style: Parameter 'res' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/iser.c:3581:8: style: Variable 'q' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser.c:197:6: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/iscsi/iser.c:200:6: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/iscsi/iser.c:2350:8: portability: 'ahs' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/iscsi/iser.c:2755:24: portability: 'task->pdu.membuf.addr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/iscsi/iser.c:320:26: error: Uninitialized variable: cur_buf->offset [uninitvar] tgt-1.0.85/usr/iscsi/iser.c:808:31: error: Uninitialized variables: membuf.addr, membuf.size, membuf.offset, membuf.task_list, membuf.rdma, membuf.pool_list [uninitvar] tgt-1.0.85/usr/iscsi/iser.c:820:30: error: Uninitialized variables: membuf.addr, membuf.size, membuf.offset, membuf.task_list, membuf.rdma, membuf.pool_list [uninitvar] tgt-1.0.85/usr/iscsi/iser.c:1462:12: error: Uninitialized variable: dev->ibv_ctxt [uninitvar] tgt-1.0.85/usr/iscsi/iser.c:2002:22: error: Uninitialized variables: dout_task.conn, dout_task.rxd, dout_task.txd, dout_task.rdmad, dout_task.opcode, dout_task.is_immediate, dout_task.is_read, dout_task.is_write, dout_task.unsolicited, dout_task.tag, dout_task.cmd_sn, dout_task.flags, dout_task.in_len, dout_task.out_len, dout_task.unsol_sz, dout_task.unsol_remains, dout_task.rdma_rd_sz, dout_task.rdma_rd_remains, dout_task.rdma_wr_sz, dout_task.rdma_wr_remains, dout_task.rem_read_stag, dout_task.rem_write_stag, dout_task.rem_read_va, dout_task.rem_write_va, dout_task.in_buf_list, dout_task.in_buf_num, dout_task.out_buf_list, dout_task.out_buf_num, dout_task.exec_list, dout_task.rdma_list, dout_task.tx_list, dout_task.recv_list, dout_task.session_list, dout_task.result, dout_task.scmd, dout_task.extdata [uninitvar] tgt-1.0.85/usr/iscsi/iser.c:2031:18: error: Uninitialized variable: cur_buf->rdma [uninitvar] tgt-1.0.85/usr/iscsi/iser.c:2185:36: error: Uninitialized variables: task.conn, task.pdu, task.rxd, task.txd, task.rdmad, task.opcode, task.is_immediate, task.is_read, task.is_write, task.unsolicited, task.tag, task.cmd_sn, task.flags, task.in_len, task.out_len, task.unsol_sz, task.unsol_remains, task.rdma_rd_sz, task.rdma_rd_remains, task.rdma_wr_sz, task.rdma_wr_remains, task.rem_read_stag, task.rem_write_stag, task.rem_read_va, task.rem_write_va, task.in_buf_list, task.in_buf_num, task.out_buf_list, task.out_buf_num, task.exec_list, task.rdma_list, task.tx_list, task.recv_list, task.session_list, task.dout_task_list, task.result, task.scmd, task.extdata [uninitvar] tgt-1.0.85/usr/iscsi/iser.c:2186:22: error: Uninitialized variables: next_task.conn, next_task.pdu, next_task.rxd, next_task.txd, next_task.rdmad, next_task.opcode, next_task.is_immediate, next_task.is_read, next_task.is_write, next_task.unsolicited, next_task.tag, next_task.cmd_sn, next_task.flags, next_task.in_len, next_task.out_len, next_task.unsol_sz, next_task.unsol_remains, next_task.rdma_rd_sz, next_task.rdma_rd_remains, next_task.rdma_wr_sz, next_task.rdma_wr_remains, next_task.rem_read_stag, next_task.rem_write_stag, next_task.rem_read_va, next_task.rem_write_va, next_task.in_buf_list, next_task.in_buf_num, next_task.out_buf_list, next_task.out_buf_num, next_task.exec_list, next_task.rdma_list, next_task.tx_list, next_task.recv_list, next_task.session_list, next_task.dout_task_list, next_task.result, next_task.scmd, next_task.extdata [uninitvar] tgt-1.0.85/usr/iscsi/iser.c:2475:13: error: Uninitialized variable: task->tag [uninitvar] tgt-1.0.85/usr/iscsi/iser.c:3489:30: error: Uninitialized variables: dev.list, dev.ibv_ctxt, dev.pd, dev.cq, dev.cq_channel, dev.device_attr, dev.membuf_regbuf, dev.membuf_listbuf, dev.membuf_mr, dev.waiting_for_mem, dev.rdma_hugetbl_shmid, dev.poll_sched, dev.membuf_free, dev.membuf_alloc [uninitvar] tgt-1.0.85/usr/iscsi/iser.c:3511:15: error: Uninitialized variable: conn->h.state [uninitvar] tgt-1.0.85/usr/iscsi/iser.c:3514:8: error: Uninitialized variable: task [uninitvar] tgt-1.0.85/usr/iscsi/iser.c:3511:21: note: Assuming condition is false tgt-1.0.85/usr/iscsi/iser.c:3513:14: note: Assignment 'task=conn->nop_in_task', assigned value is tgt-1.0.85/usr/iscsi/iser.c:3514:8: note: Uninitialized variable: task tgt-1.0.85/usr/iscsi/iser.c:2553:10: style: Variable 'err' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/iscsi/iser_text.c:207:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clist [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser_text.c:418:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser_text.c:797:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tlist [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser_text.c:832:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/iser_text.c:859:21: style: The if condition is the same as the previous if condition [duplicateCondition] tgt-1.0.85/usr/iscsi/iser_text.c:856:21: note: First condition tgt-1.0.85/usr/iscsi/iser_text.c:859:21: note: Second condition tgt-1.0.85/usr/iscsi/iser_text.c:81:65: style: Parameter 'searchKey' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/iser_text.c:84:8: style: Variable 'key' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser_text.c:416:15: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser_text.c:416:23: style: Variable 'session_type' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser_text.c:613:22: style: Variable 'req_bhs' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/iser_text.c:793:103: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/iser_text.c:125:28: portability: 'pdu->membuf.addr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/iscsi/iser_text.c:801:16: error: Uninitialized variable: target->rdma [uninitvar] tgt-1.0.85/usr/iscsi/iser_text.c:798:12: note: Assuming condition is false tgt-1.0.85/usr/iscsi/iser_text.c:801:16: note: Uninitialized variable: target->rdma tgt-1.0.85/usr/iscsi/isns.c:1016:3: error: There is an unknown macro here somewhere. Configuration is required. If list_for_each_entry is a macro then please configure it. [unknownMacro] tgt-1.0.85/usr/iscsi/md5.c:46:28: style:inconclusive: Function 'MD5Init' argument 1 names different: declaration 'context' definition 'ctx'. [funcArgNamesDifferent] tgt-1.0.85/usr/iscsi/md5.h:50:33: note: Function 'MD5Init' argument 1 names different: declaration 'context' definition 'ctx'. tgt-1.0.85/usr/iscsi/md5.c:46:28: note: Function 'MD5Init' argument 1 names different: declaration 'context' definition 'ctx'. tgt-1.0.85/usr/iscsi/md5.c:62:30: style:inconclusive: Function 'MD5Update' argument 1 names different: declaration 'context' definition 'ctx'. [funcArgNamesDifferent] tgt-1.0.85/usr/iscsi/md5.h:51:35: note: Function 'MD5Update' argument 1 names different: declaration 'context' definition 'ctx'. tgt-1.0.85/usr/iscsi/md5.c:62:30: note: Function 'MD5Update' argument 1 names different: declaration 'context' definition 'ctx'. tgt-1.0.85/usr/iscsi/md5.c:102:49: style:inconclusive: Function 'MD5Final' argument 2 names different: declaration 'context' definition 'ctx'. [funcArgNamesDifferent] tgt-1.0.85/usr/iscsi/md5.h:52:60: note: Function 'MD5Final' argument 2 names different: declaration 'context' definition 'ctx'. tgt-1.0.85/usr/iscsi/md5.c:102:49: note: Function 'MD5Final' argument 2 names different: declaration 'context' definition 'ctx'. tgt-1.0.85/usr/iscsi/param.c:29:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/param.c:73:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/param.c:88:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/param.c:111:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/param.c:123:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/param.c:135:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/param.c:174:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/param.c:192:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/param.c:27:31: style:inconclusive: Function 'param_index_by_name' argument 1 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:27:55: style:inconclusive: Function 'param_index_by_name' argument 2 names different: declaration '' definition 'keys'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:41:39: style:inconclusive: Function 'param_set_defaults' argument 1 names different: declaration '' definition 'params'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:41:65: style:inconclusive: Function 'param_set_defaults' argument 2 names different: declaration '' definition 'keys'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:236:40: style:inconclusive: Function 'param_val_to_str' argument 1 names different: declaration '' definition 'keys'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:236:50: style:inconclusive: Function 'param_val_to_str' argument 2 names different: declaration '' definition 'idx'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:236:68: style:inconclusive: Function 'param_val_to_str' argument 3 names different: declaration '' definition 'val'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:236:79: style:inconclusive: Function 'param_val_to_str' argument 4 names different: declaration '' definition 'str'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:244:40: style:inconclusive: Function 'param_str_to_val' argument 1 names different: declaration '' definition 'keys'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:244:50: style:inconclusive: Function 'param_str_to_val' argument 2 names different: declaration '' definition 'idx'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:244:61: style:inconclusive: Function 'param_str_to_val' argument 3 names different: declaration '' definition 'str'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:244:80: style:inconclusive: Function 'param_str_to_val' argument 4 names different: declaration '' definition 'val'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:252:39: style:inconclusive: Function 'param_check_val' argument 1 names different: declaration '' definition 'keys'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:252:49: style:inconclusive: Function 'param_check_val' argument 2 names different: declaration '' definition 'idx'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:252:68: style:inconclusive: Function 'param_check_val' argument 3 names different: declaration '' definition 'val'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:260:38: style:inconclusive: Function 'param_set_val' argument 1 names different: declaration '' definition 'keys'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:260:58: style:inconclusive: Function 'param_set_val' argument 2 names different: declaration '' definition 'param'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:261:10: style:inconclusive: Function 'param_set_val' argument 3 names different: declaration '' definition 'idx'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:261:29: style:inconclusive: Function 'param_set_val' argument 4 names different: declaration '' definition 'val2'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/param.c:27:31: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/param.c:27:55: style: Parameter 'keys' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/iscsi/param.c:55:35: style: Parameter 'str' can be declared as pointer to const. However it seems that 'range_str_to_val' is a callback function, if 'str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/iscsi/param.c:283:16: note: You might need to cast the function pointer here tgt-1.0.85/usr/iscsi/param.c:55:35: note: Parameter 'str' can be declared as pointer to const tgt-1.0.85/usr/iscsi/param.c:79:34: style: Parameter 'str' can be declared as pointer to const. However it seems that 'bool_str_to_val' is a callback function, if 'str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/iscsi/param.c:296:16: note: You might need to cast the function pointer here tgt-1.0.85/usr/iscsi/param.c:79:34: note: Parameter 'str' can be declared as pointer to const tgt-1.0.85/usr/iscsi/param.c:105:48: style: Parameter 'key' can be declared as pointer to const. However it seems that 'minimum_check_val' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/iscsi/param.c:270:15: note: You might need to cast the function pointer here tgt-1.0.85/usr/iscsi/param.c:105:48: note: Parameter 'key' can be declared as pointer to const tgt-1.0.85/usr/iscsi/param.c:117:52: style: Parameter 'key' can be declared as pointer to const. However it seems that 'min_or_zero_check_val' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/iscsi/param.c:277:15: note: You might need to cast the function pointer here tgt-1.0.85/usr/iscsi/param.c:117:52: note: Parameter 'key' can be declared as pointer to const tgt-1.0.85/usr/iscsi/param.c:129:48: style: Parameter 'key' can be declared as pointer to const. However it seems that 'maximum_check_val' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/iscsi/param.c:284:15: note: You might need to cast the function pointer here tgt-1.0.85/usr/iscsi/param.c:129:48: note: Parameter 'key' can be declared as pointer to const tgt-1.0.85/usr/iscsi/param.c:182:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/iscsi/session.c:119:4: error: There is an unknown macro here somewhere. Configuration is required. If _TAB3 is a macro then please configure it. [unknownMacro] tgt-1.0.85/usr/iscsi/sha1.c:93:4: style: Variable 'a' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/iscsi/sha1.c:93:8: style: Variable 'b' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/iscsi/sha1.c:93:12: style: Variable 'c' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/iscsi/sha1.c:93:16: style: Variable 'd' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/iscsi/sha1.c:93:20: style: Variable 'e' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/iscsi/target.c:634:5: error: There is an unknown macro here somewhere. Configuration is required. If _TAB1 is a macro then please configure it. [unknownMacro] tgt-1.0.85/usr/iscsi/transport.c:63:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iscsi_transport_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/iscsi/transport.c:34:20: style:inconclusive: Function 'iscsi_init' argument 1 names different: declaration '' definition 'index'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/transport.c:34:33: style:inconclusive: Function 'iscsi_init' argument 2 names different: declaration '' definition 'args'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/iscsi/transport.c:61:54: style:inconclusive: Function 'iscsi_transport_register' argument 1 names different: declaration '' definition 't'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/libcrc32c.c:161:20: style:inconclusive: Function 'crc32c_le' argument 1 names different: declaration 'crc' definition 'seed'. [funcArgNamesDifferent] tgt-1.0.85/usr/crc32c.h:7:36: note: Function 'crc32c_le' argument 1 names different: declaration 'crc' definition 'seed'. tgt-1.0.85/usr/libcrc32c.c:161:20: note: Function 'crc32c_le' argument 1 names different: declaration 'crc' definition 'seed'. tgt-1.0.85/usr/libcrc32c.c:161:47: style:inconclusive: Function 'crc32c_le' argument 2 names different: declaration 'address' definition 'data'. [funcArgNamesDifferent] tgt-1.0.85/usr/crc32c.h:7:62: note: Function 'crc32c_le' argument 2 names different: declaration 'address' definition 'data'. tgt-1.0.85/usr/libcrc32c.c:161:47: note: Function 'crc32c_le' argument 2 names different: declaration 'address' definition 'data'. tgt-1.0.85/usr/libcrc32c.c:176:46: style:inconclusive: Function 'crc32c_be' argument 2 names different: declaration 'address' definition 'p'. [funcArgNamesDifferent] tgt-1.0.85/usr/crc32c.h:8:62: note: Function 'crc32c_be' argument 2 names different: declaration 'address' definition 'p'. tgt-1.0.85/usr/libcrc32c.c:176:46: note: Function 'crc32c_be' argument 2 names different: declaration 'address' definition 'p'. tgt-1.0.85/usr/libcrc32c.c:176:56: style:inconclusive: Function 'crc32c_be' argument 3 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] tgt-1.0.85/usr/crc32c.h:8:78: note: Function 'crc32c_be' argument 3 names different: declaration 'length' definition 'len'. tgt-1.0.85/usr/libcrc32c.c:176:56: note: Function 'crc32c_be' argument 3 names different: declaration 'length' definition 'len'. tgt-1.0.85/usr/libssc.c:198:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/libssc.c:124:49: style: Parameter 'i' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/libssc.c:211:54: style: Parameter 'i' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/log.c:58:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPC_CREAT [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/log.c:147:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPC_RMID [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/log.c:279:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/log.c:301:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/log.c:309:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/log.c:317:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/log.c:333:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/log.c:368:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/log.c:357:20: style:inconclusive: Function 'log_init' argument 1 names different: declaration 'progname' definition 'program_name'. [funcArgNamesDifferent] tgt-1.0.85/usr/log.h:65:27: note: Function 'log_init' argument 1 names different: declaration 'progname' definition 'program_name'. tgt-1.0.85/usr/log.c:357:20: note: Function 'log_init' argument 1 names different: declaration 'progname' definition 'program_name'. tgt-1.0.85/usr/log.c:92:22: portability: 'la->start' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/log.c:187:12: portability: 'la->tail' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/log.c:275:15: style: Variable 'ops.sem_num' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/log.c:276:15: style: Variable 'ops.sem_flg' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/log.c:329:15: style: Variable 'ops.sem_num' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/log.c:330:15: style: Variable 'ops.sem_flg' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/mgmt.c:76:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mgmt.c:120:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mgmt.c:246:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mgmt.c:335:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mgmt.c:493:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mgmt.c:555:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mgmt.c:568:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mgmt.c:582:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mgmt.c:595:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mgmt.c:614:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOLLOUT [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mgmt.c:643:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mgmt.c:728:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mgmt.c:778:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mgmt.c:276:21: style: Variable 'req' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mgmt.c:438:21: style: Variable 'req' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mgmt.c:623:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mgmt.c:769:8: style: Variable 'path' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mgmt.c:53:6: style: struct member 'mgmt_task::retry' is never used. [unusedStructMember] tgt-1.0.85/usr/mmc.c:270:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mmc.c:2201:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/mmc.c:133:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:163:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:297:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:465:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:483:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:639:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:689:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:754:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:796:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:839:14: style: Variable 'vpd_pg' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:880:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:966:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:1022:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:1175:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:1357:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:1407:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:1462:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:1478:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:1633:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:1777:60: style: Parameter 'cmd' can be declared as pointer to const. However it seems that 'mmc_set_streaming' is a callback function, if 'cmd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/mmc.c:2448:4: note: You might need to cast the function pointer here tgt-1.0.85/usr/mmc.c:1777:60: note: Parameter 'cmd' can be declared as pointer to const tgt-1.0.85/usr/mmc.c:1791:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:1942:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:2112:19: style: Variable 'mmc' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/mmc.c:2177:58: style: Parameter 'cmd' can be declared as pointer to const. However it seems that 'mmc_mode_select' is a callback function, if 'cmd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/mmc.c:2407:4: note: You might need to cast the function pointer here tgt-1.0.85/usr/mmc.c:2177:58: note: Parameter 'cmd' can be declared as pointer to const tgt-1.0.85/usr/mmc.c:2182:59: style: Parameter 'cmd' can be declared as pointer to const. However it seems that 'mmc_set_cd_speed' is a callback function, if 'cmd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/mmc.c:2454:4: note: You might need to cast the function pointer here tgt-1.0.85/usr/mmc.c:2182:59: note: Parameter 'cmd' can be declared as pointer to const tgt-1.0.85/usr/mmc.c:1010:6: style: Variable 'tmp' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/mmc.c:2128:10: style: Variable 'address' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/parser.c:135:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/parser.c:107:23: style:inconclusive: Function 'match_token' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/parser.c:155:28: style:inconclusive: Function 'match_int' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/parser.c:169:30: style:inconclusive: Function 'match_octal' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/parser.c:183:28: style:inconclusive: Function 'match_hex' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/parser.c:197:27: style:inconclusive: Function 'match_strncpy' argument 1 names different: declaration '' definition 'to'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/parser.c:197:44: style:inconclusive: Function 'match_strncpy' argument 2 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/parser.c:197:54: style:inconclusive: Function 'match_strncpy' argument 3 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/parser.c:211:33: style:inconclusive: Function 'match_strdup' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/parser.c:127:38: style: Parameter 's' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/parser.c:197:44: style: Parameter 's' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/sbc.c:83:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/sbc.c:55:34: error: Invalid lseek64() argument nr 3. The value is 3 but the valid values are '0:2'. [invalidFunctionArg] tgt-1.0.85/usr/sbc.c:63:34: error: Invalid lseek64() argument nr 3. The value is 4 but the valid values are '0:2'. [invalidFunctionArg] tgt-1.0.85/usr/sbc.c:52:45: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/sbc.c:60:45: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/sbc.c:194:18: style: Variable 'lu' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/sbc.c:251:18: style: Variable 'lu' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/sbc.c:423:54: style: Parameter 'cmd' can be declared as pointer to const. However it seems that 'sbc_release' is a callback function, if 'cmd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/sbc.c:821:4: note: You might need to cast the function pointer here tgt-1.0.85/usr/sbc.c:423:54: note: Parameter 'cmd' can be declared as pointer to const tgt-1.0.85/usr/sbc.c:438:11: style: Variable 'scb' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/sbc.c:475:18: style: Variable 'lu' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/scsi.c:538:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable itn_itl_info_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/scsi.c:386:43: style:inconclusive: Function 'scsi_get_devid' argument 2 names different: declaration 'pdu' definition 'p'. [funcArgNamesDifferent] tgt-1.0.85/usr/tgtd.h:331:50: note: Function 'scsi_get_devid' argument 2 names different: declaration 'pdu' definition 'p'. tgt-1.0.85/usr/scsi.c:386:43: note: Function 'scsi_get_devid' argument 2 names different: declaration 'pdu' definition 'p'. tgt-1.0.85/usr/scsi.c:388:27: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] tgt-1.0.85/usr/scsi.c:366:43: style: Parameter 'p' can be declared as pointer to const. However it seems that '__scsi_get_devid' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/scsi.c:389:42: note: You might need to cast the function pointer here tgt-1.0.85/usr/scsi.c:366:43: note: Parameter 'p' can be declared as pointer to const tgt-1.0.85/usr/scsi.c:393:34: style: Parameter 'scb' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/scsi.c:438:33: style: Parameter 'scb' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/scsi.c:62:29: style: Variable 'usage' is not assigned a value. [unassignedVariable] tgt-1.0.85/usr/smc.c:54:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/smc.c:218:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable slot_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/smc.c:282:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable slot_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/smc.c:328:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/smc.c:435:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable slot_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/smc.c:512:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/smc.c:564:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/smc.c:573:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/smc.c:606:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable slot_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/smc.c:626:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable slot_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/smc.c:654:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/smc.c:737:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/smc.c:69:9: warning: Identical condition and return expression 'err', return value is always 0 [identicalConditionAfterEarlyExit] tgt-1.0.85/usr/smc.c:63:6: note: If condition 'err' is true, the function will return/exit tgt-1.0.85/usr/smc.c:69:9: note: Returning identical expression 'err' tgt-1.0.85/usr/smc.c:51:46: style: Parameter 's' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/smc.c:82:40: style: Parameter 's' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/smc.c:141:63: style: Parameter 's' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/smc.c:145:22: style: Variable 'attr' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/smc.c:208:71: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/smc.c:298:11: style: Variable 'scb' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/smc.c:420:11: style: Variable 'scb' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/smc.c:601:51: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/smc.c:622:41: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/smc.c:641:65: style: Parameter 'tmp' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/smc.c:709:69: style: Parameter 'tmp' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/spc.c:294:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:400:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable device_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:526:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:612:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mode_pg_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:741:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mode_pg_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:1067:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable registration_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:1191:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable registration_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:1204:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable registration_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:1250:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable registration_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:1343:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:1481:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable registration_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:1529:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable registration_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:1613:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable registration_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:1691:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable registration_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:1795:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:1809:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:1861:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:1889:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:2118:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:2171:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mode_pg_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/spc.c:1820:52: style:inconclusive: Function 'add_mode_page' argument 2 names different: declaration 'params' definition 'p'. [funcArgNamesDifferent] tgt-1.0.85/usr/spc.h:24:59: note: Function 'add_mode_page' argument 2 names different: declaration 'params' definition 'p'. tgt-1.0.85/usr/spc.c:1820:52: note: Function 'add_mode_page' argument 2 names different: declaration 'params' definition 'p'. tgt-1.0.85/usr/spc.c:1975:68: style:inconclusive: Function 'lu_config' argument 3 names different: declaration '' definition 'fn'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/spc.c:134:13: style: Variable 'q' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:148:8: style: Variable 'id_str' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:280:14: style: Variable 'vpd_pg' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:380:20: style: Variable 'dev_list' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:426:11: style: Variable 'scb' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:480:11: style: Variable 'scb' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:554:12: style: Variable 'mask' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:571:13: style: Variable 'p' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:620:34: style: Parameter 'mask' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/spc.c:781:33: style: Variable 'ops' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:878:33: style: Variable 'ops' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:1032:41: style: Parameter 'lu' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/spc.c:1032:66: style: Parameter 'reg' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/spc.c:1090:23: style: Variable 'reg' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:1187:26: style: Parameter 'itn' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/spc.c:1284:11: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:1317:11: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:1376:29: style: Variable 'holder' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:1432:11: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:1435:29: style: Variable 'holder' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:1502:11: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:1555:11: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:1556:23: style: Variable 'holder' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:1820:52: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/spc.c:2091:17: style: Variable 'tgt' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/spc.c:137:10: portability: 'sn' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/spc.c:137:16: portability: 'sn+tmp' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tgt-1.0.85/usr/ssc.c:154:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/ssc.c:163:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/ssc.c:43:61: style: Parameter 'lu' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/ssc.c:48:50: style: Parameter 'cmd' can be declared as pointer to const. However it seems that 'ssc_mode_page_update' is a callback function, if 'cmd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/ssc.c:86:39: note: You might need to cast the function pointer here tgt-1.0.85/usr/ssc.c:48:50: note: Parameter 'cmd' can be declared as pointer to const tgt-1.0.85/usr/ssc.c:48:64: style: Parameter 'data' can be declared as pointer to const. However it seems that 'ssc_mode_page_update' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/ssc.c:86:39: note: You might need to cast the function pointer here tgt-1.0.85/usr/ssc.c:48:64: note: Parameter 'data' can be declared as pointer to const tgt-1.0.85/usr/ssc.c:49:10: style: Parameter 'changed' can be declared as pointer to const. However it seems that 'ssc_mode_page_update' is a callback function, if 'changed' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tgt-1.0.85/usr/ssc.c:86:39: note: You might need to cast the function pointer here tgt-1.0.85/usr/ssc.c:49:10: note: Parameter 'changed' can be declared as pointer to const tgt-1.0.85/usr/target.c:59:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable device_type_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:71:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable target_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:80:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable target_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:95:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nexus_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:106:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:140:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ua_sense_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:169:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ua_sense_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:189:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ua_sense_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:202:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable itn_itl_info_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:221:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nexus_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:247:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nexus_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:272:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nexus_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:293:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:353:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:378:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable device_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:493:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:726:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:884:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:906:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:928:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:943:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:985:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lu_itl_info_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1004:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1019:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable device_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1047:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable target_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1058:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1101:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable itn_itl_info_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1117:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1164:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1199:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1246:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable qlist [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1280:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1301:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1325:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1349:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1381:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1488:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable account_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1498:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable account_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1516:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1554:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1590:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1671:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable target_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1713:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable aclent_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1743:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable aclent_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1765:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable aclent_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1783:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iqn_aclent_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1815:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iqn_aclent_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1839:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iqn_aclent_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1866:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1895:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bhost_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:1915:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:2018:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable target_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:2138:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:2229:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:2275:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:2300:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:2326:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable account_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:2393:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable backingstore_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:2435:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lld_siblings [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/target.c:2142:24: warning: Possible null pointer dereference: p [nullPointer] tgt-1.0.85/usr/target.c:2124:29: note: Assignment 'targetname=NULL', assigned value is 0 tgt-1.0.85/usr/target.c:2128:12: note: Assuming condition is false tgt-1.0.85/usr/target.c:2142:11: note: Assignment 'p=targetname', assigned value is 0 tgt-1.0.85/usr/target.c:2142:24: note: Null pointer dereference tgt-1.0.85/usr/target.c:49:55: style:inconclusive: Function 'device_type_register' argument 1 names different: declaration '' definition 't'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/target.c:478:73: style:inconclusive: Function 'tgt_device_create' argument 4 names different: declaration 'args' definition 'params'. [funcArgNamesDifferent] tgt-1.0.85/usr/tgtd.h:270:80: note: Function 'tgt_device_create' argument 4 names different: declaration 'args' definition 'params'. tgt-1.0.85/usr/target.c:478:73: note: Function 'tgt_device_create' argument 4 names different: declaration 'args' definition 'params'. tgt-1.0.85/usr/target.c:931:62: style:inconclusive: Function 'tgt_device_update' argument 3 names different: declaration 'name' definition 'params'. [funcArgNamesDifferent] tgt-1.0.85/usr/tgtd.h:272:69: note: Function 'tgt_device_update' argument 3 names different: declaration 'name' definition 'params'. tgt-1.0.85/usr/target.c:931:62: note: Function 'tgt_device_update' argument 3 names different: declaration 'name' definition 'params'. tgt-1.0.85/usr/target.c:1274:39: style:inconclusive: Function '__cmd_done' argument 1 names different: declaration '' definition 'target'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/target.c:1274:64: style:inconclusive: Function '__cmd_done' argument 2 names different: declaration '' definition 'cmd'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/target.c:1368:16: style:inconclusive: Function 'target_mgmt_request' argument 5 names different: declaration 'lun' definition 'lun_buf'. [funcArgNamesDifferent] tgt-1.0.85/usr/tgtd.h:317:16: note: Function 'target_mgmt_request' argument 5 names different: declaration 'lun' definition 'lun_buf'. tgt-1.0.85/usr/target.c:1368:16: note: Function 'target_mgmt_request' argument 5 names different: declaration 'lun' definition 'lun_buf'. tgt-1.0.85/usr/target.c:2216:35: style:inconclusive: Function 'tgt_target_destroy' argument 1 names different: declaration 'lld' definition 'lld_no'. [funcArgNamesDifferent] tgt-1.0.85/usr/tgtd.h:279:42: note: Function 'tgt_target_destroy' argument 1 names different: declaration 'lld' definition 'lld_no'. tgt-1.0.85/usr/target.c:2216:35: note: Function 'tgt_target_destroy' argument 1 names different: declaration 'lld' definition 'lld_no'. tgt-1.0.85/usr/target.c:1777:24: style: Local variable 'iqn_acl' shadows outer function [shadowFunction] tgt-1.0.85/usr/iscsi/iscsid.h:358:12: note: Shadowed declaration tgt-1.0.85/usr/target.c:1777:24: note: Shadow variable tgt-1.0.85/usr/target.c:1808:24: style: Local variable 'iqn_acl' shadows outer function [shadowFunction] tgt-1.0.85/usr/iscsi/iscsid.h:358:12: note: Shadowed declaration tgt-1.0.85/usr/target.c:1808:24: note: Shadow variable tgt-1.0.85/usr/target.c:1833:24: style: Local variable 'iqn_acl' shadows outer function [shadowFunction] tgt-1.0.85/usr/iscsi/iscsid.h:358:12: note: Shadowed declaration tgt-1.0.85/usr/target.c:1833:24: note: Shadow variable tgt-1.0.85/usr/target.c:2015:24: style: Local variable 'iqn_acl' shadows outer function [shadowFunction] tgt-1.0.85/usr/iscsi/iscsid.h:358:12: note: Shadowed declaration tgt-1.0.85/usr/target.c:2015:24: note: Shadow variable tgt-1.0.85/usr/target.c:2220:24: style: Local variable 'iqn_acl' shadows outer function [shadowFunction] tgt-1.0.85/usr/iscsi/iscsid.h:358:12: note: Shadowed declaration tgt-1.0.85/usr/target.c:2220:24: note: Shadow variable tgt-1.0.85/usr/target.c:2408:7: style: Local variable 'i' shadows outer variable [shadowVariable] tgt-1.0.85/usr/target.c:2375:6: note: Shadowed declaration tgt-1.0.85/usr/target.c:2408:7: note: Shadow variable tgt-1.0.85/usr/target.c:77:37: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/target.c:167:17: style: Variable 'src' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/target.c:487:31: style: Variable 't' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/target.c:923:18: style: Variable 'lu' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/target.c:980:37: style: Parameter 'target' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/target.c:1085:72: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/target.c:1251:21: style: Variable 'nexus' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/target.c:1343:46: style: Parameter 'lun' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/target.c:1494:58: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/target.c:1508:17: style: Variable 'target' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/target.c:1509:24: style: Variable 'ac' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/target.c:1540:42: style: Parameter 'password' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/target.c:1619:24: style: Variable 'ac' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/target.c:1703:35: style: Parameter 'address' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/target.c:1733:35: style: Parameter 'address' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/target.c:1773:39: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/target.c:1805:39: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/target.c:1911:17: style: Variable 'target' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/target.c:1941:48: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/target.c:2110:17: style: Variable 'target' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/target.c:2221:18: style: Variable 'lu' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/target.c:2356:35: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/target.c:1403:9: style: Variable 'count' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/target.c:1414:9: style: Variable 'count' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/target.c:1429:10: style: Variable 'asc' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/target.c:1438:9: style: Variable 'count' is assigned a value that is never used. [unreadVariable] tgt-1.0.85/usr/tgtadm.c:137:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtadm.c:201:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGT_VERSION [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtadm.c:216:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtadm.c:247:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_WAITALL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtadm.c:325:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtadm.c:366:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtadm.c:415:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtadm.c:439:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtadm.c:465:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtadm.c:472:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtadm.c:486:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtadm.c:526:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtadm.c:348:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tgt-1.0.85/usr/tgtadm.c:595:9: style: Checking if unsigned expression 'hostno' is less than zero. [unsignedLessThanZero] tgt-1.0.85/usr/tgtadm.c:212:24: style: Variable 'path' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/tgtadm.c:240:52: style: Parameter 'req' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtadm.c:363:30: style: Parameter 'bus' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtadm.c:367:7: style: Variable 'key' can be declared as const array [constVariable] tgt-1.0.85/usr/tgtadm.c:398:37: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtadm.c:420:30: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtadm.c:444:28: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtadm.c:470:47: style: Parameter 'optarg' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtadm.c:481:60: style: Parameter 'allowed' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtadm.c:512:8: style: Variable 'op_name' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/tgtd.c:72:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:93:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:104:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGT_VERSION [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:131:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:157:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:184:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:209:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:234:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable e_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:250:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:271:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:347:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:426:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable e_list [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:451:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:542:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:562:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_PAGESIZE [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtd.c:203:70: style:inconclusive: Function 'tgt_event_add' argument 4 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/tgtd.c:283:49: style:inconclusive: Function 'tgt_init_sched_event' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/tgtd.c:328:9: style:inconclusive: Function 'call_program' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/tgtd.c:328:21: style:inconclusive: Function 'call_program' argument 4 names different: declaration '' definition 'output'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/tgtd.c:328:33: style:inconclusive: Function 'call_program' argument 5 names different: declaration '' definition 'op_len'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/tgtd.c:328:45: style:inconclusive: Function 'call_program' argument 6 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] tgt-1.0.85/usr/tgtd.c:552:21: style: Local variable 'is_debug' shadows outer variable [shadowVariable] tgt-1.0.85/usr/tgtd.h:264:12: note: Shadowed declaration tgt-1.0.85/usr/tgtd.c:552:21: note: Shadow variable tgt-1.0.85/usr/tgtd.c:91:47: style: Parameter 'optarg' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtd.c:152:7: style: Variable 'path' can be declared as const array [constVariable] tgt-1.0.85/usr/tgtd.c:419:20: style: Variable 'last_sched' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/tgtd.c:533:31: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtd.c:554:8: style: Variable 'pidfile' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/tgtimg.c:70:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtimg.c:105:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtimg.c:117:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtimg.c:185:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtimg.c:306:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtimg.c:348:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtimg.c:382:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtimg.c:404:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtimg.c:439:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtimg.c:478:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtimg.c:513:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/tgtimg.c:449:51: style: Condition 'unmap_file_region(fd,0,size*1024*1024LL)!=0' is always true [knownConditionTrueFalse] tgt-1.0.85/usr/tgtimg.c:449:25: note: Calling function 'unmap_file_region' returns -1 tgt-1.0.85/usr/tgtimg.c:449:51: note: Condition 'unmap_file_region(fd,0,size*1024*1024LL)!=0' is always true tgt-1.0.85/usr/tgtimg.c:428:3: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] tgt-1.0.85/usr/tgtimg.c:96:37: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtimg.c:110:28: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtimg.c:122:58: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtimg.c:175:27: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtimg.c:183:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] tgt-1.0.85/usr/tgtimg.c:256:46: style: Parameter 'barcode' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtimg.c:256:61: style: Parameter 'capacity' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtimg.c:257:12: style: Parameter 'media_type' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtimg.c:377:46: style: Parameter 'media_type' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtimg.c:420:46: style: Parameter 'capacity' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/tgtimg.c:420:62: style: Parameter 'media_type' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/util.c:45:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/util.c:92:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/util.c:129:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/util.c:152:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_SYNC [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/util.c:171:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_SYNC [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/util.c:147:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] tgt-1.0.85/usr/util.c:161:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] tgt-1.0.85/usr/util.c:54:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] tgt-1.0.85/usr/util.c:207:18: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] tgt-1.0.85/usr/work.c:69:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/work.c:88:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAGAIN [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/work.c:139:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/work.c:205:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ITIMER_REAL [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/work.c:222:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/work.c:248:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entry [valueFlowBailoutIncompleteVar] tgt-1.0.85/usr/work.c:145:18: style: Condition 'timer_fd[0]>=0' is always false [knownConditionTrueFalse] tgt-1.0.85/usr/work.c:144:16: note: Assignment 'timer_fd[0]=-1', assigned value is -1 tgt-1.0.85/usr/work.c:145:18: note: Condition 'timer_fd[0]>=0' is always false diff: head tgt-1.0.85/usr/bs.c:401:10: style:inconclusive: Function 'bs_thread_open' argument 3 names different: declaration '' definition 'nr_threads'. [funcArgNamesDifferentUnnamed] 2.20.0 tgt-1.0.85/usr/bs_glfs.c:479:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] tgt-1.0.85/usr/bs_glfs.c:477:14: note: Assuming allocation function fails tgt-1.0.85/usr/bs_glfs.c:477:14: note: Assignment 'ret=malloc(len+1)', assigned value is 0 tgt-1.0.85/usr/bs_glfs.c:479:2: note: Null pointer dereference 2.20.0 tgt-1.0.85/usr/bs_rbd.c:481:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] tgt-1.0.85/usr/bs_rbd.c:479:14: note: Assuming allocation function fails tgt-1.0.85/usr/bs_rbd.c:479:14: note: Assignment 'ret=malloc(len+1)', assigned value is 0 tgt-1.0.85/usr/bs_rbd.c:481:2: note: Null pointer dereference head tgt-1.0.85/usr/iscsi/param.c:236:40: style:inconclusive: Function 'param_val_to_str' argument 1 names different: declaration '' definition 'keys'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:236:50: style:inconclusive: Function 'param_val_to_str' argument 2 names different: declaration '' definition 'idx'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:236:68: style:inconclusive: Function 'param_val_to_str' argument 3 names different: declaration '' definition 'val'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:236:79: style:inconclusive: Function 'param_val_to_str' argument 4 names different: declaration '' definition 'str'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:244:40: style:inconclusive: Function 'param_str_to_val' argument 1 names different: declaration '' definition 'keys'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:244:50: style:inconclusive: Function 'param_str_to_val' argument 2 names different: declaration '' definition 'idx'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:244:61: style:inconclusive: Function 'param_str_to_val' argument 3 names different: declaration '' definition 'str'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:244:80: style:inconclusive: Function 'param_str_to_val' argument 4 names different: declaration '' definition 'val'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:252:39: style:inconclusive: Function 'param_check_val' argument 1 names different: declaration '' definition 'keys'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:252:49: style:inconclusive: Function 'param_check_val' argument 2 names different: declaration '' definition 'idx'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:252:68: style:inconclusive: Function 'param_check_val' argument 3 names different: declaration '' definition 'val'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:260:38: style:inconclusive: Function 'param_set_val' argument 1 names different: declaration '' definition 'keys'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:260:58: style:inconclusive: Function 'param_set_val' argument 2 names different: declaration '' definition 'param'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:261:10: style:inconclusive: Function 'param_set_val' argument 3 names different: declaration '' definition 'idx'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:261:29: style:inconclusive: Function 'param_set_val' argument 4 names different: declaration '' definition 'val2'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:27:31: style:inconclusive: Function 'param_index_by_name' argument 1 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:27:55: style:inconclusive: Function 'param_index_by_name' argument 2 names different: declaration '' definition 'keys'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:41:39: style:inconclusive: Function 'param_set_defaults' argument 1 names different: declaration '' definition 'params'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/param.c:41:65: style:inconclusive: Function 'param_set_defaults' argument 2 names different: declaration '' definition 'keys'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/transport.c:34:20: style:inconclusive: Function 'iscsi_init' argument 1 names different: declaration '' definition 'index'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/transport.c:34:33: style:inconclusive: Function 'iscsi_init' argument 2 names different: declaration '' definition 'args'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/iscsi/transport.c:61:54: style:inconclusive: Function 'iscsi_transport_register' argument 1 names different: declaration '' definition 't'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/parser.c:107:23: style:inconclusive: Function 'match_token' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/parser.c:155:28: style:inconclusive: Function 'match_int' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/parser.c:169:30: style:inconclusive: Function 'match_octal' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/parser.c:183:28: style:inconclusive: Function 'match_hex' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/parser.c:197:27: style:inconclusive: Function 'match_strncpy' argument 1 names different: declaration '' definition 'to'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/parser.c:197:44: style:inconclusive: Function 'match_strncpy' argument 2 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/parser.c:197:54: style:inconclusive: Function 'match_strncpy' argument 3 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/parser.c:211:33: style:inconclusive: Function 'match_strdup' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/spc.c:1975:68: style:inconclusive: Function 'lu_config' argument 3 names different: declaration '' definition 'fn'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/target.c:1274:39: style:inconclusive: Function '__cmd_done' argument 1 names different: declaration '' definition 'target'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/target.c:1274:64: style:inconclusive: Function '__cmd_done' argument 2 names different: declaration '' definition 'cmd'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/target.c:49:55: style:inconclusive: Function 'device_type_register' argument 1 names different: declaration '' definition 't'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/tgtd.c:203:70: style:inconclusive: Function 'tgt_event_add' argument 4 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/tgtd.c:283:49: style:inconclusive: Function 'tgt_init_sched_event' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/tgtd.c:328:21: style:inconclusive: Function 'call_program' argument 4 names different: declaration '' definition 'output'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/tgtd.c:328:33: style:inconclusive: Function 'call_program' argument 5 names different: declaration '' definition 'op_len'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/tgtd.c:328:45: style:inconclusive: Function 'call_program' argument 6 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] head tgt-1.0.85/usr/tgtd.c:328:9: style:inconclusive: Function 'call_program' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] DONE