2025-08-29 17:10 ftp://ftp.de.debian.org/debian/pool/main/x/xtrx-dkms/xtrx-dkms_0.0.1+git20190320.5ae3a3e.orig.tar.xz 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-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 478055e (2025-08-29 18:53:24 +0200) count: 2 57 elapsed-time: 0.1 0.3 head-timing-info: old-timing-info: head results: xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1239:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1239:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] diff: 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1006:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_NOTICE [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1012:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_NOTICE [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1020:37: style: Parameter 'filp' can be declared as pointer to const. However it seems that 'xtrxfd_mmap' is a callback function, if 'filp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1124:13: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1020:37: note: Parameter 'filp' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1031:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGE_SHIFT [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1133:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable THIS_MODULE [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1147:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_INFO [valueFlowBailoutIncompleteVar] head xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1239:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] head xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1239:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1414:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_INFO [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1488:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_NOTICE [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:185:42: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:190:49: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:219:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_NOTICE [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:237:58: style: Parameter 'port' can be declared as pointer to const. However it seems that 'xtrx_uart_tx_empty' is a callback function, if 'port' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:508:14: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:237:58: note: Parameter 'port' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:241:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCSER_TEMT [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:260:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCM_RTS [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:271:59: style: Parameter 'port' can be declared as pointer to const. However it seems that 'xtrx_uart_get_mctrl' is a callback function, if 'port' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:509:15: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:271:59: note: Parameter 'port' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:273:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCM_CTS [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:276:49: style: Parameter 'port' can be declared as pointer to const. However it seems that 'xtrx_uart_stop_tx' is a callback function, if 'port' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:512:13: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:276:49: note: Parameter 'port' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:281:50: style: Parameter 'port' can be declared as pointer to const. However it seems that 'xtrx_uart_start_tx' is a callback function, if 'port' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:511:14: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:281:50: note: Parameter 'port' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:287:49: style: Parameter 'port' can be declared as pointer to const. However it seems that 'xtrx_uart_stop_rx' is a callback function, if 'port' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:513:13: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:287:49: note: Parameter 'port' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:292:51: style: Parameter 'port' can be declared as pointer to const. However it seems that 'xtrx_uart_enable_ms' is a callback function, if 'port' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:514:15: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:292:51: note: Parameter 'port' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:296:51: style: Parameter 'port' can be declared as pointer to const. However it seems that 'xtrx_uart_break_ctl' is a callback function, if 'port' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:515:15: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:296:51: note: Parameter 'port' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:310:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WR_SIM_CTRL_ENABLE [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:349:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GP_PORT_WR_SIM_CTRL [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:374:53: style: Parameter 'port' can be declared as pointer to const. However it seems that 'xtrx_uart_type' is a callback function, if 'port' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:519:11: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:374:53: note: Parameter 'port' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:381:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_NOTICE [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:387:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_NOTICE [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:392:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_NOTICE [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:395:29: style: Condition 'xtrx_uart_request_port(port)' is always false [knownConditionTrueFalse] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:395:29: note: Calling function 'xtrx_uart_request_port' returns 0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:395:29: note: Condition 'xtrx_uart_request_port(port)' is always false 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:401:52: style: Parameter 'port' can be declared as pointer to const. However it seems that 'xtrx_uart_verify_port' is a callback function, if 'port' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:523:17: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:401:52: note: Parameter 'port' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:402:28: style: Parameter 'serinfo' can be declared as pointer to const. However it seems that 'xtrx_uart_verify_port' is a callback function, if 'serinfo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:523:17: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:402:28: note: Parameter 'serinfo' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:405:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:421:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GP_PORT_RD_SIM_RX [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:455:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GP_PORT_WR_SIM_TX [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:548:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GP_PORT_RD_UART_RX [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:593:48: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:602:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_NOTICE [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:614:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UL_RXDMA_ADDR [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:626:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_INFO [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:694:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INT_RFIC0_SPI [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:740:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IRQ_HANDLED [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:748:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IRQ_HANDLED [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:756:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IRQ_HANDLED [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:764:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GP_PORT_RD_INTERRUPTS [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:774:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GP_PORT_RD_INTERRUPTS [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:796:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IRQ_HANDLED [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:825:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EBUSY [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:828:61: style: Parameter 'filp' can be declared as pointer to const. However it seems that 'xtrxfd_release' is a callback function, if 'filp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1125:13: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:828:61: note: Parameter 'filp' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:834:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_INFO [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:846:41: style: Parameter 'filp' can be declared as pointer to const. However it seems that 'xtrxfd_read' is a callback function, if 'filp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1119:13: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:846:41: note: Parameter 'filp' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:847:13: style: Parameter 'f_pos' can be declared as pointer to const. However it seems that 'xtrxfd_read' is a callback function, if 'f_pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1119:13: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:847:13: note: Parameter 'f_pos' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:851:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HZ [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:927:42: style: Parameter 'filp' can be declared as pointer to const. However it seems that 'xtrxfd_write' is a callback function, if 'filp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1120:13: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:927:42: note: Parameter 'filp' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:928:17: style: Parameter 'f_pos' can be declared as pointer to const. However it seems that 'xtrxfd_write' is a callback function, if 'f_pos' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1120:13: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:928:17: note: Parameter 'f_pos' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:930:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:943:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:956:39: style: Parameter 'filp' can be declared as pointer to const. However it seems that 'xtrxfd_ioctl' is a callback function, if 'filp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:1121:21: note: You might need to cast the function pointer here xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:956:39: note: Parameter 'filp' can be declared as pointer to const 2.18.0 xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c:962:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_WARNING [valueFlowBailoutIncompleteVar] DONE