2025-11-27 15:25 ftp://ftp.de.debian.org/debian/pool/main/l/linuxptp/linuxptp_4.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: d1e4660 (2025-11-27 16:20:04 +0100) count: 425 821 elapsed-time: 5.6 11.3 head-timing-info: old-timing-info: head results: linuxptp-4.2/msg.h:285:42: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] linuxptp-4.2/bmc.c:24:44: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/bmc.c:24:68: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/notification.h:39:47: style: Parameter 'bitmask' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/msg.h:259:25: style: Variable 'mgt' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/msg.h:271:25: style: Variable 'mgt' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/msg.h:429:54: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/tlv.h:268:63: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/config.h:69:65: style: Parameter 'cfg' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/missing.h:101:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [syntaxError] linuxptp-4.2/clockcheck.c:83:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] linuxptp-4.2/clockcheck.c:130:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] linuxptp-4.2/clockcheck.c:126:40: style: Parameter 'cc' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/util.h:64:38: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/util.h:71:38: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/util.h:98:48: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/util.h:98:73: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/config.c:418:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:449:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:481:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:505:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:522:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:637:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:672:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:702:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:753:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:771:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:793:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:893:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:943:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:977:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:1002:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:1014:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:1036:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:1052:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:1093:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:1115:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:1131:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:1168:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/config.c:475:72: style: Parameter 'address' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/config.c:502:43: style: Parameter 'address' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/config.c:660:6: style: Variable 'fault_values' can be declared as const array [constVariable] linuxptp-4.2/config.c:681:62: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/config.c:761:22: style: Variable 'ci' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/config.c:455:14: error: Uninitialized variable: table->table_index [uninitvar] linuxptp-4.2/e2e_tc.c:86:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] linuxptp-4.2/interface.c:50:47: style: Parameter 'iface' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/interface.c:61:46: style: Parameter 'iface' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/interface.c:81:52: style: Parameter 'iface' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/interface.c:94:44: style: Parameter 'iface' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/linreg.c:248:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] linuxptp-4.2/linreg.c:194:17: style: Variable 'res' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/linreg.c:314:23: style: Variable 's' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/lstab.c:137:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/lstab.c:182:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/lstab.c:207:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/lstab.c:237:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/lstab.c:115:32: style: Parameter 'lstab' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/monitor.c:43:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] linuxptp-4.2/monitor.c:135:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_LOCAL [valueFlowBailoutIncompleteVar] linuxptp-4.2/msg.c:83:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPROTO [valueFlowBailoutIncompleteVar] linuxptp-4.2/msg.c:135:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/msg.c:169:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/msg.c:196:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/msg.c:231:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/msg.c:264:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/msg.c:292:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/msg.c:315:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/msg.c:344:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADMSG [valueFlowBailoutIncompleteVar] linuxptp-4.2/msg.c:450:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] linuxptp-4.2/msg.c:500:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/msg.c:510:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/msg.c:586:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/msg.c:441:18: style: Condition 'hdr_pre_send(&m->header)' is always false [knownConditionTrueFalse] linuxptp-4.2/msg.c:441:18: note: Calling function 'hdr_pre_send' returns 0 linuxptp-4.2/msg.c:441:18: note: Condition 'hdr_pre_send(&m->header)' is always false linuxptp-4.2/msg.c:59:47: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/msg.c:240:74: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/msg.c:543:36: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/msg.c:40:16: style: struct member 'message_storage::reserved' is never used. [unusedStructMember] linuxptp-4.2/nmea.c:125:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] linuxptp-4.2/nmea.c:167:52: style:inconclusive: Function 'nmea_parse' argument 2 names different: declaration 'buf' definition 'ptr'. [funcArgNamesDifferent] linuxptp-4.2/nmea.h:29:52: note: Function 'nmea_parse' argument 2 names different: declaration 'buf' definition 'ptr'. linuxptp-4.2/nmea.c:167:52: note: Function 'nmea_parse' argument 2 names different: declaration 'buf' definition 'ptr'. linuxptp-4.2/nmea.c:168:26: style:inconclusive: Function 'nmea_parse' argument 4 names different: declaration 'rmc' definition 'result'. [funcArgNamesDifferent] linuxptp-4.2/nmea.h:30:26: note: Function 'nmea_parse' argument 4 names different: declaration 'rmc' definition 'result'. linuxptp-4.2/nmea.c:168:26: note: Function 'nmea_parse' argument 4 names different: declaration 'rmc' definition 'result'. linuxptp-4.2/nmea.c:121:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/nsm.c:65:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] linuxptp-4.2/nsm.c:269:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IF_NAMESIZE [valueFlowBailoutIncompleteVar] linuxptp-4.2/nsm.c:329:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/nsm.c:405:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] linuxptp-4.2/nsm.c:456:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/nsm.c:490:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] linuxptp-4.2/nsm.c:226:2: portability: %hd in format string (no. 1) requires 'short' but the argument type is 'UInteger16 {aka unsigned short}'. [invalidPrintfArgType_sint] linuxptp-4.2/nsm.c:242:23: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] linuxptp-4.2/nsm.c:243:23: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] linuxptp-4.2/nsm.c:244:29: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] linuxptp-4.2/nsm.c:245:29: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] linuxptp-4.2/nsm.c:246:30: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] linuxptp-4.2/nsm.c:247:30: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] linuxptp-4.2/nsm.c:92:27: style: Parameter 'fup' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/nsm.c:94:27: style: Parameter 'resp' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/nsm.c:130:27: style: Variable 'tp' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/nsm.c:131:22: style: Variable 'paddr' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/nsm.c:363:47: style: Parameter 'target' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/nsm.c:454:25: style: Parameter 'progname' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/nsm.c:469:8: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/nsm.c:469:21: style: Variable 'config' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/nsm.c:473:17: style: Variable 'opts' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/ntpshm.c:153:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPC_CREAT [valueFlowBailoutIncompleteVar] linuxptp-4.2/ntpshm.c:121:48: style: Parameter 'servo' can be declared as pointer to const. However it seems that 'ntpshm_sync_interval' is a callback function, if 'servo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/ntpshm.c:148:27: note: You might need to cast the function pointer here linuxptp-4.2/ntpshm.c:121:48: note: Parameter 'servo' can be declared as pointer to const linuxptp-4.2/ntpshm.c:125:40: style: Parameter 'servo' can be declared as pointer to const. However it seems that 'ntpshm_reset' is a callback function, if 'servo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/ntpshm.c:149:19: note: You might need to cast the function pointer here linuxptp-4.2/ntpshm.c:125:40: note: Parameter 'servo' can be declared as pointer to const linuxptp-4.2/nullf.c:37:42: style: Parameter 'servo' can be declared as pointer to const. However it seems that 'nullf_sample' is a callback function, if 'servo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/nullf.c:77:20: note: You might need to cast the function pointer here linuxptp-4.2/nullf.c:37:42: note: Parameter 'servo' can be declared as pointer to const linuxptp-4.2/nullf.c:60:47: style: Parameter 'servo' can be declared as pointer to const. However it seems that 'nullf_sync_interval' is a callback function, if 'servo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/nullf.c:78:27: note: You might need to cast the function pointer here linuxptp-4.2/nullf.c:60:47: note: Parameter 'servo' can be declared as pointer to const linuxptp-4.2/nullf.c:64:39: style: Parameter 'servo' can be declared as pointer to const. However it seems that 'nullf_reset' is a callback function, if 'servo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/nullf.c:79:19: note: You might need to cast the function pointer here linuxptp-4.2/nullf.c:64:39: note: Parameter 'servo' can be declared as pointer to const linuxptp-4.2/p2p_tc.c:102:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] linuxptp-4.2/pi.c:169:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] linuxptp-4.2/pmc.c:122:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/pmc.c:664:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/pmc.c:713:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] linuxptp-4.2/pmc.c:195:13: style: Condition 'actionntp,&ntp_config->content)' is always false [knownConditionTrueFalse] linuxptp-4.2/timemaster.c:1091:22: note: Calling function 'add_ntp_source' returns 0 linuxptp-4.2/timemaster.c:1091:22: note: Condition 'add_ntp_source(&source->ntp,&ntp_config->content)' is always false linuxptp-4.2/timemaster.c:1488:25: style: Condition 'remove_config_files(script->configs)' is always false [knownConditionTrueFalse] linuxptp-4.2/timemaster.c:1488:25: note: Calling function 'remove_config_files' returns 0 linuxptp-4.2/timemaster.c:1488:25: note: Condition 'remove_config_files(script->configs)' is always false linuxptp-4.2/timemaster.c:272:2: warning: If memory allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:271:18: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:271:18: note: Assignment 'source=xmalloc(sizeof(*source))', assigned value is 0 linuxptp-4.2/timemaster.c:272:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:273:2: warning: If memory allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:271:18: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:271:18: note: Assignment 'source=xmalloc(sizeof(*source))', assigned value is 0 linuxptp-4.2/timemaster.c:273:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:274:2: warning: If memory allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:271:18: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:271:18: note: Assignment 'source=xmalloc(sizeof(*source))', assigned value is 0 linuxptp-4.2/timemaster.c:274:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:275:2: warning: If memory allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:271:18: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:271:18: note: Assignment 'source=xmalloc(sizeof(*source))', assigned value is 0 linuxptp-4.2/timemaster.c:275:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:276:2: warning: If memory allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:271:18: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:271:18: note: Assignment 'source=xmalloc(sizeof(*source))', assigned value is 0 linuxptp-4.2/timemaster.c:276:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:277:2: warning: If memory allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:271:18: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:271:18: note: Assignment 'source=xmalloc(sizeof(*source))', assigned value is 0 linuxptp-4.2/timemaster.c:277:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:312:2: warning: If memory allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:311:18: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:311:18: note: Assignment 'source=xmalloc(sizeof(*source))', assigned value is 0 linuxptp-4.2/timemaster.c:312:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:313:2: warning: If memory allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:311:18: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:311:18: note: Assignment 'source=xmalloc(sizeof(*source))', assigned value is 0 linuxptp-4.2/timemaster.c:313:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:314:2: warning: If memory allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:311:18: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:311:18: note: Assignment 'source=xmalloc(sizeof(*source))', assigned value is 0 linuxptp-4.2/timemaster.c:314:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:315:2: warning: If memory allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:311:18: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:311:18: note: Assignment 'source=xmalloc(sizeof(*source))', assigned value is 0 linuxptp-4.2/timemaster.c:315:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:316:2: warning: If memory allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:311:18: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:311:18: note: Assignment 'source=xmalloc(sizeof(*source))', assigned value is 0 linuxptp-4.2/timemaster.c:316:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:317:2: warning: If memory allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:311:18: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:311:18: note: Assignment 'source=xmalloc(sizeof(*source))', assigned value is 0 linuxptp-4.2/timemaster.c:317:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:318:2: warning: If memory allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:311:18: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:311:18: note: Assignment 'source=xmalloc(sizeof(*source))', assigned value is 0 linuxptp-4.2/timemaster.c:318:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:557:2: warning: If memory allocation fails, then there is a possible null pointer dereference: config [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:551:44: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:551:44: note: Assignment 'config=xcalloc(1,sizeof(*config))', assigned value is 0 linuxptp-4.2/timemaster.c:557:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:558:2: warning: If memory allocation fails, then there is a possible null pointer dereference: config [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:551:44: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:551:44: note: Assignment 'config=xcalloc(1,sizeof(*config))', assigned value is 0 linuxptp-4.2/timemaster.c:558:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:559:2: warning: If memory allocation fails, then there is a possible null pointer dereference: config [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:551:44: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:551:44: note: Assignment 'config=xcalloc(1,sizeof(*config))', assigned value is 0 linuxptp-4.2/timemaster.c:559:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:560:2: warning: If memory allocation fails, then there is a possible null pointer dereference: config [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:551:44: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:551:44: note: Assignment 'config=xcalloc(1,sizeof(*config))', assigned value is 0 linuxptp-4.2/timemaster.c:560:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:561:2: warning: If memory allocation fails, then there is a possible null pointer dereference: config [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:551:44: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:551:44: note: Assignment 'config=xcalloc(1,sizeof(*config))', assigned value is 0 linuxptp-4.2/timemaster.c:561:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:562:2: warning: If memory allocation fails, then there is a possible null pointer dereference: config [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:551:44: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:551:44: note: Assignment 'config=xcalloc(1,sizeof(*config))', assigned value is 0 linuxptp-4.2/timemaster.c:562:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:719:3: warning: If memory allocation fails, then there is a possible null pointer dereference: group [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:718:17: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:718:17: note: Assignment 'group=xmalloc(sizeof(int))', assigned value is 0 linuxptp-4.2/timemaster.c:719:3: note: Null pointer dereference linuxptp-4.2/timemaster.c:776:2: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:775:13: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:775:13: note: Assignment 'v=xmalloc(sizeof(*v))', assigned value is 0 linuxptp-4.2/timemaster.c:776:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:777:2: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:775:13: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:775:13: note: Assignment 'v=xmalloc(sizeof(*v))', assigned value is 0 linuxptp-4.2/timemaster.c:777:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:811:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: phcs [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:809:16: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:809:16: note: Assignment 'phcs=xmalloc(num_interfaces*sizeof(int))', assigned value is 0 linuxptp-4.2/timemaster.c:811:3: note: Null pointer dereference linuxptp-4.2/timemaster.c:886:6: warning: If memory allocation fails, then there is a possible null pointer dereference: phc [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:885:18: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:885:18: note: Assignment 'phc=xmalloc(sizeof(int))', assigned value is 0 linuxptp-4.2/timemaster.c:886:6: note: Null pointer dereference linuxptp-4.2/timemaster.c:904:3: warning: If memory allocation fails, then there is a possible null pointer dereference: config_file [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:903:24: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:903:24: note: Assignment 'config_file=xmalloc(sizeof(*config_file))', assigned value is 0 linuxptp-4.2/timemaster.c:904:3: note: Null pointer dereference linuxptp-4.2/timemaster.c:907:3: warning: If memory allocation fails, then there is a possible null pointer dereference: config_file [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:903:24: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:903:24: note: Assignment 'config_file=xmalloc(sizeof(*config_file))', assigned value is 0 linuxptp-4.2/timemaster.c:907:3: note: Null pointer dereference linuxptp-4.2/timemaster.c:1014:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ntp_config [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:1011:42: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:1011:42: note: Assignment 'ntp_config=xmalloc(sizeof(*ntp_config))', assigned value is 0 linuxptp-4.2/timemaster.c:1014:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:1079:2: warning: If memory allocation fails, then there is a possible null pointer dereference: script [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:1073:33: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:1073:33: note: Assignment 'script=xmalloc(sizeof(*script))', assigned value is 0 linuxptp-4.2/timemaster.c:1079:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:1080:2: warning: If memory allocation fails, then there is a possible null pointer dereference: script [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:1073:33: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:1073:33: note: Assignment 'script=xmalloc(sizeof(*script))', assigned value is 0 linuxptp-4.2/timemaster.c:1080:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:1081:2: warning: If memory allocation fails, then there is a possible null pointer dereference: script [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:1073:33: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:1073:33: note: Assignment 'script=xmalloc(sizeof(*script))', assigned value is 0 linuxptp-4.2/timemaster.c:1081:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:1082:2: warning: If memory allocation fails, then there is a possible null pointer dereference: script [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:1073:33: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:1073:33: note: Assignment 'script=xmalloc(sizeof(*script))', assigned value is 0 linuxptp-4.2/timemaster.c:1082:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:1083:2: warning: If memory allocation fails, then there is a possible null pointer dereference: script [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:1073:33: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:1073:33: note: Assignment 'script=xmalloc(sizeof(*script))', assigned value is 0 linuxptp-4.2/timemaster.c:1083:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:1084:2: warning: If memory allocation fails, then there is a possible null pointer dereference: script [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:1073:33: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:1073:33: note: Assignment 'script=xmalloc(sizeof(*script))', assigned value is 0 linuxptp-4.2/timemaster.c:1084:2: note: Null pointer dereference linuxptp-4.2/timemaster.c:1357:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pids [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:1354:16: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:1354:16: note: Assignment 'pids=xcalloc(num_commands,sizeof(*pids))', assigned value is 0 linuxptp-4.2/timemaster.c:1357:3: note: Null pointer dereference linuxptp-4.2/timemaster.c:1358:8: warning: If memory allocation fails, then there is a possible null pointer dereference: pids [nullPointerOutOfMemory] linuxptp-4.2/timemaster.c:1354:16: note: Assuming allocation function fails linuxptp-4.2/timemaster.c:1354:16: note: Assignment 'pids=xcalloc(num_commands,sizeof(*pids))', assigned value is 0 linuxptp-4.2/timemaster.c:1358:8: note: Null pointer dereference linuxptp-4.2/timemaster.c:564:49: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:565:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:566:43: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:567:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:569:31: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:569:37: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:571:29: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:571:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:649:37: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:652:52: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:656:45: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:677:22: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:685:37: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:692:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:989:43: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:1002:43: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] linuxptp-4.2/timemaster.c:166:29: style: Parameter 's' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/timemaster.c:174:28: style: Parameter 's' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/timemaster.c:182:31: style: Parameter 's' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/timemaster.c:214:34: style: Parameter 's' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/timemaster.c:260:46: style: Parameter 'parameter' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/timemaster.c:423:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/timemaster.c:640:25: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/timemaster.c:641:11: style: Parameter 'phc_index' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/timemaster.c:982:27: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/timemaster.c:995:31: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/timemaster.c:1113:54: style: Parameter 'mask' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/timemaster.c:1266:27: style: Variable 's' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/timemaster.c:1498:22: style: Variable 'config' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/timemaster.c:1522:25: style: Parameter 'progname' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/tlv.c:139:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADMSG [valueFlowBailoutIncompleteVar] linuxptp-4.2/tlv.c:502:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADMSG [valueFlowBailoutIncompleteVar] linuxptp-4.2/tlv.c:691:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADMSG [valueFlowBailoutIncompleteVar] linuxptp-4.2/tlv.c:844:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADMSG [valueFlowBailoutIncompleteVar] linuxptp-4.2/tlv.c:904:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADMSG [valueFlowBailoutIncompleteVar] linuxptp-4.2/tlv.c:953:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADMSG [valueFlowBailoutIncompleteVar] linuxptp-4.2/tlv.c:1021:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADMSG [valueFlowBailoutIncompleteVar] linuxptp-4.2/tlv.c:1086:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/tlv.c:1098:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/tlv.c:1106:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/tlv.c:1184:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBADMSG [valueFlowBailoutIncompleteVar] linuxptp-4.2/tlv.c:115:43: style: Parameter 'tlv' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/tlv.c:1013:38: style: Variable 'ack' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/tlv.c:1014:34: style: Variable 'cancel' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/transport.c:76:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_ERRQUEUE [valueFlowBailoutIncompleteVar] linuxptp-4.2/transport.c:69:36: style: Parameter 'fda' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/transport.c:96:54: style: Parameter 't' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/tsproc.c:137:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] linuxptp-4.2/tsproc.c:159:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] linuxptp-4.2/tsproc.c:50:37: style: Parameter 'tsp' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/tz2alt.c:96:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/tz2alt.c:129:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] linuxptp-4.2/tz2alt.c:230:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/tz2alt.c:290:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] linuxptp-4.2/tz2alt.c:324:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] linuxptp-4.2/tz2alt.c:266:8: style: Obsolescent function 'ctime_r' called. It is recommended to use 'strftime' instead. [prohibitedctime_rCalled] linuxptp-4.2/tz2alt.c:45:42: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/tz2alt.c:45:60: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/tz2alt.c:176:46: style: Parameter 'tz' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/tz2alt.c:176:65: style: Parameter 'next' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/tz2alt.c:288:25: style: Parameter 'progname' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/tz2alt.c:306:8: style: Variable 'config' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/tz2alt.c:306:35: style: Variable 'timezone' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/tz2alt.c:308:17: style: Variable 'opts' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/udp.c:59:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/udp.c:71:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in_addr [valueFlowBailoutIncompleteVar] linuxptp-4.2/udp.c:100:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] linuxptp-4.2/udp.c:166:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] linuxptp-4.2/udp.c:214:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_DONTWAIT [valueFlowBailoutIncompleteVar] linuxptp-4.2/udp.c:240:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] linuxptp-4.2/udp.c:86:40: style: Parameter 't' can be declared as pointer to const. However it seems that 'udp_close' is a callback function, if 't' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/udp.c:303:17: note: You might need to cast the function pointer here linuxptp-4.2/udp.c:86:40: note: Parameter 't' can be declared as pointer to const linuxptp-4.2/udp.c:86:59: style: Parameter 'fda' can be declared as pointer to const. However it seems that 'udp_close' is a callback function, if 'fda' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/udp.c:303:17: note: You might need to cast the function pointer here linuxptp-4.2/udp.c:86:59: note: Parameter 'fda' can be declared as pointer to const linuxptp-4.2/udp.c:93:57: style: Parameter 'mc_addr' can be declared as const array [constParameter] linuxptp-4.2/udp.c:218:51: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'udp_send' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/udp.c:306:17: note: You might need to cast the function pointer here linuxptp-4.2/udp.c:218:51: note: Parameter 'buf' can be declared as pointer to const linuxptp-4.2/udp.c:276:14: style: Variable 'udp' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/udp.c:288:14: style: Variable 'udp' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/udp6.c:70:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/udp6.c:82:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in6_addr [valueFlowBailoutIncompleteVar] linuxptp-4.2/udp6.c:111:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] linuxptp-4.2/udp6.c:176:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] linuxptp-4.2/udp6.c:231:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_DONTWAIT [valueFlowBailoutIncompleteVar] linuxptp-4.2/udp6.c:258:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] linuxptp-4.2/udp6.c:97:41: style: Parameter 't' can be declared as pointer to const. However it seems that 'udp6_close' is a callback function, if 't' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/udp6.c:319:20: note: You might need to cast the function pointer here linuxptp-4.2/udp6.c:97:41: note: Parameter 't' can be declared as pointer to const linuxptp-4.2/udp6.c:97:60: style: Parameter 'fda' can be declared as pointer to const. However it seems that 'udp6_close' is a callback function, if 'fda' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/udp6.c:319:20: note: You might need to cast the function pointer here linuxptp-4.2/udp6.c:97:60: note: Parameter 'fda' can be declared as pointer to const linuxptp-4.2/udp6.c:104:63: style: Parameter 'mc_addr' can be declared as const array [constParameter] linuxptp-4.2/udp6.c:235:52: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'udp6_send' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/udp6.c:322:20: note: You might need to cast the function pointer here linuxptp-4.2/udp6.c:235:52: note: Parameter 'buf' can be declared as pointer to const linuxptp-4.2/udp6.c:291:15: style: Variable 'udp6' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/udp6.c:303:15: style: Variable 'udp6' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/uds.c:45:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_LOCAL [valueFlowBailoutIncompleteVar] linuxptp-4.2/uds.c:67:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/uds.c:111:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/uds.c:130:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] linuxptp-4.2/uds.c:39:59: style: Parameter 'fda' can be declared as pointer to const. However it seems that 'uds_close' is a callback function, if 'fda' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/uds.c:147:19: note: You might need to cast the function pointer here linuxptp-4.2/uds.c:39:59: note: Parameter 'fda' can be declared as pointer to const linuxptp-4.2/uds.c:56:8: style: Variable 'uds_ro_path' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/uds.c:57:8: style: Variable 'uds_path' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/uds.c:119:51: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'uds_send' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/uds.c:150:19: note: You might need to cast the function pointer here linuxptp-4.2/uds.c:119:51: note: Parameter 'buf' can be declared as pointer to const linuxptp-4.2/uds.c:120:23: style: Parameter 'addr' can be declared as pointer to const. However it seems that 'uds_send' is a callback function, if 'addr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/uds.c:150:19: note: You might need to cast the function pointer here linuxptp-4.2/uds.c:120:23: note: Parameter 'addr' can be declared as pointer to const linuxptp-4.2/unicast_client.c:102:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:117:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:140:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:177:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:231:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:268:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:280:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:302:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:343:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:380:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:448:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:544:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:564:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:599:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:646:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] linuxptp-4.2/unicast_client.c:369:44: style:inconclusive: Function 'unicast_client_initialize' argument 1 names different: declaration 'port' definition 'p'. [funcArgNamesDifferent] linuxptp-4.2/unicast_client.h:43:44: note: Function 'unicast_client_initialize' argument 1 names different: declaration 'port' definition 'p'. linuxptp-4.2/unicast_client.c:369:44: note: Function 'unicast_client_initialize' argument 1 names different: declaration 'port' definition 'p'. linuxptp-4.2/unicast_client.c:319:34: style: Variable 'cancel' can be declared as pointer to const [constVariablePointer] linuxptp-4.2/unicast_client.c:527:41: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] linuxptp-4.2/unicast_client.c:122:7: error: Uninitialized variables: ucma.portIdentity, ucma.type, ucma.state, ucma.granted, ucma.sydymsk, ucma.renewal_tmo [uninitvar] linuxptp-4.2/unicast_client.c:118:13: note: Assuming condition is false linuxptp-4.2/unicast_client.c:122:7: note: Uninitialized variables: ucma.portIdentity, ucma.type, ucma.state, ucma.granted, ucma.sydymsk, ucma.renewal_tmo linuxptp-4.2/unicast_client.c:308:22: error: Uninitialized variables: address.portIdentity, address.type, address.state, address.address, address.granted, address.sydymsk, address.renewal_tmo [uninitvar] linuxptp-4.2/unicast_client.c:304:7: note: Assuming condition is false linuxptp-4.2/unicast_client.c:308:22: note: Uninitialized variables: address.portIdentity, address.type, address.state, address.address, address.granted, address.sydymsk, address.renewal_tmo linuxptp-4.2/unicast_client.c:381:14: error: Uninitialized variable: table->table_index [uninitvar] linuxptp-4.2/unicast_client.c:403:15: error: Uninitialized variable: master->type [uninitvar] linuxptp-4.2/unicast_client.c:545:14: error: Uninitialized variable: &ucma->portIdentity [uninitvar] linuxptp-4.2/unicast_client.c:565:15: error: Uninitialized variable: master->type [uninitvar] linuxptp-4.2/util.h:157:16: error: Using argument a that points at uninitialized variable ucma->portIdentity [ctuuninitvar] linuxptp-4.2/unicast_client.c:545:13: note: Calling function pid_eq, 1st argument is uninitialized linuxptp-4.2/util.h:157:16: note: Using argument a diff: 2.18.0 linuxptp-4.2/clock.c:1022:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:1043:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:1049:40: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:1055:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOF_TIMESTAMPING_TX_SOFTWARE [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:1083:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IF_NAMESIZE [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:1457:20: style: Variable 'in' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/clock.c:1482:71: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:1496:36: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:1513:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pollfd [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:1528:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:1543:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:1559:19: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:1593:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:1607:40: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:1616:25: style: Variable 'mgt' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/clock.c:1715:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:1722:7: style: Condition '!answers' is always true [knownConditionTrueFalse] linuxptp-4.2/clock.c:1714:13: note: Assignment 'answers=0', assigned value is 0 linuxptp-4.2/clock.c:1717:12: note: Assuming condition is false linuxptp-4.2/clock.c:1722:7: note: Condition '!answers' is always true 2.18.0 linuxptp-4.2/clock.c:1795:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINTR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:1901:51: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:1911:49: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:1916:57: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:1926:47: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:1942:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:1985:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:199:31: style: Variable 'mtd' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/clock.c:2002:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:201:29: error: Null pointer dereference: req [ctunullpointer] linuxptp-4.2/clock.c:1760:37: note: Calling function clock_management_fill_response, 3rd argument is null linuxptp-4.2/clock.c:503:9: note: Calling function clock_alttime_offset_get_key, 1st argument is null linuxptp-4.2/clock.c:201:29: note: Dereferencing argument req that is null 2.18.0 linuxptp-4.2/clock.c:2105:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:2159:61: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:2180:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:2201:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:225:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:2282:42: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:2302:41: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:2307:50: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:230:20: style: Parameter 'bitmask' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:243:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:281:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:282:14: error: Uninitialized variable: &s->targetPortIdentity [uninitvar] 2.18.0 linuxptp-4.2/clock.c:302:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:312:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:328:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:332:37: error: Uninitialized variable: s->sequenceId [uninitvar] linuxptp-4.2/clock.c:329:7: note: Assuming condition is false linuxptp-4.2/clock.c:332:37: note: Uninitialized variable: s->sequenceId 2.18.0 linuxptp-4.2/clock.c:350:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:378:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:409:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:416:73: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:435:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:484:44: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] 2.18.0 linuxptp-4.2/clock.c:618:43: style: Variable 'atop' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/clock.c:620:34: style: Variable 'gsn' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/clock.c:621:31: style: Variable 'mtd' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/clock.c:710:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:735:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:787:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:822:47: style: Parameter 'pds1' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:822:70: style: Parameter 'pds2' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:869:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:914:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clock.c:992:43: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clock.c:997:33: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/clockadj.c:123:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clockadj.c:136:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clockadj.c:165:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clockadj.c:186:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clockadj.c:212:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clockadj.c:223:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clockadj.c:228:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clockadj.c:58:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ADJ_TICK [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clockadj.c:78:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/clockadj.c:93:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ADJ_OFFSET [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/hwstamp_ctl.c:35:25: style: Parameter 'progname' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/hwstamp_ctl.c:37:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/hwstamp_ctl.c:86:8: style: Variable 'device' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/hwstamp_ctl.c:87:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HWTSTAMP_FILTER_NONE [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/linreg.c:222:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] head linuxptp-4.2/linreg.c:248:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/linreg.c:291:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/linreg.c:298:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/linreg.c:314:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/linreg.c:321:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/linreg.c:88:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/lstab.c:121:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/mave.c:36:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/mave.c:43:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/mave.c:57:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] head linuxptp-4.2/missing.h:101:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [syntaxError] 2.18.0 linuxptp-4.2/missing.h:273:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __NR_clock_adjtime [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/mmedian.c:38:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/mmedian.c:46:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/mmedian.c:81:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/nsm.c:198:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ntpshm.c:131:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ntpshm.c:70:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ntpshm.c:85:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/nullf.c:33:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc.c:115:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTP_CLK_MAGIC [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc.c:51:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc.c:66:2: error: Resource leak: fd [resourceLeak] 2.18.0 linuxptp-4.2/phc.c:81:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTP_CLOCK_GETCAPS [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:1037:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:1091:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:1108:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:1121:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:1122:10: error: Uninitialized variable: c->clkid [uninitvar] 2.18.0 linuxptp-4.2/phc2sys.c:1129:25: style: Parameter 'progname' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/phc2sys.c:1131:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:1172:35: style: Variable 'src_name' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/phc2sys.c:1172:8: style: Variable 'config' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/phc2sys.c:1177:19: style: Local variable 'print_level' shadows outer variable [shadowVariable] linuxptp-4.2/print.h:50:12: note: Shadowed declaration linuxptp-4.2/phc2sys.c:1177:19: note: Shadow variable 2.18.0 linuxptp-4.2/phc2sys.c:1177:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:1180:17: style: Variable 'opts' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/phc2sys.c:128:47: style: Parameter 'domain' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/phc2sys.c:129:25: style: Parameter 'clock' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/phc2sys.c:137:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:181:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:227:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:254:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:263:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:264:10: error: Uninitialized variable: p->number [uninitvar] 2.18.0 linuxptp-4.2/phc2sys.c:271:15: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/phc2sys.c:281:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:282:20: error: Uninitialized variable: tmp->device [uninitvar] 2.18.0 linuxptp-4.2/phc2sys.c:307:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:313:10: error: Uninitialized variable: p->clock [uninitvar] 2.18.0 linuxptp-4.2/phc2sys.c:373:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dst_list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:374:7: warning:inconclusive: Possible null pointer dereference: c [nullPointer] linuxptp-4.2/phc2sys.c:372:20: note: Assignment 'c=NULL', assigned value is 0 linuxptp-4.2/phc2sys.c:374:7: note: Null pointer dereference 2.18.0 linuxptp-4.2/phc2sys.c:390:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dst_list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:399:10: error: Uninitialized variable: c->clkid [uninitvar] 2.18.0 linuxptp-4.2/phc2sys.c:467:43: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/phc2sys.c:467:61: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/phc2sys.c:485:37: style: Variable 'rt_domain' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/phc2sys.c:488:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:527:69: style: Parameter 'dst' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/phc2sys.c:553:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:619:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:654:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTP_ENABLE_PPS [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:664:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PPS_TIME_INVALID [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:709:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:736:40: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/phc2sys.c:738:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:763:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dst_list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:764:22: error: Uninitialized variables: clock.clkid, clock.phc_index, clock.sysoff_method, clock.is_utc, clock.dest_only, clock.state, clock.new_state, clock.sync_offset, clock.leap_set, clock.utc_offset_set, clock.servo, clock.servo_state, clock.device, clock.source_label, clock.offset_stats, clock.freq_stats, clock.delay_stats, clock.sanity_check [uninitvar] 2.18.0 linuxptp-4.2/phc2sys.c:820:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:872:25: style: Parameter 'clock' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/phc2sys.c:877:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:878:10: error: Uninitialized variable: p->clock [uninitvar] 2.18.0 linuxptp-4.2/phc2sys.c:907:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:932:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/phc2sys.c:991:50: error: Uninitialized variables: clock.clkid, clock.phc_index, clock.sysoff_method, clock.is_utc, clock.dest_only, clock.state, clock.new_state, clock.sync_offset, clock.leap_set, clock.utc_offset_set, clock.servo, clock.servo_state, clock.device, clock.source_label, clock.offset_stats, clock.freq_stats, clock.delay_stats, clock.sanity_check [uninitvar] 2.18.0 linuxptp-4.2/phc_ctl.c:352:0: error: failed to expand 'pr_notice', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective] 2.18.0 linuxptp-4.2/phc_ctl.c:352:3: error: failed to expand 'pr_notice', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective] 2.18.0 linuxptp-4.2/pi.c:159:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] head linuxptp-4.2/pi.c:169:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/pi.c:175:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/pi.c:60:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/pi.c:70:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/pmc.c:390:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/pmc.c:66:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/pmc.c:80:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:112:52: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:1169:35: style: Variable 'pwr' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/port.c:1171:21: style: Variable 'pdsnp' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/port.c:1195:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:1219:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:1239:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:1255:40: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:1262:37: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:1277:44: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:1288:39: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:1294:46: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:1303:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:1312:54: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:1315:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:1354:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:1416:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:1432:22: style: Variable 'syn' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/port.c:1432:28: style: Variable 'fup' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/port.c:1555:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:158:23: style: Variable 'id1' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/port.c:158:29: style: Variable 'id2' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/port.c:1611:23: style: Variable 'dst' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/port.c:1617:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:1633:54: style: Parameter 'dst' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:1676:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:1693:50: style: Parameter 'dst' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:1754:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:177:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:178:7: error: Uninitialized variables: ucma.portIdentity, ucma.type, ucma.state, ucma.address, ucma.granted, ucma.sydymsk, ucma.renewal_tmo [uninitvar] 2.18.0 linuxptp-4.2/port.c:1803:34: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:1834:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:1924:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:193:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:2042:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:2070:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:2108:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:211:46: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:2170:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:223:32: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:2273:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:2467:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:2547:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:2578:30: style:inconclusive: Function 'port_close' argument 1 names different: declaration 'port' definition 'p'. [funcArgNamesDifferent] linuxptp-4.2/port.h:56:30: note: Function 'port_close' argument 1 names different: declaration 'port' definition 'p'. linuxptp-4.2/port.c:2578:30: note: Function 'port_close' argument 1 names different: declaration 'port' definition 'p'. 2.18.0 linuxptp-4.2/port.c:2600:54: style:inconclusive: Function 'port_compute_best' argument 1 names different: declaration 'port' definition 'p'. [funcArgNamesDifferent] linuxptp-4.2/port.h:66:54: note: Function 'port_compute_best' argument 1 names different: declaration 'port' definition 'p'. linuxptp-4.2/port.c:2600:54: note: Function 'port_compute_best' argument 1 names different: declaration 'port' definition 'p'. 2.18.0 linuxptp-4.2/port.c:2602:8: style: Local variable 'dscmp' shadows outer function [shadowFunction] linuxptp-4.2/bmc.h:55:5: note: Shadowed declaration linuxptp-4.2/port.c:2602:8: note: Shadow variable 2.18.0 linuxptp-4.2/port.c:2612:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:2619:12: error: Uninitialized variables: fc.n_messages, fc.port [uninitvar] linuxptp-4.2/port.c:2614:7: note: Assuming condition is false linuxptp-4.2/port.c:2619:12: note: Uninitialized variables: fc.n_messages, fc.port 2.18.0 linuxptp-4.2/port.c:2772:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:2793:29: warning: Function 'port_link_status' argument order different: declaration 'ctx, index, linkup' definition 'ctx, linkup, ts_index' [funcArgOrderDifferent] linuxptp-4.2/port_private.h:188:29: note: Function 'port_link_status' argument order different: declaration 'ctx, index, linkup' definition 'ctx, linkup, ts_index' linuxptp-4.2/port.c:2793:29: note: Function 'port_link_status' argument order different: declaration 'ctx, index, linkup' definition 'ctx, linkup, ts_index' 2.18.0 linuxptp-4.2/port.c:2810:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:2836:40: style:inconclusive: Function 'port_event' argument 1 names different: declaration 'port' definition 'p'. [funcArgNamesDifferent] linuxptp-4.2/port.h:86:40: note: Function 'port_event' argument 1 names different: declaration 'port' definition 'p'. linuxptp-4.2/port.c:2836:40: note: Function 'port_event' argument 1 names different: declaration 'port' definition 'p'. 2.18.0 linuxptp-4.2/port.c:2850:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:290:43: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:296:43: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:3056:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:306:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable messages [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:3085:48: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:3095:40: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:3100:39: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:3107:25: style: Variable 'mgt' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/port.c:3162:25: style: Variable 'mgt' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/port.c:3176:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:318:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:3192:27: style: Parameter 'targetPortIdentity' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:3336:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:3483:41: style: Parameter 'port' can be declared as pointer to const. However it seems that 'port_state' is a callback function, if 'port' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/port_private.h:101:40: note: You might need to cast the function pointer here linuxptp-4.2/port.c:3483:41: note: Parameter 'port' can be declared as pointer to const 2.18.0 linuxptp-4.2/port.c:3488:56: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:3501:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:351:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:3537:41: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:380:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:381:27: error: Uninitialized variables: fc.messages, fc.n_messages, fc.port, fc.dataset [uninitvar] 2.18.0 linuxptp-4.2/port.c:496:20: style: Variable 'cds' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/port.c:507:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_storage [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:561:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:577:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:583:44: style: Parameter 'fup' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:583:69: style: Parameter 'sync' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:595:65: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:607:27: style: Parameter 'dad' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:63:23: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/port.c:63:43: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/port.c:646:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:703:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:74:69: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:77:23: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/port.c:802:40: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:815:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:865:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/port.c:88:45: style: Parameter 'faint' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/port.c:900:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/raw.c:133:20: style: Parameter 'addr1' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/raw.c:133:42: style: Parameter 'addr2' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/raw.c:148:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/raw.c:193:40: style: Parameter 't' can be declared as pointer to const. However it seems that 'raw_close' is a callback function, if 't' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/raw.c:477:19: note: You might need to cast the function pointer here linuxptp-4.2/raw.c:193:40: note: Parameter 't' can be declared as pointer to const 2.18.0 linuxptp-4.2/raw.c:193:59: style: Parameter 'fda' can be declared as pointer to const. However it seems that 'raw_close' is a callback function, if 'fda' is declared with const you might also need to cast function pointer(s). [constParameterCallback] linuxptp-4.2/raw.c:477:19: note: You might need to cast the function pointer here linuxptp-4.2/raw.c:193:59: note: Parameter 'fda' can be declared as pointer to const 2.18.0 linuxptp-4.2/raw.c:206:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETH_P_ALL [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/raw.c:244:53: style: Parameter 'mac' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/raw.c:246:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_PACKET [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/raw.c:252:52: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/raw.c:262:21: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/raw.c:312:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/raw.c:369:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/raw.c:371:18: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/raw.c:411:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/raw.c:453:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/raw.c:459:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/raw.c:466:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/refclock_sock.c:114:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/refclock_sock.c:139:3: error: Resource leak: s.sock_fd [resourceLeak] 2.18.0 linuxptp-4.2/refclock_sock.c:65:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/refclock_sock.c:75:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __mptr [valueFlowBailoutIncompleteVar] head linuxptp-4.2/refclock_sock.c:96:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/rtnl.c:131:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_NETLINK [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/rtnl.c:192:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/rtnl.c:206:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFLA_INFO_MAX [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/rtnl.c:209:8: style: Variable 'kind' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/rtnl.c:235:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFLA_MAX [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/rtnl.c:294:43: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] 2.18.0 linuxptp-4.2/rtnl.c:312:25: style: Parameter 'rta_data' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/rtnl.c:321:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_NETLINK [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/rtnl.c:350:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CTRL_ATTR_MAX [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/rtnl.c:383:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEAM_ATTR_OPTION_MAX [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/rtnl.c:414:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEAM_ATTR_MAX [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/rtnl.c:415:21: style: Variable 'gnlh' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/rtnl.c:476:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __s32 [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/rtnl.c:488:21: style: Variable 'gnlh' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/rtnl.c:498:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NETLINK_GENERIC [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/rtnl.c:56:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_NETLINK [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/rtnl.c:84:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NETLINK_ROUTE [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sk.c:144:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sk.c:150:44: style:inconclusive: Function 'sk_interface_index' argument 2 names different: declaration 'device' definition 'name'. [funcArgNamesDifferent] linuxptp-4.2/sk.h:77:44: note: Function 'sk_interface_index' argument 2 names different: declaration 'device' definition 'name'. linuxptp-4.2/sk.c:150:44: note: Function 'sk_interface_index' argument 2 names different: declaration 'device' definition 'name'. 2.18.0 linuxptp-4.2/sk.c:157:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFINDEX [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sk.c:169:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sk.c:219:57: style:inconclusive: Function 'sk_get_if_info' argument 2 names different: declaration 'sk_info' definition 'if_info'. [funcArgNamesDifferent] linuxptp-4.2/sk.h:100:57: note: Function 'sk_get_if_info' argument 2 names different: declaration 'sk_info' definition 'if_info'. linuxptp-4.2/sk.c:219:57: note: Function 'sk_get_if_info' argument 2 names different: declaration 'sk_info' definition 'if_info'. 2.18.0 linuxptp-4.2/sk.c:296:8: style: Variable 'err' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/sk.c:302:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sk.c:319:8: warning: %hhx in format string (no. 1) requires 'unsigned char *' but the argument type is 'char *'. [invalidScanfArgType_int] 2.18.0 linuxptp-4.2/sk.c:319:8: warning: %hhx in format string (no. 2) requires 'unsigned char *' but the argument type is 'char *'. [invalidScanfArgType_int] 2.18.0 linuxptp-4.2/sk.c:319:8: warning: %hhx in format string (no. 3) requires 'unsigned char *' but the argument type is 'char *'. [invalidScanfArgType_int] 2.18.0 linuxptp-4.2/sk.c:319:8: warning: %hhx in format string (no. 4) requires 'unsigned char *' but the argument type is 'char *'. [invalidScanfArgType_int] 2.18.0 linuxptp-4.2/sk.c:319:8: warning: %hhx in format string (no. 5) requires 'unsigned char *' but the argument type is 'char *'. [invalidScanfArgType_int] 2.18.0 linuxptp-4.2/sk.c:319:8: warning: %hhx in format string (no. 6) requires 'unsigned char *' but the argument type is 'char *'. [invalidScanfArgType_int] 2.18.0 linuxptp-4.2/sk.c:319:8: warning: %hhx in format string (no. 7) requires 'unsigned char *' but the argument type is 'char *'. [invalidScanfArgType_int] 2.18.0 linuxptp-4.2/sk.c:319:8: warning: %hhx in format string (no. 8) requires 'unsigned char *' but the argument type is 'char *'. [invalidScanfArgType_int] 2.18.0 linuxptp-4.2/sk.c:347:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sk.c:387:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sk.c:425:19: style: Variable 'sw' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/sk.c:425:24: style: Variable 'ts' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/sk.c:438:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_ERRQUEUE [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sk.c:516:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sk.c:530:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_IP [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sk.c:562:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HWTSTAMP_TX_ON [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sk.c:77:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sysoff.c:108:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTP_CLK_MAGIC [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sysoff.c:122:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTP_CLK_MAGIC [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sysoff.c:142:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOPNOTSUPP [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sysoff.c:152:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sysoff.c:33:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/sysoff.c:39:45: style: Parameter 't' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/sysoff.c:48:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTP_CLK_MAGIC [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc.c:762:3: error: There is an unknown macro here somewhere. Configuration is required. If LIST_FOREACH is a macro then please configure it. [unknownMacro] 2.18.0 linuxptp-4.2/ts2phc_generic_pps_source.c:118:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_generic_pps_source.c:24:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pps_source [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_generic_pps_source.c:44:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_generic_pps_source.c:59:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pps_source [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_nmea_pps_source.c:148:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pps_source [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_nmea_pps_source.c:159:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pps_source [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_nmea_pps_source.c:242:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_nmea_pps_source.c:52:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_nmea_pps_source.c:66:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_nmea_pps_source.c:67:27: style: Variable 'port' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/ts2phc_nmea_pps_source.c:67:40: style: Variable 'uart' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/ts2phc_nmea_pps_source.c:67:8: style: Variable 'host' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/ts2phc_phc_pps_source.c:113:32: style: Variable 's' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/ts2phc_phc_pps_source.c:114:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pps_source [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_phc_pps_source.c:120:32: style: Variable 's' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/ts2phc_phc_pps_source.c:121:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pps_source [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_phc_pps_source.c:146:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_phc_pps_source.c:45:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_phc_pps_source.c:98:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pps_source [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:120:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:161:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:231:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTP_EXTTS_REQUEST [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:239:59: style: Parameter 'priv' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:240:32: style: Parameter 'sink' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:263:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:308:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:309:31: error: Uninitialized variable: sink->name [uninitvar] 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:332:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:333:32: error: Uninitialized variable: sink->pin_desc.chan [uninitvar] 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:362:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:384:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:75:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:79:9: style: Variable 'i' is reassigned a value before the old one has been used. [redundantAssignment] linuxptp-4.2/ts2phc_pps_sink.c:77:4: note: i is assigned linuxptp-4.2/ts2phc_pps_sink.c:79:9: note: i is overwritten 2.18.0 linuxptp-4.2/ts2phc_pps_sink.c:80:27: style: Local variable 'sink' shadows outer variable [shadowVariable] linuxptp-4.2/ts2phc_pps_sink.c:53:26: note: Shadowed declaration linuxptp-4.2/ts2phc_pps_sink.c:80:27: note: Shadow variable 2.18.0 linuxptp-4.2/udp.c:156:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] head linuxptp-4.2/udp.c:166:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/udp.c:270:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/udp.c:276:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/udp.c:288:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/udp6.c:166:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] head linuxptp-4.2/udp6.c:176:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/udp6.c:238:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] head linuxptp-4.2/udp6.c:258:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/udp6.c:285:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/udp6.c:291:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/udp6.c:303:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/uds.c:106:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] head linuxptp-4.2/uds.c:111:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/uds.c:123:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] head linuxptp-4.2/uds.c:130:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/uds.c:137:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/uds.c:58:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] head linuxptp-4.2/uds.c:67:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/unicast_service.c:126:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/unicast_service.c:163:46: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/unicast_service.c:163:66: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/unicast_service.c:195:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/unicast_service.c:228:41: style: Parameter 'req' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/unicast_service.c:234:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/unicast_service.c:259:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/unicast_service.c:293:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/unicast_service.c:334:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/unicast_service.c:338:13: error: Uninitialized variable: itmp->log_period [uninitvar] 2.18.0 linuxptp-4.2/unicast_service.c:411:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/unicast_service.c:472:34: style: Variable 'cancel' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/unicast_service.c:497:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/unicast_service.c:524:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/unicast_service.c:66:37: style: Parameter 'req' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/util.c:118:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:124:27: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] 2.18.0 linuxptp-4.2/util.c:146:17: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/util.c:167:17: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/util.c:181:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:225:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:233:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:296:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:352:13: error: Uninitialized variable: cid [uninitvar] 2.18.0 linuxptp-4.2/util.c:368:13: error: Uninitialized variable: pid.clockIdentity [uninitvar] 2.18.0 linuxptp-4.2/util.c:509:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:524:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:539:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:554:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:573:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:592:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:612:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:642:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:655:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:668:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:681:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:695:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:748:20: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] 2.18.0 linuxptp-4.2/util.c:786:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] 2.18.0 linuxptp-4.2/util.c:94:15: style: Variable 'bufb' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/util.c:94:8: style: Variable 'bufa' can be declared as pointer to const [constVariablePointer] 2.18.0 linuxptp-4.2/util.h:157:16: error: Using argument a that points at uninitialized variable s->targetPortIdentity [ctuuninitvar] linuxptp-4.2/clock.c:282:13: note: Calling function pid_eq, 1st argument is uninitialized linuxptp-4.2/util.h:157:16: note: Using argument a head linuxptp-4.2/util.h:157:16: error: Using argument a that points at uninitialized variable ucma->portIdentity [ctuuninitvar] linuxptp-4.2/unicast_client.c:545:13: note: Calling function pid_eq, 1st argument is uninitialized linuxptp-4.2/util.h:157:16: note: Using argument a DONE