2022-06-21 02:46 ftp://ftp.de.debian.org/debian/pool/main/b/btrfs-progs/btrfs-progs_5.18.1.orig.tar.xz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j1 platform: Linux-5.10.0-9-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.24 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.8 head-info: de2509f (2022-06-21 00:12:11 +0200) count: 212 212 elapsed-time: 32.9 39.7 head-timing-info: Tokenizer::simplifyTokens1: 29.3624s (avg. 0.257565s - 114 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 24.6764s (avg. 0.23062s - 107 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 2.08212s (avg. 0.019459s - 107 result(s)) Tokenizer::createTokens: 0.749326s (avg. 0.00645971s - 116 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.494072s (avg. 0.0046175s - 107 result(s)) Overall time: 60.1128s old-timing-info: Tokenizer::simplifyTokens1: 35.9905s (avg. 0.315706s - 114 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 30.941s (avg. 0.289169s - 107 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 2.31955s (avg. 0.0216781s - 107 result(s)) Tokenizer::createTokens: 0.799086s (avg. 0.00688867s - 116 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.525976s (avg. 0.00491566s - 107 result(s)) Overall time: 73.3984s head results: btrfs-progs-v5.18.1/btrfs-corrupt-block.c:1298:5: warning:inconclusive: The buffer 'field' may not be null-terminated after the call to strncpy(). [terminateStrncpy] btrfs-progs-v5.18.1/kerncompat.h:134:2: style: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] btrfs-progs-v5.18.1/btrfs-corrupt-block.c:110:53: style: Parameter 'trans' can be declared as pointer to const [constParameter] btrfs-progs-v5.18.1/btrfs-find-root.c:183:13: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/btrfs-find-root.c:302:17: style: Variable 'generation' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/btrfs-find-root.c:303:11: style: Variable 'level' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/btrfs-fragments.c:125:21: portability: '(void*)item' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] btrfs-progs-v5.18.1/btrfs-fragments.c:125:56: portability: '(void*)item+sizeof(struct btrfs_extent_item)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] btrfs-progs-v5.18.1/btrfstune.c:390:3: error: Memory leak: buf [memleak] btrfs-progs-v5.18.1/btrfstune.c:1022:7: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] btrfs-progs-v5.18.1/btrfstune.c:973:7: note: ret is assigned btrfs-progs-v5.18.1/btrfstune.c:1022:7: note: ret is overwritten btrfs-progs-v5.18.1/btrfstune.c:893:41: style: The comparison 'csum_type == -1' is always true. [knownConditionTrueFalse] btrfs-progs-v5.18.1/btrfstune.c:814:19: note: 'csum_type' is assigned value '-1' here. btrfs-progs-v5.18.1/btrfstune.c:893:41: note: The comparison 'csum_type == -1' is always true. btrfs-progs-v5.18.1/btrfstune.c:970:16: style: The comparison 'csum_type != -1' is always false. [knownConditionTrueFalse] btrfs-progs-v5.18.1/btrfstune.c:814:19: note: 'csum_type' is assigned value '-1' here. btrfs-progs-v5.18.1/btrfstune.c:970:16: note: The comparison 'csum_type != -1' is always false. btrfs-progs-v5.18.1/btrfstune.c:127:50: error: Uninitialized variable: unused1 [uninitvar] btrfs-progs-v5.18.1/btrfstune.c:122:18: note: Assuming condition is false btrfs-progs-v5.18.1/btrfstune.c:127:50: note: Uninitialized variable: unused1 btrfs-progs-v5.18.1/btrfstune.c:127:59: error: Uninitialized variable: unused2 [uninitvar] btrfs-progs-v5.18.1/btrfstune.c:122:18: note: Assuming condition is false btrfs-progs-v5.18.1/btrfstune.c:127:59: note: Uninitialized variable: unused2 btrfs-progs-v5.18.1/btrfstune.c:712:44: error: Uninitialized variable: new_fsid [uninitvar] btrfs-progs-v5.18.1/btrfstune.c:712:54: error: Uninitialized variable: new_chunk_id [uninitvar] btrfs-progs-v5.18.1/btrfstune.c:734:9: error: Uninitialized variable: old_fsid [uninitvar] btrfs-progs-v5.18.1/check/main.c:791:2: error: There is an unknown macro here somewhere. Configuration is required. If list_for_each_entry_safe is a macro then please configure it. [unknownMacro] btrfs-progs-v5.18.1/check/mode-common.c:1662:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] btrfs-progs-v5.18.1/check/mode-common.c:419:6: error: Uninitialized variable: *highest_ino [uninitvar] btrfs-progs-v5.18.1/check/mode-common.c:443:45: note: Calling function 'get_highest_inode', 4th argument '&lost_found_ino' value is btrfs-progs-v5.18.1/check/mode-common.c:413:10: note: Assuming condition is Assuming condition is false btrfs-progs-v5.18.1/check/mode-common.c:419:6: note: Uninitialized variable: *highest_ino btrfs-progs-v5.18.1/check/mode-lowmem.c:4382:18: style: Condition 'ret>0' is always true [knownConditionTrueFalse] btrfs-progs-v5.18.1/check/mode-lowmem.c:4379:18: note: Assuming that condition 'ret==0' is not redundant btrfs-progs-v5.18.1/check/mode-lowmem.c:4382:18: note: Condition 'ret>0' is always true btrfs-progs-v5.18.1/check/mode-lowmem.c:3322:6: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] btrfs-progs-v5.18.1/check/mode-lowmem.c:3317:7: note: ret is assigned btrfs-progs-v5.18.1/check/mode-lowmem.c:3322:6: note: ret is overwritten btrfs-progs-v5.18.1/check/mode-lowmem.c:4992:10: style: Variable 'bytenr' is reassigned a value before the old one has been used. [redundantAssignment] btrfs-progs-v5.18.1/check/mode-lowmem.c:4932:10: note: bytenr is assigned btrfs-progs-v5.18.1/check/mode-lowmem.c:4992:10: note: bytenr is overwritten btrfs-progs-v5.18.1/check/mode-lowmem.c:3977:37: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] btrfs-progs-v5.18.1/check/qgroup-verify.c:1430:56: style: Same expression on both sides of '&&' because 'counts.rescan_running==0' and '!counts.rescan_running' represent the same value. [knownConditionTrueFalse] btrfs-progs-v5.18.1/check/qgroup-verify.c:406:16: style: Local variable 'counts' shadows outer variable [shadowVariable] btrfs-progs-v5.18.1/check/qgroup-verify.c:88:3: note: Shadowed declaration btrfs-progs-v5.18.1/check/qgroup-verify.c:406:16: note: Shadow variable btrfs-progs-v5.18.1/check/qgroup-verify.c:1678:34: error: Uninitialized variables: count.qgroupid, count.subvol_exists, count.key, count.diskinfo, count.info, count.rb_node, count.groups, count.members, count.cur_refcnt, count.bad_list [uninitvar] btrfs-progs-v5.18.1/check/qgroup-verify.c:1674:10: note: Assuming condition is false btrfs-progs-v5.18.1/check/qgroup-verify.c:1678:34: note: Uninitialized variables: count.qgroupid, count.subvol_exists, count.key, count.diskinfo, count.info, count.rb_node, count.groups, count.members, count.cur_refcnt, count.bad_list btrfs-progs-v5.18.1/cmds/balance.c:594:5: error: Return value of allocation function 'open' is not stored. [leakReturnValNotUsed] btrfs-progs-v5.18.1/cmds/balance.c:595:5: error: Return value of allocation function 'open' is not stored. [leakReturnValNotUsed] btrfs-progs-v5.18.1/cmds/balance.c:596:5: error: Return value of allocation function 'open' is not stored. [leakReturnValNotUsed] btrfs-progs-v5.18.1/cmds/balance.c:590:7: style: Variable 'i' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/cmds/filesystem-du.c:392:11: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] btrfs-progs-v5.18.1/cmds/filesystem-usage.c:416:8: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] btrfs-progs-v5.18.1/cmds/filesystem-usage.c:264:2: error: Common realloc mistake: 'sargs' nulled but not freed upon failure [memleakOnRealloc] btrfs-progs-v5.18.1/cmds/filesystem-usage.c:527:8: style: Local variable 'tmp' shadows outer variable [shadowVariable] btrfs-progs-v5.18.1/cmds/filesystem-usage.c:437:8: note: Shadowed declaration btrfs-progs-v5.18.1/cmds/filesystem-usage.c:527:8: note: Shadow variable btrfs-progs-v5.18.1/cmds/filesystem-usage.c:144:20: style: Variable 'off' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/cmds/filesystem.c:788:2: error: There is an unknown macro here somewhere. Configuration is required. If list_for_each_entry is a macro then please configure it. [unknownMacro] btrfs-progs-v5.18.1/cmds/inspect-dump-tree.c:40:34: warning: Either the condition '!eb' is redundant or there is possible null pointer dereference: eb. [nullPointerRedundantCheck] btrfs-progs-v5.18.1/cmds/inspect-dump-tree.c:45:6: note: Assuming that condition '!eb' is not redundant btrfs-progs-v5.18.1/cmds/inspect-dump-tree.c:40:34: note: Null pointer dereference btrfs-progs-v5.18.1/cmds/inspect-tree-stats.c:68:6: style: struct member 'root_stats::total_levels' is never used. [unusedStructMember] btrfs-progs-v5.18.1/cmds/inspect-tree-stats.c:292:15: style: Variable 'group_count' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/cmds/inspect.c:495:18: error: Uninitialized variable: h->end [uninitvar] btrfs-progs-v5.18.1/cmds/inspect.c:485:14: note: Assuming condition is false btrfs-progs-v5.18.1/cmds/inspect.c:495:18: note: Uninitialized variable: h->end btrfs-progs-v5.18.1/cmds/qgroup.c:347:36: style:inconclusive: Boolean expression 'i==BTRFS_QGROUP_QGROUPID' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] btrfs-progs-v5.18.1/cmds/qgroup.c:347:65: style:inconclusive: Boolean expression 'i==BTRFS_QGROUP_CHILD' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] btrfs-progs-v5.18.1/cmds/qgroup.c:359:36: style:inconclusive: Boolean expression 'i==BTRFS_QGROUP_QGROUPID' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] btrfs-progs-v5.18.1/cmds/qgroup.c:359:65: style:inconclusive: Boolean expression 'i==BTRFS_QGROUP_CHILD' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] btrfs-progs-v5.18.1/cmds/qgroup.c:276:38: warning: Either the condition '0<=column' is redundant or the array 'btrfs_qgroup_columns[8]' is accessed at index -1, which is out of bounds. [negativeIndex] btrfs-progs-v5.18.1/cmds/qgroup.c:279:11: note: Assuming that condition '0<=column' is not redundant btrfs-progs-v5.18.1/cmds/qgroup.c:276:38: note: Negative array index btrfs-progs-v5.18.1/cmds/qgroup.c:277:36: warning: Either the condition '0<=column' is redundant or the array 'btrfs_qgroup_columns[8]' is accessed at index -1, which is out of bounds. [negativeIndex] btrfs-progs-v5.18.1/cmds/qgroup.c:279:11: note: Assuming that condition '0<=column' is not redundant btrfs-progs-v5.18.1/cmds/qgroup.c:277:36: note: Negative array index btrfs-progs-v5.18.1/cmds/qgroup.c:996:43: warning: Either the condition '0<=column' is redundant or the array 'btrfs_qgroup_columns[8]' is accessed at index -1, which is out of bounds. [negativeIndex] btrfs-progs-v5.18.1/cmds/qgroup.c:998:11: note: Assuming that condition '0<=column' is not redundant btrfs-progs-v5.18.1/cmds/qgroup.c:996:43: note: Negative array index btrfs-progs-v5.18.1/cmds/qgroup.c:1363:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] btrfs-progs-v5.18.1/cmds/qgroup.c:1408:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] btrfs-progs-v5.18.1/cmds/qgroup.c:1338:9: warning: Identical condition and return expression 'ret', return value is always 0 [identicalConditionAfterEarlyExit] btrfs-progs-v5.18.1/cmds/qgroup.c:1331:6: note: If condition 'ret' is true, the function will return/exit btrfs-progs-v5.18.1/cmds/qgroup.c:1338:9: note: Returning identical expression 'ret' btrfs-progs-v5.18.1/cmds/qgroup.c:230:29: warning:inconclusive: Possible null pointer dereference: list [nullPointer] btrfs-progs-v5.18.1/cmds/qgroup.c:225:35: note: Assignment 'list=NULL', assigned value is 0 btrfs-progs-v5.18.1/cmds/qgroup.c:230:29: note: Null pointer dereference btrfs-progs-v5.18.1/cmds/qgroup.c:231:30: warning:inconclusive: Possible null pointer dereference: list [nullPointer] btrfs-progs-v5.18.1/cmds/qgroup.c:225:35: note: Assignment 'list=NULL', assigned value is 0 btrfs-progs-v5.18.1/cmds/qgroup.c:231:30: note: Null pointer dereference btrfs-progs-v5.18.1/cmds/qgroup.c:248:29: warning:inconclusive: Possible null pointer dereference: list [nullPointer] btrfs-progs-v5.18.1/cmds/qgroup.c:243:35: note: Assignment 'list=NULL', assigned value is 0 btrfs-progs-v5.18.1/cmds/qgroup.c:248:29: note: Null pointer dereference btrfs-progs-v5.18.1/cmds/qgroup.c:249:30: warning:inconclusive: Possible null pointer dereference: list [nullPointer] btrfs-progs-v5.18.1/cmds/qgroup.c:243:35: note: Assignment 'list=NULL', assigned value is 0 btrfs-progs-v5.18.1/cmds/qgroup.c:249:30: note: Null pointer dereference btrfs-progs-v5.18.1/cmds/qgroup.c:137:8: style: struct member 'Anonymous0::column_name' is never used. [unusedStructMember] btrfs-progs-v5.18.1/cmds/qgroup.c:290:7: style: Variable 'len' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/cmds/qgroup.c:293:7: style: Variable 'len' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/cmds/qgroup.c:301:8: style: Variable 'len' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/cmds/qgroup.c:304:8: style: Variable 'len' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/cmds/qgroup.c:308:8: style: Variable 'len' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/cmds/qgroup.c:311:8: style: Variable 'len' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/cmds/qgroup.c:1134:20: style: Variable 'off' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/cmds/quota.c:188:5: style: Variable 'e' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/cmds/receive.c:1083:3: error:inconclusive: Address of local auto-variable assigned to a function parameter. [autoVariables] btrfs-progs-v5.18.1/cmds/receive.c:939:62: style: Parameter 'at' can be declared as pointer to const [constParameter] btrfs-progs-v5.18.1/cmds/receive.c:940:23: style: Parameter 'mt' can be declared as pointer to const [constParameter] btrfs-progs-v5.18.1/cmds/rescue-chunk-recover.c:544:2: error: There is an unknown macro here somewhere. Configuration is required. If list_for_each_entry is a macro then please configure it. [unknownMacro] btrfs-progs-v5.18.1/cmds/rescue-super-recover.c:192:20: error: Uninitialized variables: record.list, record.device_name, record.sb, record.bytenr [uninitvar] btrfs-progs-v5.18.1/cmds/scrub.c:600:20: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] btrfs-progs-v5.18.1/cmds/scrub.c:530:16: style: Condition 'old_avail<0' is always false [knownConditionTrueFalse] btrfs-progs-v5.18.1/cmds/scrub.c:514:14: note: 'avail' is assigned value '0' here. btrfs-progs-v5.18.1/cmds/scrub.c:519:10: note: 'i' is assigned value '0' here. btrfs-progs-v5.18.1/cmds/scrub.c:529:20: note: Assignment 'old_avail=avail-i', assigned value is 0 btrfs-progs-v5.18.1/cmds/scrub.c:530:16: note: Condition 'old_avail<0' is always false btrfs-progs-v5.18.1/cmds/scrub.c:534:6: style: Condition 'old_avail' is always false [knownConditionTrueFalse] btrfs-progs-v5.18.1/cmds/scrub.c:514:14: note: 'avail' is assigned value '0' here. btrfs-progs-v5.18.1/cmds/scrub.c:519:10: note: 'i' is assigned value '0' here. btrfs-progs-v5.18.1/cmds/scrub.c:529:20: note: Assignment 'old_avail=avail-i', assigned value is 0 btrfs-progs-v5.18.1/cmds/scrub.c:534:6: note: Condition 'old_avail' is always false btrfs-progs-v5.18.1/cmds/scrub.c:1364:7: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] btrfs-progs-v5.18.1/cmds/scrub.c:1359:7: note: ret is assigned btrfs-progs-v5.18.1/cmds/scrub.c:1364:7: note: ret is overwritten btrfs-progs-v5.18.1/cmds/scrub.c:529:20: style: Same expression on both sides of '-'. [duplicateExpression] btrfs-progs-v5.18.1/cmds/scrub.c:514:14: note: 'avail' is assigned value '0' here. btrfs-progs-v5.18.1/cmds/scrub.c:519:10: note: 'i' is assigned value '0' here. btrfs-progs-v5.18.1/cmds/scrub.c:529:20: note: Same expression on both sides of '-'. btrfs-progs-v5.18.1/cmds/scrub.c:112:6: style: struct member 'scrub_fs_stat::i' is never used. [unusedStructMember] btrfs-progs-v5.18.1/cmds/send.c:690:21: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] btrfs-progs-v5.18.1/cmds/send.c:689:67: note: outer condition: bconf.verbose>1 btrfs-progs-v5.18.1/cmds/send.c:690:21: note: identical inner condition: bconf.verbose>1 btrfs-progs-v5.18.1/cmds/subvolume-list.c:1365:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] btrfs-progs-v5.18.1/cmds/subvolume-list.c:835:20: style: Condition 'sk->nr_items==0' is always false [knownConditionTrueFalse] btrfs-progs-v5.18.1/cmds/subvolume-list.c:831:18: note: Assignment 'sk->nr_items=4096', assigned value is 4096 btrfs-progs-v5.18.1/cmds/subvolume-list.c:833:11: note: Assuming condition is false btrfs-progs-v5.18.1/cmds/subvolume-list.c:835:20: note: Condition 'sk->nr_items==0' is always false btrfs-progs-v5.18.1/cmds/subvolume-list.c:1314:7: style: Local variable 'ret' shadows outer variable [shadowVariable] btrfs-progs-v5.18.1/cmds/subvolume-list.c:1298:6: note: Shadowed declaration btrfs-progs-v5.18.1/cmds/subvolume-list.c:1314:7: note: Shadow variable btrfs-progs-v5.18.1/cmds/subvolume-list.c:216:8: style: struct member 'Anonymous0::column_name' is never used. [unusedStructMember] btrfs-progs-v5.18.1/cmds/subvolume.c:981:19: style: Condition 'sk->nr_items==0' is always false [knownConditionTrueFalse] btrfs-progs-v5.18.1/cmds/subvolume.c:973:17: note: Assignment 'sk->nr_items=1', assigned value is 1 btrfs-progs-v5.18.1/cmds/subvolume.c:976:10: note: Assuming condition is false btrfs-progs-v5.18.1/cmds/subvolume.c:981:19: note: Condition 'sk->nr_items==0' is always false btrfs-progs-v5.18.1/cmds/subvolume.c:803:20: style: Variable 'off' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/cmds/subvolume.c:1109:20: style: Variable 'off' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/common/device-scan.c:295:46: style: Parameter 'seen_fsid_hash' can be declared as const array [constParameter] btrfs-progs-v5.18.1/common/device-utils.c:487:8: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] btrfs-progs-v5.18.1/common/fsfeatures.c:52:14: style: struct member 'btrfs_feature::sysfs_name' is never used. [unusedStructMember] btrfs-progs-v5.18.1/common/help.c:169:10: style: Redundant initialization for 'c'. The initialized value is overwritten before it is read. [redundantInitialization] btrfs-progs-v5.18.1/common/help.c:163:17: note: c is initialized btrfs-progs-v5.18.1/common/help.c:169:10: note: c is overwritten btrfs-progs-v5.18.1/common/repair.c:114:8: style: Local variable 'end' shadows outer variable [shadowVariable] btrfs-progs-v5.18.1/common/repair.c:67:6: note: Shadowed declaration btrfs-progs-v5.18.1/common/repair.c:114:8: note: Shadow variable btrfs-progs-v5.18.1/common/send-utils.c:64:20: style: Variable 'off' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/common/string-table.c:121:15: style: Condition 'cell' is always true [knownConditionTrueFalse] btrfs-progs-v5.18.1/common/units.c:26:23: style: Variable 'ps_array' can be declared as const array [constVariable] btrfs-progs-v5.18.1/common/utils.c:1234:2: error: There is an unknown macro here somewhere. Configuration is required. If list_for_each_entry is a macro then please configure it. [unknownMacro] btrfs-progs-v5.18.1/convert/main.c:1812:5: error: There is an unknown macro here somewhere. Configuration is required. If BOX_MAIN is a macro then please configure it. [unknownMacro] btrfs-progs-v5.18.1/crypto/blake2b-ref.c:221:51: style:inconclusive: Function 'blake2b_update' argument 2 names different: declaration 'in' definition 'pin'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/crypto/blake2.h:154:53: note: Function 'blake2b_update' argument 2 names different: declaration 'in' definition 'pin'. btrfs-progs-v5.18.1/crypto/blake2b-ref.c:221:51: note: Function 'blake2b_update' argument 2 names different: declaration 'in' definition 'pin'. btrfs-progs-v5.18.1/crypto/hash-speedtest.c:180:7: style: struct member 'contestant::digest_size' is never used. [unusedStructMember] btrfs-progs-v5.18.1/crypto/hash-vectest.c:171:5: warning: %hhx in format string (no. 1) requires 'unsigned char' but the argument type is 'char'. [invalidPrintfArgType_uint] btrfs-progs-v5.18.1/crypto/hash-vectest.c:187:3: portability: %zd in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] btrfs-progs-v5.18.1/crypto/hash.c:30:6: style: Redundant initialization for 'crc'. The initialized value is overwritten before it is read. [redundantInitialization] btrfs-progs-v5.18.1/crypto/hash.c:28:10: note: crc is initialized btrfs-progs-v5.18.1/crypto/hash.c:30:6: note: crc is overwritten btrfs-progs-v5.18.1/crypto/sha224-256.c:275:18: style: Variable 'masks' can be declared as const array [constVariable] btrfs-progs-v5.18.1/crypto/sha224-256.c:281:18: style: Variable 'markbit' can be declared as const array [constVariable] btrfs-progs-v5.18.1/crypto/sha224-256.c:342:62: style: Parameter 'H0' can be declared as pointer to const [constParameter] btrfs-progs-v5.18.1/crypto/xxhash.c:549:54: style:inconclusive: Boolean expression 'len>=16' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] btrfs-progs-v5.18.1/crypto/xxhash.c:482:62: style:inconclusive: Function 'XXH32' argument 2 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/crypto/xxhash.h:186:62: note: Function 'XXH32' argument 2 names different: declaration 'length' definition 'len'. btrfs-progs-v5.18.1/crypto/xxhash.c:482:62: note: Function 'XXH32' argument 2 names different: declaration 'length' definition 'len'. btrfs-progs-v5.18.1/crypto/xxhash.c:516:52: style:inconclusive: Function 'XXH32_copyState' argument 1 names different: declaration 'dst_state' definition 'dstState'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/crypto/xxhash.h:192:52: note: Function 'XXH32_copyState' argument 1 names different: declaration 'dst_state' definition 'dstState'. btrfs-progs-v5.18.1/crypto/xxhash.c:516:52: note: Function 'XXH32_copyState' argument 1 names different: declaration 'dst_state' definition 'dstState'. btrfs-progs-v5.18.1/crypto/xxhash.c:516:83: style:inconclusive: Function 'XXH32_copyState' argument 2 names different: declaration 'src_state' definition 'srcState'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/crypto/xxhash.h:192:84: note: Function 'XXH32_copyState' argument 2 names different: declaration 'src_state' definition 'srcState'. btrfs-progs-v5.18.1/crypto/xxhash.c:516:83: note: Function 'XXH32_copyState' argument 2 names different: declaration 'src_state' definition 'srcState'. btrfs-progs-v5.18.1/crypto/xxhash.c:536:29: style:inconclusive: Function 'XXH32_update' argument 1 names different: declaration 'statePtr' definition 'state'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/crypto/xxhash.h:195:59: note: Function 'XXH32_update' argument 1 names different: declaration 'statePtr' definition 'state'. btrfs-progs-v5.18.1/crypto/xxhash.c:536:29: note: Function 'XXH32_update' argument 1 names different: declaration 'statePtr' definition 'state'. btrfs-progs-v5.18.1/crypto/xxhash.c:536:62: style:inconclusive: Function 'XXH32_update' argument 3 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/crypto/xxhash.h:195:95: note: Function 'XXH32_update' argument 3 names different: declaration 'length' definition 'len'. btrfs-progs-v5.18.1/crypto/xxhash.c:536:62: note: Function 'XXH32_update' argument 3 names different: declaration 'length' definition 'len'. btrfs-progs-v5.18.1/crypto/xxhash.c:599:64: style:inconclusive: Function 'XXH32_digest' argument 1 names different: declaration 'statePtr' definition 'state'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/crypto/xxhash.h:196:65: note: Function 'XXH32_digest' argument 1 names different: declaration 'statePtr' definition 'state'. btrfs-progs-v5.18.1/crypto/xxhash.c:599:64: note: Function 'XXH32_digest' argument 1 names different: declaration 'statePtr' definition 'state'. btrfs-progs-v5.18.1/crypto/xxhash.c:957:62: style:inconclusive: Function 'XXH64' argument 2 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/crypto/xxhash.h:250:62: note: Function 'XXH64' argument 2 names different: declaration 'length' definition 'len'. btrfs-progs-v5.18.1/crypto/xxhash.c:957:62: note: Function 'XXH64' argument 2 names different: declaration 'length' definition 'len'. btrfs-progs-v5.18.1/crypto/xxhash.c:990:52: style:inconclusive: Function 'XXH64_copyState' argument 1 names different: declaration 'dst_state' definition 'dstState'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/crypto/xxhash.h:256:52: note: Function 'XXH64_copyState' argument 1 names different: declaration 'dst_state' definition 'dstState'. btrfs-progs-v5.18.1/crypto/xxhash.c:990:52: note: Function 'XXH64_copyState' argument 1 names different: declaration 'dst_state' definition 'dstState'. btrfs-progs-v5.18.1/crypto/xxhash.c:990:83: style:inconclusive: Function 'XXH64_copyState' argument 2 names different: declaration 'src_state' definition 'srcState'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/crypto/xxhash.h:256:84: note: Function 'XXH64_copyState' argument 2 names different: declaration 'src_state' definition 'srcState'. btrfs-progs-v5.18.1/crypto/xxhash.c:990:83: note: Function 'XXH64_copyState' argument 2 names different: declaration 'src_state' definition 'srcState'. btrfs-progs-v5.18.1/crypto/xxhash.c:1009:30: style:inconclusive: Function 'XXH64_update' argument 1 names different: declaration 'statePtr' definition 'state'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/crypto/xxhash.h:259:59: note: Function 'XXH64_update' argument 1 names different: declaration 'statePtr' definition 'state'. btrfs-progs-v5.18.1/crypto/xxhash.c:1009:30: note: Function 'XXH64_update' argument 1 names different: declaration 'statePtr' definition 'state'. btrfs-progs-v5.18.1/crypto/xxhash.c:1009:63: style:inconclusive: Function 'XXH64_update' argument 3 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/crypto/xxhash.h:259:95: note: Function 'XXH64_update' argument 3 names different: declaration 'length' definition 'len'. btrfs-progs-v5.18.1/crypto/xxhash.c:1009:63: note: Function 'XXH64_update' argument 3 names different: declaration 'length' definition 'len'. btrfs-progs-v5.18.1/crypto/xxhash.c:1069:64: style:inconclusive: Function 'XXH64_digest' argument 1 names different: declaration 'statePtr' definition 'state'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/crypto/xxhash.h:260:65: note: Function 'XXH64_digest' argument 1 names different: declaration 'statePtr' definition 'state'. btrfs-progs-v5.18.1/crypto/xxhash.c:1069:64: note: Function 'XXH64_digest' argument 1 names different: declaration 'statePtr' definition 'state'. btrfs-progs-v5.18.1/crypto/xxhash.c:220:23: style: union member 'Anonymous0::u' is never used. [unusedStructMember] btrfs-progs-v5.18.1/crypto/xxhash.c:403:26: style: Variable 'p' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/crypto/xxhash.c:831:21: style: Variable 'p' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/crypto/xxhash.c:840:21: style: Variable 'p' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/image/main.c:3043:5: error: There is an unknown macro here somewhere. Configuration is required. If BOX_MAIN is a macro then please configure it. [unknownMacro] btrfs-progs-v5.18.1/image/sanitize.c:248:10: style: Variable 'tmp.val' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/image/sanitize.c:249:10: style: Variable 'tmp.len' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/kernel-lib/raid56.c:306:34: style: Condition 'dest1!=-1' is always true [knownConditionTrueFalse] btrfs-progs-v5.18.1/kernel-lib/raid56.c:152:17: style: Checking if unsigned expression 'stripe_len' is less than zero. [unsignedLessThanZero] btrfs-progs-v5.18.1/kernel-shared/backref.c:178:26: style: Parameter 'key' can be declared as pointer to const [constParameter] btrfs-progs-v5.18.1/kernel-shared/ctree.c:2407:13: style: Condition 'mid!=nritems' is always true [knownConditionTrueFalse] btrfs-progs-v5.18.1/kernel-shared/ctree.c:2403:13: note: Assuming that condition 'slot>=nritems' is not redundant btrfs-progs-v5.18.1/kernel-shared/ctree.c:2406:9: note: mid is assigned 'slot' here. btrfs-progs-v5.18.1/kernel-shared/ctree.c:2407:13: note: Condition 'mid!=nritems' is always true btrfs-progs-v5.18.1/kernel-shared/ctree.c:3410:17: style: Condition 'ret<0' is always true [knownConditionTrueFalse] btrfs-progs-v5.18.1/kernel-shared/ctree.c:3395:10: note: Assuming that condition 'ret>=0' is not redundant btrfs-progs-v5.18.1/kernel-shared/ctree.c:3410:17: note: Condition 'ret<0' is always true btrfs-progs-v5.18.1/kernel-shared/ctree.c:1669:32: style:inconclusive: Function 'balance_node_right' argument 3 names different: declaration 'dst_buf' definition 'dst'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/kernel-shared/ctree.c:41:32: note: Function 'balance_node_right' argument 3 names different: declaration 'dst_buf' definition 'dst'. btrfs-progs-v5.18.1/kernel-shared/ctree.c:1669:32: note: Function 'balance_node_right' argument 3 names different: declaration 'dst_buf' definition 'dst'. btrfs-progs-v5.18.1/kernel-shared/ctree.c:1670:32: style:inconclusive: Function 'balance_node_right' argument 4 names different: declaration 'src_buf' definition 'src'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/kernel-shared/ctree.c:42:32: note: Function 'balance_node_right' argument 4 names different: declaration 'src_buf' definition 'src'. btrfs-progs-v5.18.1/kernel-shared/ctree.c:1670:32: note: Function 'balance_node_right' argument 4 names different: declaration 'src_buf' definition 'src'. btrfs-progs-v5.18.1/kernel-shared/ctree.c:3110:23: error: Uninitialized variable: slot [uninitvar] btrfs-progs-v5.18.1/kernel-shared/ctree.c:3088:14: note: Assuming condition is false btrfs-progs-v5.18.1/kernel-shared/ctree.c:3110:23: note: Uninitialized variable: slot btrfs-progs-v5.18.1/kernel-shared/ctree.c:611:35: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/kernel-shared/ctree.c:1110:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/kernel-shared/ctree.c:1148:8: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/kernel-shared/ctree.c:1192:8: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/kernel-shared/ctree.c:2753:11: style: Variable 'data_end' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/kernel-shared/disk-io.c:1231:7: style: Local variable 'ret' shadows outer variable [shadowVariable] btrfs-progs-v5.18.1/kernel-shared/disk-io.c:1195:6: note: Shadowed declaration btrfs-progs-v5.18.1/kernel-shared/disk-io.c:1231:7: note: Shadow variable btrfs-progs-v5.18.1/kernel-shared/disk-io.c:1937:43: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] btrfs-progs-v5.18.1/kernel-shared/disk-io.c:64:18: style: Variable 'fsid_match' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/kernel-shared/disk-io.c:322:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/kernel-shared/extent-tree.c:3595:27: style: Condition 'extent_start>start' is always true [knownConditionTrueFalse] btrfs-progs-v5.18.1/kernel-shared/extent-tree.c:3593:20: note: Assuming that condition 'extent_start<=start' is not redundant btrfs-progs-v5.18.1/kernel-shared/extent-tree.c:3595:27: note: Condition 'extent_start>start' is always true btrfs-progs-v5.18.1/kernel-shared/extent-tree.c:1892:13: style: The comparison 'err < 0' is always false. [knownConditionTrueFalse] btrfs-progs-v5.18.1/kernel-shared/extent-tree.c:1862:12: note: 'err' is assigned value '0' here. btrfs-progs-v5.18.1/kernel-shared/extent-tree.c:1892:13: note: The comparison 'err < 0' is always false. btrfs-progs-v5.18.1/kernel-shared/extent-tree.c:3725:34: style: Local variable 'ref' shadows outer variable [shadowVariable] btrfs-progs-v5.18.1/kernel-shared/extent-tree.c:3705:33: note: Shadowed declaration btrfs-progs-v5.18.1/kernel-shared/extent-tree.c:3725:34: note: Shadow variable btrfs-progs-v5.18.1/kernel-shared/extent-tree.c:43:6: style: struct member 'pending_extent_op::type' is never used. [unusedStructMember] btrfs-progs-v5.18.1/kernel-shared/extent-tree.c:48:6: style: struct member 'pending_extent_op::level' is never used. [unusedStructMember] btrfs-progs-v5.18.1/kernel-shared/extent_io.c:878:33: portability: 'pointers[failed_a]' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] btrfs-progs-v5.18.1/kernel-shared/extent_io.c:984:25: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] btrfs-progs-v5.18.1/kernel-shared/extent_io.c:1004:39: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] btrfs-progs-v5.18.1/kernel-shared/extent_io.c:952:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/kernel-shared/free-space-cache.c:703:9: warning: Identical condition and return expression 'ret', return value is always 0 [identicalConditionAfterEarlyExit] btrfs-progs-v5.18.1/kernel-shared/free-space-cache.c:698:6: note: If condition 'ret' is true, the function will return/exit btrfs-progs-v5.18.1/kernel-shared/free-space-cache.c:703:9: note: Returning identical expression 'ret' btrfs-progs-v5.18.1/kernel-shared/free-space-cache.c:84:31: portability: 'io_ctl->buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] btrfs-progs-v5.18.1/kernel-shared/free-space-cache.c:159:23: portability: 'io_ctl->buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] btrfs-progs-v5.18.1/kernel-shared/free-space-cache.c:185:15: portability: 'io_ctl->cur' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] btrfs-progs-v5.18.1/kernel-shared/free-space-cache.c:189:15: portability: 'io_ctl->cur' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] btrfs-progs-v5.18.1/kernel-shared/free-space-cache.c:201:14: portability: 'io_ctl->cur' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] btrfs-progs-v5.18.1/kernel-shared/free-space-cache.c:224:33: portability: 'io_ctl->orig' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] btrfs-progs-v5.18.1/kernel-shared/free-space-cache.c:252:14: portability: 'io_ctl->cur' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] btrfs-progs-v5.18.1/kernel-shared/inode.c:730:15: style: Redundant initialization for 'search_start'. The initialized value is overwritten before it is read. [redundantInitialization] btrfs-progs-v5.18.1/kernel-shared/inode.c:724:19: note: search_start is initialized btrfs-progs-v5.18.1/kernel-shared/inode.c:730:15: note: search_start is overwritten btrfs-progs-v5.18.1/kernel-shared/print-tree.c:197:4: warning:inconclusive: The buffer 'profile' may not be null-terminated after the call to strncpy(). [terminateStrncpy] btrfs-progs-v5.18.1/kernel-shared/print-tree.c:1625:6: style: Condition 'follow' is always true [knownConditionTrueFalse] btrfs-progs-v5.18.1/kernel-shared/print-tree.c:1622:6: note: Assuming that condition '!follow' is not redundant btrfs-progs-v5.18.1/kernel-shared/print-tree.c:1625:6: note: Condition 'follow' is always true btrfs-progs-v5.18.1/kernel-shared/print-tree.c:1229:18: warning: Either the condition 'fs_info' is redundant or there is possible null pointer dereference: fs_info. [nullPointerRedundantCheck] btrfs-progs-v5.18.1/kernel-shared/print-tree.c:1250:6: note: Assuming that condition 'fs_info' is not redundant btrfs-progs-v5.18.1/kernel-shared/print-tree.c:1229:18: note: Null pointer dereference btrfs-progs-v5.18.1/kernel-shared/print-tree.c:1584:34: warning: Either the condition '!eb' is redundant or there is possible null pointer dereference: eb. [nullPointerRedundantCheck] btrfs-progs-v5.18.1/kernel-shared/print-tree.c:1590:6: note: Assuming that condition '!eb' is not redundant btrfs-progs-v5.18.1/kernel-shared/print-tree.c:1584:34: note: Null pointer dereference btrfs-progs-v5.18.1/kernel-shared/print-tree.c:1255:7: style: Redundant initialization for 'tmp'. The initialized value is overwritten before it is read. [redundantInitialization] btrfs-progs-v5.18.1/kernel-shared/print-tree.c:1251:13: note: tmp is initialized btrfs-progs-v5.18.1/kernel-shared/print-tree.c:1255:7: note: tmp is overwritten btrfs-progs-v5.18.1/kernel-shared/print-tree.c:105:15: style: Variable 'name_len' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/kernel-shared/print-tree.c:106:12: style: Variable 'index' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/kernel-shared/print-tree.c:422:10: style: Variable 'empty' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/kernel-shared/print-tree.c:1528:9: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/kernel-shared/volumes.c:565:6: style: Local variable 'zone_size' shadows outer function [shadowFunction] btrfs-progs-v5.18.1/kernel-shared/zoned.h:74:5: note: Shadowed declaration btrfs-progs-v5.18.1/kernel-shared/volumes.c:565:6: note: Shadow variable btrfs-progs-v5.18.1/kernel-shared/volumes.c:668:6: style: Local variable 'zone_size' shadows outer function [shadowFunction] btrfs-progs-v5.18.1/kernel-shared/zoned.h:74:5: note: Shadowed declaration btrfs-progs-v5.18.1/kernel-shared/volumes.c:668:6: note: Shadow variable btrfs-progs-v5.18.1/kernel-shared/volumes.c:1227:6: style: Local variable 'zone_size' shadows outer function [shadowFunction] btrfs-progs-v5.18.1/kernel-shared/zoned.h:74:5: note: Shadowed declaration btrfs-progs-v5.18.1/kernel-shared/volumes.c:1227:6: note: Shadow variable btrfs-progs-v5.18.1/kernel-shared/volumes.c:1362:6: style: Local variable 'zone_size' shadows outer function [shadowFunction] btrfs-progs-v5.18.1/kernel-shared/zoned.h:74:5: note: Shadowed declaration btrfs-progs-v5.18.1/kernel-shared/volumes.c:1362:6: note: Shadow variable btrfs-progs-v5.18.1/kernel-shared/volumes.c:2597:32: style: Parameter 'raid_map' can be declared as pointer to const [constParameter] btrfs-progs-v5.18.1/kernel-shared/volumes.c:187:23: style: struct member 'stripe::dev' is never used. [unusedStructMember] btrfs-progs-v5.18.1/kernel-shared/volumes.c:2412:10: style: Variable 'len' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/kernel-shared/zoned.c:1140:8: style: Condition '!zone_size' is always true [knownConditionTrueFalse] btrfs-progs-v5.18.1/kernel-shared/zoned.c:1115:18: note: Assignment 'zone_size=0', assigned value is 0 btrfs-progs-v5.18.1/kernel-shared/zoned.c:1123:18: note: Assuming condition is false btrfs-progs-v5.18.1/kernel-shared/zoned.c:1140:8: note: Condition '!zone_size' is always true btrfs-progs-v5.18.1/kernel-shared/zoned.c:1115:6: style: Local variable 'zone_size' shadows outer function [shadowFunction] btrfs-progs-v5.18.1/kernel-shared/zoned.c:79:5: note: Shadowed declaration btrfs-progs-v5.18.1/kernel-shared/zoned.c:1115:6: note: Shadow variable btrfs-progs-v5.18.1/libbtrfs/send-utils.c:85:20: style: Variable 'off' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/libbtrfsutil/python/error.c:33:25: style:inconclusive: Function 'SetFromBtrfsUtilErrorWithPath' argument 2 names different: declaration 'path' definition 'path1'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/libbtrfsutil/python/btrfsutilpy.h:61:25: note: Function 'SetFromBtrfsUtilErrorWithPath' argument 2 names different: declaration 'path' definition 'path1'. btrfs-progs-v5.18.1/libbtrfsutil/python/error.c:33:25: note: Function 'SetFromBtrfsUtilErrorWithPath' argument 2 names different: declaration 'path' definition 'path1'. btrfs-progs-v5.18.1/libbtrfsutil/python/qgroup.c:84:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] btrfs-progs-v5.18.1/libbtrfsutil/python/subvolume.c:349:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] btrfs-progs-v5.18.1/libbtrfsutil/python/subvolume.c:398:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] btrfs-progs-v5.18.1/libbtrfsutil/python/subvolume.c:565:2: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] btrfs-progs-v5.18.1/libbtrfsutil/qgroup.c:61:2: error: Common realloc mistake: 'tmp' nulled but not freed upon failure [memleakOnRealloc] btrfs-progs-v5.18.1/libbtrfsutil/subvolume.c:456:18: style:inconclusive: Function 'btrfs_util_get_subvolume_read_only_fd' argument 2 names different: declaration 'ret' definition 'read_only_ret'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/libbtrfsutil/btrfsutil.h:301:75: note: Function 'btrfs_util_get_subvolume_read_only_fd' argument 2 names different: declaration 'ret' definition 'read_only_ret'. btrfs-progs-v5.18.1/libbtrfsutil/subvolume.c:456:18: note: Function 'btrfs_util_get_subvolume_read_only_fd' argument 2 names different: declaration 'ret' definition 'read_only_ret'. btrfs-progs-v5.18.1/libbtrfsutil/subvolume.c:1277:71: style:inconclusive: Function 'btrfs_util_delete_subvolume_by_id_fd' argument 1 names different: declaration 'fd' definition 'parent_fd'. [funcArgNamesDifferent] btrfs-progs-v5.18.1/libbtrfsutil/btrfsutil.h:501:64: note: Function 'btrfs_util_delete_subvolume_by_id_fd' argument 1 names different: declaration 'fd' definition 'parent_fd'. btrfs-progs-v5.18.1/libbtrfsutil/subvolume.c:1277:71: note: Function 'btrfs_util_delete_subvolume_by_id_fd' argument 1 names different: declaration 'fd' definition 'parent_fd'. btrfs-progs-v5.18.1/mkfs/main.c:972:5: error: There is an unknown macro here somewhere. Configuration is required. If BOX_MAIN is a macro then please configure it. [unknownMacro] btrfs-progs-v5.18.1/mkfs/rootdir.c:924:14: style: Condition 'nr_devs>1' is always false [knownConditionTrueFalse] btrfs-progs-v5.18.1/mkfs/rootdir.c:918:16: note: Assignment 'nr_devs=0', assigned value is 0 btrfs-progs-v5.18.1/mkfs/rootdir.c:922:3: note: nr_devs is incremented', new value is 1 btrfs-progs-v5.18.1/mkfs/rootdir.c:924:14: note: Condition 'nr_devs>1' is always false btrfs-progs-v5.18.1/mkfs/rootdir.c:188:53: error: Null pointer dereference [nullPointer] btrfs-progs-v5.18.1/mkfs/rootdir.c:516:23: error: Null pointer dereference [nullPointer] btrfs-progs-v5.18.1/mkfs/rootdir.c:892:6: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] btrfs-progs-v5.18.1/mkfs/rootdir.c:876:7: note: ret is assigned btrfs-progs-v5.18.1/mkfs/rootdir.c:892:6: note: ret is overwritten btrfs-progs-v5.18.1/mkfs/rootdir.c:109:13: style: Variable 'blocks' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/mkfs/rootdir.c:210:17: style: Variable 'inode_size' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/quick-test.c:82:2: style: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] btrfs-progs-v5.18.1/random-test.c:70:6: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] btrfs-progs-v5.18.1/random-test.c:68:6: note: ret is assigned btrfs-progs-v5.18.1/random-test.c:70:6: note: ret is overwritten btrfs-progs-v5.18.1/random-test.c:179:22: style: Variable 'found' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/tests/fsstress.c:876:22: style: Condition 'ret<=11' is always true [knownConditionTrueFalse] btrfs-progs-v5.18.1/tests/fsstress.c:875:45: note: Assignment 'ret=snprintf(number,11,"0x%x",flags)>0', assigned value is less than 2 btrfs-progs-v5.18.1/tests/fsstress.c:876:22: note: Condition 'ret<=11' is always true btrfs-progs-v5.18.1/tests/fsstress.c:1643:9: style: Condition 'fd==-1' is always true [knownConditionTrueFalse] btrfs-progs-v5.18.1/tests/fsstress.c:1641:9: note: Assuming that condition 'fd!=-1' is not redundant btrfs-progs-v5.18.1/tests/fsstress.c:1643:9: note: Condition 'fd==-1' is always true btrfs-progs-v5.18.1/tests/fsstress.c:565:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] btrfs-progs-v5.18.1/tests/fsstress.c:675:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] btrfs-progs-v5.18.1/tests/fsstress.c:1864:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] btrfs-progs-v5.18.1/tests/fsstress.c:1864:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] btrfs-progs-v5.18.1/tests/fsstress.c:559:4: error: Common realloc mistake: 'ilist' nulled but not freed upon failure [memleakOnRealloc] btrfs-progs-v5.18.1/tests/fsstress.c:3925:4: style: Variable 'e' is reassigned a value before the old one has been used. [redundantAssignment] btrfs-progs-v5.18.1/tests/fsstress.c:3922:4: note: e is assigned btrfs-progs-v5.18.1/tests/fsstress.c:3925:4: note: e is overwritten btrfs-progs-v5.18.1/tests/fsstress.c:4838:4: style: Variable 'e' is reassigned a value before the old one has been used. [redundantAssignment] btrfs-progs-v5.18.1/tests/fsstress.c:4834:4: note: e is assigned btrfs-progs-v5.18.1/tests/fsstress.c:4838:4: note: e is overwritten btrfs-progs-v5.18.1/tests/fsstress.c:2220:10: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] btrfs-progs-v5.18.1/tests/fsstress.c:3499:10: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] btrfs-progs-v5.18.1/tests/fsstress.c:3580:10: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] btrfs-progs-v5.18.1/tests/fsstress.c:3295:8: style: Variable 'bytes' is assigned a value that is never used. [unreadVariable] btrfs-progs-v5.18.1/tests/fssum.c:534:14: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] btrfs-progs-v5.18.1/tests/fssum.c:351:24: error: Invalid lseek() argument nr 3. The value is 3 but the valid values are '0:2'. [invalidFunctionArg] btrfs-progs-v5.18.1/tests/fssum.c:238:8: style: Local variable 'buf' shadows outer variable [shadowVariable] btrfs-progs-v5.18.1/tests/fssum.c:160:13: note: Shadowed declaration btrfs-progs-v5.18.1/tests/fssum.c:238:8: note: Shadow variable btrfs-progs-v5.18.1/kernel-shared/ctree.c:529:6: error: Null pointer dereference: trans [ctunullpointer] btrfs-progs-v5.18.1/kernel-shared/ctree.c:1309:25: note: Calling function btrfs_search_slot, 1st argument is null btrfs-progs-v5.18.1/kernel-shared/ctree.c:1369:11: note: Calling function btrfs_cow_block, 1st argument is null btrfs-progs-v5.18.1/kernel-shared/ctree.c:529:6: note: Dereferencing argument trans that is null btrfs-progs-v5.18.1/kernel-shared/volumes.c:1258:60: error: Using argument ctl that points at uninitialized variable ctl [ctuuninitvar] btrfs-progs-v5.18.1/kernel-shared/volumes.c:1502:22: note: Calling function init_alloc_chunk_ctl, 2nd argument is uninitialized btrfs-progs-v5.18.1/kernel-shared/volumes.c:1258:60: note: Using argument ctl btrfs-progs-v5.18.1/kernel-shared/volumes.c:1364:7: error: Using argument ctl that points at uninitialized variable ctl [ctuuninitvar] btrfs-progs-v5.18.1/kernel-shared/volumes.c:1621:21: note: Calling function create_chunk, 3rd argument is uninitialized btrfs-progs-v5.18.1/kernel-shared/volumes.c:1364:7: note: Using argument ctl diff: head btrfs-progs-v5.18.1/btrfs-corrupt-block.c:110:53: style: Parameter 'trans' can be declared as pointer to const [constParameter] 2.8 btrfs-progs-v5.18.1/btrfs-corrupt-block.c:110:53: style: Parameter 'trans' can be declared with const [constParameter] head btrfs-progs-v5.18.1/cmds/receive.c:939:62: style: Parameter 'at' can be declared as pointer to const [constParameter] 2.8 btrfs-progs-v5.18.1/cmds/receive.c:939:62: style: Parameter 'at' can be declared with const [constParameter] head btrfs-progs-v5.18.1/cmds/receive.c:940:23: style: Parameter 'mt' can be declared as pointer to const [constParameter] 2.8 btrfs-progs-v5.18.1/cmds/receive.c:940:23: style: Parameter 'mt' can be declared with const [constParameter] head btrfs-progs-v5.18.1/common/device-scan.c:295:46: style: Parameter 'seen_fsid_hash' can be declared as const array [constParameter] 2.8 btrfs-progs-v5.18.1/common/device-scan.c:295:46: style: Parameter 'seen_fsid_hash' can be declared with const [constParameter] head btrfs-progs-v5.18.1/common/units.c:26:23: style: Variable 'ps_array' can be declared as const array [constVariable] 2.8 btrfs-progs-v5.18.1/common/units.c:26:23: style: Variable 'ps_array' can be declared with const [constVariable] head btrfs-progs-v5.18.1/crypto/sha224-256.c:275:18: style: Variable 'masks' can be declared as const array [constVariable] 2.8 btrfs-progs-v5.18.1/crypto/sha224-256.c:275:18: style: Variable 'masks' can be declared with const [constVariable] head btrfs-progs-v5.18.1/crypto/sha224-256.c:281:18: style: Variable 'markbit' can be declared as const array [constVariable] 2.8 btrfs-progs-v5.18.1/crypto/sha224-256.c:281:18: style: Variable 'markbit' can be declared with const [constVariable] head btrfs-progs-v5.18.1/crypto/sha224-256.c:342:62: style: Parameter 'H0' can be declared as pointer to const [constParameter] 2.8 btrfs-progs-v5.18.1/crypto/sha224-256.c:342:62: style: Parameter 'H0' can be declared with const [constParameter] head btrfs-progs-v5.18.1/kernel-shared/backref.c:178:26: style: Parameter 'key' can be declared as pointer to const [constParameter] 2.8 btrfs-progs-v5.18.1/kernel-shared/backref.c:178:26: style: Parameter 'key' can be declared with const [constParameter] head btrfs-progs-v5.18.1/kernel-shared/volumes.c:2597:32: style: Parameter 'raid_map' can be declared as pointer to const [constParameter] 2.8 btrfs-progs-v5.18.1/kernel-shared/volumes.c:2597:32: style: Parameter 'raid_map' can be declared with const [constParameter] DONE