2025-09-03 13:56 ftp://ftp.de.debian.org/debian/pool/main/s/smifb2/smifb2_2.4.1.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 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: e6e045f (2025-09-02 21:05:14 +0200) count: 25 241 elapsed-time: 0.4 1.5 head-timing-info: old-timing-info: head results: smifb2/smifb2/ddk750/ddk750_chip.c:45:15: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk750/ddk750_cursor.c:19:22: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk750/ddk750_clock.c:152:9: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/smi_drv.h:16:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] smifb2/smifb2/smi_drv.h:16:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] smifb2/smifb2/ddk750/ddk750_display.c:28:13: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk750/ddk750_power.c:27:21: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk750/ddk750_mode.c:571:13: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk768/ddk768_chip.c:19:13: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk768/ddk768_2d.c:46:5: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk768/ddk768_cursor.c:19:5: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk768/ddk768_clock.c:147:48: style: Parameter 'pPLL' can be declared as pointer to const [constParameterPointer] smifb2/smifb2/ddk750/ddk750_2d.c:40:5: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk768/ddk768_display.c:57:25: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk768/ddk768_iis.c:55:13: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk768/ddk768_hdmi.c:125:9: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk768/ddk768_power.c:15:20: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk768/ddk768_pwm.c:25:21: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk768/ddk768_mode.c:753:2: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk768/l3.c:45:49: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] smifb2/smifb2/ddk768/ddk768_timer.c:51:11: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk768/ddk768_video.c:82:17: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] smifb2/smifb2/ddk768/uda1345.c:90:9: style: Local variable 'cache' shadows outer variable [shadowVariable] smifb2/smifb2/ddk768/uda1345.c:16:11: note: Shadowed declaration smifb2/smifb2/ddk768/uda1345.c:90:9: note: Shadow variable smifb2/smifb2/ddk768/uda1345.c:104:9: style: Local variable 'cache' shadows outer variable [shadowVariable] smifb2/smifb2/ddk768/uda1345.c:16:11: note: Shadowed declaration smifb2/smifb2/ddk768/uda1345.c:104:9: note: Shadow variable smifb2/smifb2/ddk768/uda1345.c:90:9: style: Variable 'cache' can be declared as pointer to const [constVariablePointer] diff: 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:1195:16: style: Comparing expression of type 'unsigned char' against value 4294967295. Condition is always false. [compareValueOutOfTypeRangeError] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:1199:12: style: Comparing expression of type 'unsigned char' against value 4294967295. Condition is always true. [compareValueOutOfTypeRangeError] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:1208:24: style: Comparing expression of type 'unsigned char' against value 4294967295. Condition is always false. [compareValueOutOfTypeRangeError] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:1213:20: style: Comparing expression of type 'unsigned char' against value 4294967295. Condition is always true. [compareValueOutOfTypeRangeError] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:1216:16: style: Comparing expression of type 'unsigned char' against value 4294967295. Condition is always true. [compareValueOutOfTypeRangeError] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:1308:20: style: Parameter 'pEDIDBuffer' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:1477:27: style: Variable 'pEDIDStructure' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:149:20: style: Parameter 'pEDIDBuffer' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:1565:11: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:1652:29: style: Condition 'timingIndex<8' is always true [knownConditionTrueFalse] smifb2/smifb2/ddk750/ddk750_edid.c:1643:34: note: Assuming that condition '*pStdTimingIndex>7' is not redundant smifb2/smifb2/ddk750/ddk750_edid.c:1647:27: note: Assignment 'timingIndex=*pStdTimingIndex', assigned value is less than 8 smifb2/smifb2/ddk750/ddk750_edid.c:1652:29: note: Condition 'timingIndex<8' is always true 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:1874:28: style: Variable 'bufferSize' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:1939:28: style: Variable 'bufferSize' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:2152:28: style: Variable 'bufferSize' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:236:27: style: Variable 'pEDIDStructure' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:503:27: style: Variable 'pEDIDStructure' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:777:27: style: Variable 'pEDIDStructure' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk750/ddk750_edid.c:90:13: style: Parameter 'pVDIF' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk750/ddk750_hwi2c.c:109:13: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] 2.18.0 smifb2/smifb2/ddk750/ddk750_swi2c.c:571:22: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 551. [shiftTooManyBitsSigned] smifb2/smifb2/ddk750/ddk750_swi2c.c:551:21: note: Assuming that condition 'i2cClkGPIO>31' is not redundant smifb2/smifb2/ddk750/ddk750_swi2c.c:571:22: note: Shift 2.18.0 smifb2/smifb2/ddk750/ddk750_swi2c.c:573:22: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 551. [shiftTooManyBitsSigned] smifb2/smifb2/ddk750/ddk750_swi2c.c:551:43: note: Assuming that condition 'i2cDataGPIO>31' is not redundant smifb2/smifb2/ddk750/ddk750_swi2c.c:573:22: note: Shift 2.18.0 smifb2/smifb2/ddk750/ddk750_swi2c.c:702:27: style: Variable 'connector' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk750/ddk750_swi2c.c:709:27: style: Variable 'connector' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk750/ddk750_swi2c.c:717:27: style: Variable 'connector' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk750/ddk750_swi2c.c:724:27: style: Variable 'connector' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk750/ddk750_swi2c.c:731:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable THIS_MODULE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/ddk750_swi2c.c:758:27: style: Variable 'connector' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk750/ddk750_swi2c.c:762:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DRM_MODE_CONNECTOR_DVII [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/ddk750_swi2c.c:806:27: style: Parameter 'connector' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk750/ddk750_swi2c.c:81:14: style: Variable 'Temp' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/ddk750/ddk750_swi2c.c:82:14: style: Variable 'Temp' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1021:15: style: Variable 'Segment' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1023:14: style: Variable 'Offset' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1025:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1101:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1198:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1264:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1281:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1291:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1334:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1462:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1613:7: style: struct member 'ModeIdType::Mode_C1' is never used. [unusedStructMember] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1614:7: style: struct member 'ModeIdType::Mode_C2' is never used. [unusedStructMember] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1615:7: style: struct member 'ModeIdType::SubMode' is never used. [unusedStructMember] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1644:7: style: struct member '_656Type::IntAdjMode' is never used. [unusedStructMember] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1647:7: style: struct member '_656Type::Top' is never used. [unusedStructMember] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1648:7: style: struct member '_656Type::Dly' is never used. [unusedStructMember] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1656:7: style: struct member 'Vspace_Vblank::VactSpace1' is never used. [unusedStructMember] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1657:7: style: struct member 'Vspace_Vblank::VactSpace2' is never used. [unusedStructMember] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1658:7: style: struct member 'Vspace_Vblank::Vblank1' is never used. [unusedStructMember] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1659:7: style: struct member 'Vspace_Vblank::Vblank2' is never used. [unusedStructMember] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1660:7: style: struct member 'Vspace_Vblank::Vblank3' is never used. [unusedStructMember] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1722:27: style: struct member 'VModeInfoType::ModeId' is never used. [unusedStructMember] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:1730:25: style: struct member 'VModeInfoType::VsVb' is never used. [unusedStructMember] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:2161:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:2451:14: style: Variable 'EMB_Status' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:2458:13: style: Variable 'DE_Status' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:245:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:2535:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:2636:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:263:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:2691:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:2731:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:275:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:2772:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:291:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:3073:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:308:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:3104:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:3132:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:3152:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:3169:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:3192:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:3318:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:3487:70: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:358:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:394:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:408:30: style: Parameter 'Block' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:413:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:436:29: style: Parameter 'Block' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:445:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:61:40: style: Parameter 'client' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:61:82: style: Parameter 'Data' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:71:59: style: Parameter 'client' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:752:5: style: Variable 'k' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:805:38: style: Parameter 'Data' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:81:9: style: Condition 'rc<0' is always false [knownConditionTrueFalse] smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:80:19: note: Calling function 'I2CReadBlock' returns 0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:80:19: note: Assignment 'rc=I2CReadBlock(client,Offset,Length,Buffer)', assigned value is 0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:81:9: note: Condition 'rc<0' is always false 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:82:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:917:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk750/siHdmiTx_902x_TPI.c:971:37: style: Parameter 'Data' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk768/ddk768_edid.c:122:20: style: Parameter 'pEDIDBuffer' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk768/ddk768_edid.c:1387:27: style: Variable 'pEDIDStructure' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk768/ddk768_edid.c:1475:11: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] 2.18.0 smifb2/smifb2/ddk768/ddk768_edid.c:154:20: style: Parameter 'pEDIDBuffer' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk768/ddk768_edid.c:1563:29: style: Condition 'timingIndex<8' is always true [knownConditionTrueFalse] smifb2/smifb2/ddk768/ddk768_edid.c:1554:34: note: Assuming that condition '*pStdTimingIndex>7' is not redundant smifb2/smifb2/ddk768/ddk768_edid.c:1558:27: note: Assignment 'timingIndex=*pStdTimingIndex', assigned value is less than 8 smifb2/smifb2/ddk768/ddk768_edid.c:1563:29: note: Condition 'timingIndex<8' is always true 2.18.0 smifb2/smifb2/ddk768/ddk768_edid.c:1785:28: style: Variable 'bufferSize' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/ddk768/ddk768_edid.c:1850:28: style: Variable 'bufferSize' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/ddk768/ddk768_edid.c:2063:28: style: Variable 'bufferSize' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/ddk768/ddk768_edid.c:241:27: style: Variable 'pEDIDStructure' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk768/ddk768_edid.c:509:27: style: Variable 'pEDIDStructure' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk768/ddk768_edid.c:64:13: style: Parameter 'pVDIF' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk768/ddk768_edid.c:783:27: style: Variable 'pEDIDStructure' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk768/ddk768_ep952.c:125:15: style: Condition 'result==0' is always true [knownConditionTrueFalse] smifb2/smifb2/ddk768/ddk768_ep952.c:91:28: note: Assignment 'status=0', assigned value is 0 smifb2/smifb2/ddk768/ddk768_ep952.c:124:22: note: Calling function 'IIC_Read' returns 0 smifb2/smifb2/ddk768/ddk768_ep952.c:124:22: note: Assignment 'result=IIC_Read(IIC_EP952_Addr,ByteAddr,Temp_Data,1)', assigned value is 0 smifb2/smifb2/ddk768/ddk768_ep952.c:125:15: note: Condition 'result==0' is always true 2.18.0 smifb2/smifb2/ddk768/ddk768_ep952.c:143:15: style: Condition 'result==0' is always true [knownConditionTrueFalse] smifb2/smifb2/ddk768/ddk768_ep952.c:91:28: note: Assignment 'status=0', assigned value is 0 smifb2/smifb2/ddk768/ddk768_ep952.c:142:22: note: Calling function 'IIC_Read' returns 0 smifb2/smifb2/ddk768/ddk768_ep952.c:142:22: note: Assignment 'result=IIC_Read(IIC_EP952_Addr,ByteAddr,Temp_Data,1)', assigned value is 0 smifb2/smifb2/ddk768/ddk768_ep952.c:143:15: note: Condition 'result==0' is always true 2.18.0 smifb2/smifb2/ddk768/ddk768_ep952.c:603:43: warning: Either the condition 'Params->VideoSettingIndex<76' is redundant or the array 'EP952_VDO_Settings[35]' is accessed at index 75, which is out of bounds. [arrayIndexOutOfBoundsCond] smifb2/smifb2/ddk768/ddk768_ep952.c:602:34: note: Assuming that condition 'Params->VideoSettingIndex<76' is not redundant smifb2/smifb2/ddk768/ddk768_ep952.c:603:43: note: Array index out of bounds 2.18.0 smifb2/smifb2/ddk768/ddk768_ep952.c:60:94: style: Parameter 'Data' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/ddk768/ddk768_ep952.c:902:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_INFO [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk768/ddk768_hwi2c.c:116:17: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] 2.18.0 smifb2/smifb2/ddk768/ddk768_swi2c.c:418:5: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 400. [shiftTooManyBitsSigned] smifb2/smifb2/ddk768/ddk768_swi2c.c:400:21: note: Assuming that condition 'i2cClkGPIO>31' is not redundant smifb2/smifb2/ddk768/ddk768_swi2c.c:418:5: note: Shift 2.18.0 smifb2/smifb2/ddk768/ddk768_swi2c.c:420:5: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 400. [shiftTooManyBitsSigned] smifb2/smifb2/ddk768/ddk768_swi2c.c:400:43: note: Assuming that condition 'i2cDataGPIO>31' is not redundant smifb2/smifb2/ddk768/ddk768_swi2c.c:420:5: note: Shift 2.18.0 smifb2/smifb2/ddk768/ddk768_swi2c.c:463:27: style: Variable 'connector' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk768/ddk768_swi2c.c:470:27: style: Variable 'connector' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk768/ddk768_swi2c.c:478:27: style: Variable 'connector' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk768/ddk768_swi2c.c:485:27: style: Variable 'connector' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk768/ddk768_swi2c.c:492:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable THIS_MODULE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk768/ddk768_swi2c.c:520:27: style: Variable 'connector' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/ddk768/ddk768_swi2c.c:524:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DRM_MODE_CONNECTOR_DVII [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/ddk768/ddk768_swi2c.c:574:27: style: Parameter 'connector' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/hw750.c:192:20: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] 2.18.0 smifb2/smifb2/hw768.c:107:19: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] 2.18.0 smifb2/smifb2/smi_debugfs.c:100:21: style: Variable 'sdev' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_debugfs.c:104:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/smi_debugfs.c:112:14: portability: 'base' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] 2.18.0 smifb2/smifb2/smi_debugfs.c:139:21: style: Variable 'sdev' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_debugfs.c:151:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUGO [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_debugfs.c:87:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/smi_debugfs.c:92:39: style: Parameter 'lp' can be declared as pointer to const. However it seems that 'reg_write' is a callback function, if 'lp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] smifb2/smifb2/smi_debugfs.c:128:11: note: You might need to cast the function pointer here smifb2/smifb2/smi_debugfs.c:92:39: note: Parameter 'lp' can be declared as pointer to const 2.18.0 smifb2/smifb2/smi_debugfs.c:99:21: style: Variable 'dev' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_drv.c:150:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_drv.c:254:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFP_KERNEL [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_drv.c:284:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_drv.c:307:44: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/smi_drv.c:311:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_drv.c:348:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_D0 [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_drv.c:354:6: style: Condition 'ret' is always false [knownConditionTrueFalse] smifb2/smifb2/smi_drv.c:353:20: note: Calling function 'smi_drm_thaw' returns 0 smifb2/smifb2/smi_drv.c:353:20: note: Assignment 'ret=smi_drm_thaw(dev)', assigned value is 0 smifb2/smifb2/smi_drv.c:354:6: note: Condition 'ret' is always false 2.18.0 smifb2/smifb2/smi_drv.c:371:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI_D3hot [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_drv.c:460:21: style: Variable 'sdev' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_drv.c:489:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IRQ_HANDLED [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_drv.c:628:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENODEV [valueFlowBailoutIncompleteVar] head smifb2/smifb2/smi_drv.h:16:0: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] head smifb2/smifb2/smi_drv.h:16:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 smifb2/smifb2/smi_main.c:130:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_main.c:230:19: portability: 'dst' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] 2.18.0 smifb2/smifb2/smi_main.c:230:33: portability: 'src' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] 2.18.0 smifb2/smifb2/smi_main.c:277:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMA_FROM_DEVICE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_main.c:319:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFP_KERNEL [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_main.c:337:4: style: Variable 'r' is reassigned a value before the old one has been used. [redundantAssignment] smifb2/smifb2/smi_main.c:335:4: note: r is assigned smifb2/smifb2/smi_main.c:337:4: note: r is overwritten 2.18.0 smifb2/smifb2/smi_main.c:433:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable irq [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_main.c:589:46: style: Parameter 'cdev' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/smi_main.c:617:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_main.c:658:12: style: Variable 'dma_bits' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/smi_main.c:659:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_main.c:87:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DRM_MODE_FB_DIRTY_ANNOTATE_COPY [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_mode.c:1116:21: style: Variable 'sdev' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_mode.c:1118:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFP_KERNEL [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_mode.c:125:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_mode.c:341:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_mode.c:357:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_mode.c:368:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_mode.c:431:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFP_KERNEL [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_mode.c:485:54: style: Parameter 'encoder' can be declared as pointer to const. However it seems that 'smi_encoder_mode_set' is a callback function, if 'encoder' is declared with const you might also need to cast function pointer(s). [constParameterCallback] smifb2/smifb2/smi_mode.c:597:14: note: You might need to cast the function pointer here smifb2/smifb2/smi_mode.c:485:54: note: Parameter 'encoder' can be declared as pointer to const 2.18.0 smifb2/smifb2/smi_mode.c:486:30: style: Parameter 'mode' can be declared as pointer to const. However it seems that 'smi_encoder_mode_set' is a callback function, if 'mode' is declared with const you might also need to cast function pointer(s). [constParameterCallback] smifb2/smifb2/smi_mode.c:597:14: note: You might need to cast the function pointer here smifb2/smifb2/smi_mode.c:486:30: note: Parameter 'mode' can be declared as pointer to const 2.18.0 smifb2/smifb2/smi_mode.c:487:30: style: Parameter 'adjusted_mode' can be declared as pointer to const. However it seems that 'smi_encoder_mode_set' is a callback function, if 'adjusted_mode' is declared with const you might also need to cast function pointer(s). [constParameterCallback] smifb2/smifb2/smi_mode.c:597:14: note: You might need to cast the function pointer here smifb2/smifb2/smi_mode.c:487:30: note: Parameter 'adjusted_mode' can be declared as pointer to const 2.18.0 smifb2/smifb2/smi_mode.c:496:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_mode.c:50:59: style: Parameter 'r' can be declared as pointer to const. However it seems that 'smi_crtc_gamma_set' is a callback function, if 'r' is declared with const you might also need to cast function pointer(s). [constParameterCallback] smifb2/smifb2/smi_mode.c:408:15: note: You might need to cast the function pointer here smifb2/smifb2/smi_mode.c:50:59: note: Parameter 'r' can be declared as pointer to const 2.18.0 smifb2/smifb2/smi_mode.c:50:67: style: Parameter 'g' can be declared as pointer to const. However it seems that 'smi_crtc_gamma_set' is a callback function, if 'g' is declared with const you might also need to cast function pointer(s). [constParameterCallback] smifb2/smifb2/smi_mode.c:408:15: note: You might need to cast the function pointer here smifb2/smifb2/smi_mode.c:50:67: note: Parameter 'g' can be declared as pointer to const 2.18.0 smifb2/smifb2/smi_mode.c:51:10: style: Parameter 'b' can be declared as pointer to const. However it seems that 'smi_crtc_gamma_set' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] smifb2/smifb2/smi_mode.c:408:15: note: You might need to cast the function pointer here smifb2/smifb2/smi_mode.c:51:10: note: Parameter 'b' can be declared as pointer to const 2.18.0 smifb2/smifb2/smi_mode.c:578:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DRM_MODE_DPMS_OFF [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_mode.c:57:21: style: Variable 'sdev' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_mode.c:584:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DRM_MODE_DPMS_ON [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_mode.c:613:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFP_KERNEL [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_mode.c:654:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_mode.c:69:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable crtc [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_mode.c:824:21: style: Variable 'sdev' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_mode.c:830:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_NOCLOCK [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_mode.c:877:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/smi_mode.c:885:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DRM_MODE_CONNECTOR_DVII [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_plane.c:106:21: style: Variable 'sdev' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_plane.c:120:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable crtc [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_plane.c:239:21: style: Variable 'sdev' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_plane.c:241:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable old_state [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_plane.c:298:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_plane.c:349:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_plane.c:393:21: style: Variable 'sdev' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_plane.c:394:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_plane.c:432:4: style: Variable 'w' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/smi_plane.c:433:4: style: Variable 'h' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/smi_plane.c:434:8: style: Variable 'dst_x' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/smi_plane.c:435:8: style: Variable 'dst_y' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/smi_plane.c:470:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable crtc [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_plane.c:542:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_plane.c:54:19: style: Variable 'crtc' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_plane.c:54:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable crtc [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_plane.c:566:16: style: Variable 'col' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_plane.c:83:26: style: Variable 'new_state' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_plane.c:86:19: style: Variable 'crtc' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_prime.c:109:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAGE_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_prime.c:81:21: style: Variable 'UNUSED_sdev' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_snd.c:154:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SNDRV_CTL_ELEM_TYPE_INTEGER [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_snd.c:161:66: style: Parameter 'kcontrol' can be declared as pointer to const. However it seems that 'snd_falconi2s_get_hw_play_volume' is a callback function, if 'kcontrol' is declared with const you might also need to cast function pointer(s). [constParameterCallback] smifb2/smifb2/smi_snd.c:239:10: note: You might need to cast the function pointer here smifb2/smifb2/smi_snd.c:161:66: note: Parameter 'kcontrol' can be declared as pointer to const 2.18.0 smifb2/smifb2/smi_snd.c:164:20: style: Variable 'chip' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_snd.c:171:66: style: Parameter 'kcontrol' can be declared as pointer to const. However it seems that 'snd_falconi2s_put_hw_play_volume' is a callback function, if 'kcontrol' is declared with const you might also need to cast function pointer(s). [constParameterCallback] smifb2/smifb2/smi_snd.c:240:10: note: You might need to cast the function pointer here smifb2/smifb2/smi_snd.c:171:66: note: Parameter 'kcontrol' can be declared as pointer to const 2.18.0 smifb2/smifb2/smi_snd.c:197:69: style: Parameter 'kcontrol' can be declared as pointer to const. However it seems that 'snd_falconi2s_get_hw_capture_volume' is a callback function, if 'kcontrol' is declared with const you might also need to cast function pointer(s). [constParameterCallback] smifb2/smifb2/smi_snd.c:248:10: note: You might need to cast the function pointer here smifb2/smifb2/smi_snd.c:197:69: note: Parameter 'kcontrol' can be declared as pointer to const 2.18.0 smifb2/smifb2/smi_snd.c:200:20: style: Variable 'chip' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_snd.c:207:69: style: Parameter 'kcontrol' can be declared as pointer to const. However it seems that 'snd_falconi2s_put_hw_capture_volume' is a callback function, if 'kcontrol' is declared with const you might also need to cast function pointer(s). [constParameterCallback] smifb2/smifb2/smi_snd.c:249:10: note: You might need to cast the function pointer here smifb2/smifb2/smi_snd.c:207:69: note: Parameter 'kcontrol' can be declared as pointer to const 2.18.0 smifb2/smifb2/smi_snd.c:373:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SNDRV_PCM_STREAM_PLAYBACK [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_snd.c:393:20: style: Variable 'chip' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_snd.c:407:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_snd.c:418:22: style: Variable 'chip' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_snd.c:433:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_snd.c:443:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SNDRV_PCM_STREAM_PLAYBACK [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_snd.c:458:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SNDRV_PCM_STREAM_PLAYBACK [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_snd.c:493:49: style: Parameter 'chip' can be declared as pointer to const [constParameterPointer] 2.18.0 smifb2/smifb2/smi_snd.c:513:26: style: Variable 'play_runtime' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_snd.c:519:68: portability: '(void*)((unsigned long)chip->pvReg+0x8000)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] 2.18.0 smifb2/smifb2/smi_snd.c:537:26: style: Variable 'capture_runtime' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_snd.c:568:20: style: Variable 'sramTxSection' is assigned a value that is never used. [unreadVariable] 2.18.0 smifb2/smifb2/smi_snd.c:589:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IRQ_HANDLED [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_snd.c:605:21: style: Variable 'smi_device' can be declared as pointer to const [constVariablePointer] 2.18.0 smifb2/smifb2/smi_snd.c:616:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFP_KERNEL [valueFlowBailoutIncompleteVar] 2.18.0 smifb2/smifb2/smi_snd.c:731:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SNDRV_PCM_STREAM_PLAYBACK [valueFlowBailoutIncompleteVar] DONE