2026-05-01 14:54 ftp://ftp.de.debian.org/debian/pool/main/d/ddcci-driver-linux/ddcci-driver-linux_0.4.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 10 10 elapsed-time: 0.2 0.1 head-timing-info: old-timing-info: head results: ddcci-driver-linux-v0.4.5/ddcci-backlight/ddcci-backlight.c:72:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOTSUPP [valueFlowBailoutIncompleteVar] ddcci-driver-linux-v0.4.5/ddcci-backlight/ddcci-backlight.c:105:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FB_BLANK_UNBLANK [valueFlowBailoutIncompleteVar] ddcci-driver-linux-v0.4.5/ddcci-backlight/ddcci-backlight.c:222:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] ddcci-driver-linux-v0.4.5/ddcci-backlight/ddcci-backlight.c:249:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] ddcci-driver-linux-v0.4.5/ddcci-backlight/ddcci-backlight.c:308:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFP_KERNEL [valueFlowBailoutIncompleteVar] ddcci-driver-linux-v0.4.5/ddcci-backlight/ddcci-backlight.c:163:7: style: Condition '!ptr' is always false [knownConditionTrueFalse] ddcci-driver-linux-v0.4.5/ddcci-backlight/ddcci-backlight.c:345:22: style: Variable 'drv_data->used_vcp' is reassigned a value before the old one has been used. [redundantAssignment] ddcci-driver-linux-v0.4.5/ddcci-backlight/ddcci-backlight.c:343:23: note: drv_data->used_vcp is assigned ddcci-driver-linux-v0.4.5/ddcci-backlight/ddcci-backlight.c:345:22: note: drv_data->used_vcp is overwritten ddcci-driver-linux-v0.4.5/ddcci-backlight/ddcci-backlight.c:92:24: style: Parameter 'info' can be declared as pointer to const. However it seems that 'ddcci_backlight_check_fb' is a callback function, if 'info' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ddcci-driver-linux-v0.4.5/ddcci-backlight/ddcci-backlight.c:138:14: note: You might need to cast the function pointer here ddcci-driver-linux-v0.4.5/ddcci-backlight/ddcci-backlight.c:92:24: note: Parameter 'info' can be declared as pointer to const ddcci-driver-linux-v0.4.5/ddcci-backlight/ddcci-backlight.c:94:33: style: Variable 'drv_data' can be declared as pointer to const [constVariablePointer] ddcci-driver-linux-v0.4.5/ddcci/ddcci.c:1284:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [syntaxError] diff: DONE