2024-03-28 17:56 ftp://ftp.de.debian.org/debian/pool/main/n/ndctl/ndctl_77.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: e2720e1 (2024-03-28 18:41:33 +0100) count: 206 176 elapsed-time: 2.3 3.2 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 0.96923s (avg. 0.96923s - 1 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.38453s (avg. 0.128177s - 3 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.261164s (avg. 0.0870547s - 3 result(s)) valueFlowSubFunction(tokenlist, symboldatabase, errorLogger, settings): 0.120159s (avg. 0.040053s - 3 result(s)) valueFlowUninit(tokenlist, errorLogger, settings): 0.099731s (avg. 0.0332437s - 3 result(s)) Overall time: 1.14478s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 1.8528s (avg. 1.8528s - 1 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.722977s (avg. 0.240992s - 3 result(s)) valueFlowSubFunction(tokenlist, symboldatabase, errorLogger, *settings): 0.641536s (avg. 0.213845s - 3 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.285963s (avg. 0.095321s - 3 result(s)) valueFlowUninit(tokenlist, settings): 0.09967s (avg. 0.0332233s - 3 result(s)) Overall time: 2.04817s head results: ndctl-77/cxl/cxl.c:48:2: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] ndctl-77/cxl/cxl.c:28:69: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ndctl-77/ccan/list/list.c:20:59: style:inconclusive: Function 'list_check_node' argument 1 names different: declaration 'n' definition 'node'. [funcArgNamesDifferent] ndctl-77/ccan/list/list.h:90:59: note: Function 'list_check_node' argument 1 names different: declaration 'n' definition 'node'. ndctl-77/ccan/list/list.c:20:59: note: Function 'list_check_node' argument 1 names different: declaration 'n' definition 'node'. ndctl-77/ccan/list/list.h:370:52: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] ndctl-77/cxl/bus.c:136:12: style: Condition 'rc' is always true [knownConditionTrueFalse] ndctl-77/cxl/filter.h:68:75: style: Parameter 'param' can be declared as pointer to const [constParameterPointer] ndctl-77/cxl/event_trace.c:155:10: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] ndctl-77/cxl/lib/libcxl.c:109:2: error: There is an unknown macro here somewhere. Configuration is required. If list_for_each_safe is a macro then please configure it. [unknownMacro] ndctl-77/cxl/memdev.c:268:4: error: syntax error [syntaxError] ndctl-77/cxl/port.c:115:2: error: There is an unknown macro here somewhere. Configuration is required. If cxl_bus_foreach is a macro then please configure it. [unknownMacro] ndctl-77/daxctl/daxctl.c:47:2: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] ndctl-77/daxctl/daxctl.c:28:72: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ndctl-77/cxl/region.c:420:30: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] ndctl-77/cxl/region.c:801:56: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] ndctl-77/cxl/region.c:27:14: style: struct member 'region_params::region' is never used. [unusedStructMember] ndctl-77/cxl/filter.c:24:33: warning: Function 'cxl_filter_has' argument order different: declaration 'needle, __filter' definition '__filter, needle' [funcArgOrderDifferent] ndctl-77/cxl/filter.h:89:33: note: Function 'cxl_filter_has' argument order different: declaration 'needle, __filter' definition '__filter, needle' ndctl-77/cxl/filter.c:24:33: note: Function 'cxl_filter_has' argument order different: declaration 'needle, __filter' definition '__filter, needle' ndctl-77/cxl/filter.c:1020:35: style:inconclusive: Function 'cxl_filter_walk' argument 2 names different: declaration 'param' definition 'p'. [funcArgNamesDifferent] ndctl-77/cxl/filter.h:66:35: note: Function 'cxl_filter_walk' argument 2 names different: declaration 'param' definition 'p'. ndctl-77/cxl/filter.c:1020:35: note: Function 'cxl_filter_walk' argument 2 names different: declaration 'param' definition 'p'. ndctl-77/cxl/filter.c:133:68: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] ndctl-77/cxl/filter.c:753:31: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] ndctl-77/cxl/filter.c:259:28: style: Variable 'serial' is assigned a value that is never used. [unreadVariable] ndctl-77/daxctl/lib/libdaxctl.c:158:2: error: There is an unknown macro here somewhere. Configuration is required. If list_for_each_safe is a macro then please configure it. [unknownMacro] ndctl-77/ndctl/bus.c:247:8: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/bus.c:262:8: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/bus.c:277:8: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] ndctl-77/daxctl/device.c:842:23: style: Condition 'val>0' is always true [knownConditionTrueFalse] ndctl-77/daxctl/device.c:825:10: note: Assuming that condition 'val<=0' is not redundant ndctl-77/daxctl/device.c:837:10: note: Assuming condition is false ndctl-77/daxctl/device.c:842:23: note: Condition 'val>0' is always true ndctl-77/daxctl/device.c:190:6: warning: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] ndctl-77/daxctl/device.c:190:6: warning: %u in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] ndctl-77/daxctl/device.c:192:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] ndctl-77/daxctl/device.c:382:9: style: Variable 'action_string' can be declared as pointer to const [constVariablePointer] ndctl-77/daxctl/device.c:697:24: style: Variable 'mem' can be declared as pointer to const [constVariablePointer] ndctl-77/daxctl/device.c:914:24: style: Variable 'mem' can be declared as pointer to const [constVariablePointer] ndctl-77/daxctl/device.c:941:24: style: Variable 'mem' can be declared as pointer to const [constVariablePointer] ndctl-77/daxctl/device.c:1082:8: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] ndctl-77/daxctl/device.c:1100:8: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] ndctl-77/daxctl/device.c:1117:8: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] ndctl-77/daxctl/device.c:1134:8: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] ndctl-77/daxctl/device.c:1151:8: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] ndctl-77/daxctl/device.c:1168:8: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] ndctl-77/daxctl/device.c:1185:8: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] ndctl-77/daxctl/device.c:27:14: style: struct member 'Anonymous0::dev' is never used. [unusedStructMember] ndctl-77/ndctl/filter.c:206:2: error: There is an unknown macro here somewhere. Configuration is required. If ndctl_region_foreach is a macro then please configure it. [unknownMacro] ndctl-77/daxctl/acpi.c:285:43: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] ndctl-77/daxctl/acpi.c:327:43: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] ndctl-77/daxctl/acpi.c:487:42: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] ndctl-77/daxctl/acpi.c:487:67: style: Parameter 'split' can be declared as pointer to const [constParameterPointer] ndctl-77/daxctl/acpi.c:548:46: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] ndctl-77/daxctl/acpi.c:175:7: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ndctl-77/daxctl/acpi.c:234:7: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ndctl-77/daxctl/acpi.c:309:6: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ndctl-77/daxctl/acpi.c:314:7: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ndctl-77/daxctl/acpi.c:351:6: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ndctl-77/daxctl/acpi.c:356:7: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ndctl-77/daxctl/acpi.c:50:8: error: Uninitialized variable: ent.tbl [uninitvar] ndctl-77/daxctl/acpi.c:65:8: error: Uninitialized variable: ent.tbl [uninitvar] ndctl-77/daxctl/acpi.c:629:35: error: Uninitialized variable: ent->tbl [uninitvar] ndctl-77/ndctl/inject-error.c:298:9: warning: Uninitialized variable: rc [uninitvar] ndctl-77/ndctl/inject-error.c:275:9: note: Assuming condition is false ndctl-77/ndctl/inject-error.c:298:9: note: Uninitialized variable: rc ndctl-77/ndctl/inject-error.c:35:14: style: struct member 'parameters::namespace' is never used. [unusedStructMember] ndctl-77/ndctl/inject-smart.c:34:14: style: struct member 'parameters::dimm' is never used. [unusedStructMember] ndctl-77/ndctl/check.c:76:44: style: Parameter 'siginfo' can be declared as pointer to const. However it seems that 'sigbus_hdl' is a callback function, if 'siginfo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/check.c:1187:21: note: You might need to cast the function pointer here ndctl-77/ndctl/check.c:76:44: note: Parameter 'siginfo' can be declared as pointer to const ndctl-77/ndctl/check.c:76:59: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'sigbus_hdl' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/check.c:1187:21: note: You might need to cast the function pointer here ndctl-77/ndctl/check.c:76:59: note: Parameter 'ptr' can be declared as pointer to const ndctl-77/ndctl/check.c:123:64: style: Parameter 'btt_sb' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/check.c:229:51: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/check.c:236:22: style: Parameter 'log' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/check.c:671:46: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/check.c:1144:6: style: Variable 'offsets' can be declared as const array [constVariable] ndctl-77/ndctl/check.c:1158:9: warning: Uninitialized variable: rc [uninitvar] ndctl-77/ndctl/check.c:1150:16: note: Assuming condition is false ndctl-77/ndctl/check.c:1158:9: note: Uninitialized variable: rc ndctl-77/ndctl/check.c:454:9: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] ndctl-77/ndctl/lib/ars.c:118:25: style: Variable 'ars_cap_cmd' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/lib/ars.c:300:25: style: Variable 'cap' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/lib/private.h:107:65: style: Parameter 'dimm' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/lib/private.h:366:43: style: Parameter 'udev' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/lib/private.h:371:47: style: Parameter 'kmod_ctx' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/keys.c:412:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] ndctl-77/ndctl/keys.c:426:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] ndctl-77/ndctl/keys.c:128:3: error: Resource leak: fd [resourceLeak] ndctl-77/ndctl/keys.c:132:3: error: Resource leak: fd [resourceLeak] ndctl-77/ndctl/keys.c:137:3: error: Resource leak: fd [resourceLeak] ndctl-77/ndctl/keys.c:153:3: error: Resource leak: fd [resourceLeak] ndctl-77/ndctl/keys.h:34:50: style: Parameter 'size' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/keys.h:39:59: style: Parameter 'dimm' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/keys.h:45:60: style: Parameter 'dimm' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/keys.h:51:60: style: Parameter 'dimm' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/keys.h:56:66: style: Parameter 'dimm' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/keys.h:62:63: style: Parameter 'dimm' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/keys.c:182:6: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] ndctl-77/ndctl/dimm.c:1447:14: style: Condition 'rc' is always true [knownConditionTrueFalse] ndctl-77/ndctl/dimm.c:1371:3: error: Memory leak: actx.f_out [memleak] ndctl-77/ndctl/dimm.c:708:5: style: Redundant initialization for 'rc'. The initialized value is overwritten before it is read. [redundantInitialization] ndctl-77/ndctl/dimm.c:702:9: note: rc is initialized ndctl-77/ndctl/dimm.c:708:5: note: rc is overwritten ndctl-77/ndctl/dimm.c:467:18: style: Variable 'fw' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/dimm.c:638:18: style: Variable 'fw' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/dimm.c:804:18: style: Variable 'fw' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/dimm.c:1176:72: style: Parameter 'actx' can be declared as pointer to const. However it seems that 'action_init' is a callback function, if 'actx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/dimm.c:1521:43: note: You might need to cast the function pointer here ndctl-77/ndctl/dimm.c:1176:72: note: Parameter 'actx' can be declared as pointer to const ndctl-77/ndctl/json.c:391:6: style: Condition 'btt' is always true [knownConditionTrueFalse] ndctl-77/ndctl/lib/hyperv.c:17:56: style: Parameter 'dimm' can be declared as pointer to const. However it seems that 'hyperv_cmd_is_supported' is a callback function, if 'dimm' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/lib/hyperv.c:182:22: note: You might need to cast the function pointer here ndctl-77/ndctl/lib/hyperv.c:17:56: note: Parameter 'dimm' can be declared as pointer to const ndctl-77/ndctl/lib/libndctl.c:467:2: error: There is an unknown macro here somewhere. Configuration is required. If list_for_each_safe is a macro then please configure it. [unknownMacro] ndctl-77/ndctl/lib/intel.c:47:23: style: Variable 'pkg' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/lib/intel.c:150:23: style: Variable 'pkg' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/lib/intel.c:241:23: style: Variable 'pkg' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/lib/intel.c:266:35: style: Variable 'thresh' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/lib/intel.c:306:35: style: Variable 'thresh' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/lib/intel.c:333:23: style: Variable 'pkg' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/lib/intel.c:368:23: style: Variable 'pkg' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/lib/intel.c:504:23: style: Variable 'pkg' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/lib/intel.c:575:23: style: Variable 'pkg' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/lib/intel.c:597:48: style: Parameter 'data' can be declared as pointer to const. However it seems that 'intel_dimm_cmd_new_fw_send' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/lib/intel.c:842:17: note: You might need to cast the function pointer here ndctl-77/ndctl/lib/intel.c:597:48: note: Parameter 'data' can be declared as pointer to const ndctl-77/ndctl/lib/intel.c:665:23: style: Variable 'pkg' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/lib/intel.c:688:60: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/lib/intel.c:31:39: portability: '(void*)send' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ndctl-77/ndctl/lib/intel.c:31:55: portability: '((void*)send)+sizeof(*send)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ndctl-77/ndctl/lib/inject.c:337:8: style: Condition 'bb_next' is always true [knownConditionTrueFalse] ndctl-77/ndctl/lib/inject.c:32:20: style: Variable 'btt' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/lib/msft.c:33:54: style: Parameter 'dimm' can be declared as pointer to const. However it seems that 'msft_cmd_is_supported' is a callback function, if 'dimm' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/lib/msft.c:211:22: note: You might need to cast the function pointer here ndctl-77/ndctl/lib/msft.c:33:54: note: Parameter 'dimm' can be declared as pointer to const ndctl-77/ndctl/lib/nfit.c:34:68: style: Parameter 'bus' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/lib/papr.c:41:54: style: Parameter 'dimm' can be declared as pointer to const. However it seems that 'papr_cmd_is_supported' is a callback function, if 'dimm' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/lib/papr.c:319:22: note: You might need to cast the function pointer here ndctl-77/ndctl/lib/papr.c:41:54: note: Parameter 'dimm' can be declared as pointer to const ndctl-77/ndctl/lib/papr.c:126:83: style: Parameter 'health' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/lib/papr.c:235:54: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/load-keys.c:92:17: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] ndctl-77/ndctl/load-keys.c:107:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] ndctl-77/ndctl/load-keys.c:116:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] ndctl-77/ndctl/load-keys.c:67:6: style: Condition '!blob' is always true [knownConditionTrueFalse] ndctl-77/ndctl/load-keys.c:65:28: note: Calling function 'ndctl_load_key_blob' returns 0 ndctl-77/ndctl/load-keys.c:65:28: note: Assignment 'blob=ndctl_load_key_blob(path,&size,param.tpm_handle,-1,lk_ctx->key_type)', assigned value is 0 ndctl-77/ndctl/load-keys.c:67:6: note: Condition '!blob' is always true ndctl-77/ndctl/load-keys.c:124:7: style: Condition '!blob' is always true [knownConditionTrueFalse] ndctl-77/ndctl/load-keys.c:122:29: note: Calling function 'ndctl_load_key_blob' returns 0 ndctl-77/ndctl/load-keys.c:122:29: note: Assignment 'blob=ndctl_load_key_blob(dent->d_name,&size,NULL,lk_ctx->dirfd,KEY_ENCRYPTED)', assigned value is 0 ndctl-77/ndctl/load-keys.c:124:7: note: Condition '!blob' is always true ndctl-77/ndctl/load-keys.c:86:17: style: Variable 'dent' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/load-keys.c:87:23: style: Variable 'id' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/load-keys.c:152:46: style: Parameter 'lk_ctx' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/ndctl.c:46:2: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] ndctl-77/ndctl/ndctl.c:27:71: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ndctl-77/test/ack-shutdown-count-set.c:50:2: error: There is an unknown macro here somewhere. Configuration is required. If ndctl_region_foreach is a macro then please configure it. [unknownMacro] ndctl-77/test/core.c:263:4: error: There is an unknown macro here somewhere. Configuration is required. If ndctl_region_foreach is a macro then please configure it. [unknownMacro] ndctl-77/test/dax-dev.c:24:20: style: Variable 'dax' can be declared as pointer to const [constVariablePointer] ndctl-77/test/dax-dev.c:25:20: style: Variable 'pfn' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/monitor.c:63:68: style: Parameter 'mdimm' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/monitor.c:234:48: style: Parameter 'region' can be declared as pointer to const. However it seems that 'filter_region' is a callback function, if 'region' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/monitor.c:643:23: note: You might need to cast the function pointer here ndctl-77/ndctl/monitor.c:234:48: note: Parameter 'region' can be declared as pointer to const ndctl-77/ndctl/monitor.c:235:31: style: Parameter 'fctx' can be declared as pointer to const. However it seems that 'filter_region' is a callback function, if 'fctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/monitor.c:643:23: note: You might need to cast the function pointer here ndctl-77/ndctl/monitor.c:235:31: note: Parameter 'fctx' can be declared as pointer to const ndctl-77/ndctl/monitor.c:288:42: style: Parameter 'bus' can be declared as pointer to const. However it seems that 'filter_bus' is a callback function, if 'bus' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/monitor.c:641:20: note: You might need to cast the function pointer here ndctl-77/ndctl/monitor.c:288:42: note: Parameter 'bus' can be declared as pointer to const ndctl-77/ndctl/monitor.c:288:72: style: Parameter 'fctx' can be declared as pointer to const. However it seems that 'filter_bus' is a callback function, if 'fctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/monitor.c:641:20: note: You might need to cast the function pointer here ndctl-77/ndctl/monitor.c:288:72: note: Parameter 'fctx' can be declared as pointer to const ndctl-77/ndctl/monitor.c:436:54: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/monitor.c:436:76: style: Parameter 'ident' can be declared as pointer to const [constParameterPointer] ndctl-77/test/dax-errors.c:34:8: style: Variable 'base' can be declared as pointer to const [constVariablePointer] ndctl-77/test/dax-errors.c:104:26: style: Parameter 'argv' can be declared as const array [constParameter] ndctl-77/test/dax-poison.c:99:2: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ndctl-77/test/dax-poison.c:52:13: style: Redundant assignment of 'x' to itself. [selfAssignment] ndctl-77/test/dax-poison.c:26:44: style: Parameter 'si' can be declared as pointer to const. However it seems that 'sigbus_hdl' is a callback function, if 'si' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/dax-poison.c:71:21: note: You might need to cast the function pointer here ndctl-77/test/dax-poison.c:26:44: note: Parameter 'si' can be declared as pointer to const ndctl-77/test/dax-poison.c:48:9: style: Parameter 'dax_addr' can be declared as pointer to const [constParameterPointer] ndctl-77/test/dax-poison.c:52:15: error: Uninitialized variable: x [legacyUninitvar] ndctl-77/test/dax-poison.c:163:4: style: Variable 'x' is assigned a value that is never used. [unreadVariable] ndctl-77/test/daxdev-errors.c:76:3: portability: %zd in format string (no. 3) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ndctl-77/test/daxdev-errors.c:162:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ndctl-77/test/daxdev-errors.c:164:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ndctl-77/test/daxdev-errors.c:212:3: warning: %lld in format string (no. 4) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ndctl-77/test/daxdev-errors.c:242:20: style: Variable 'dax' can be declared as pointer to const [constVariablePointer] ndctl-77/test/daxdev-errors.c:32:21: style: struct member 'check_cmd::test' is never used. [unusedStructMember] ndctl-77/test/dsm-fail.c:29:2: error: There is an unknown macro here somewhere. Configuration is required. If ndctl_region_foreach is a macro then please configure it. [unknownMacro] ndctl-77/test/hugetlb.c:24:48: style: Parameter 'argv' can be declared as const array [constParameter] ndctl-77/test/dax-pmd.c:109:10: style: Condition 'val!=0xAA' is always false [knownConditionTrueFalse] ndctl-77/test/dax-pmd.c:106:18: note: Assignment '*(int*)anon=0xAA', assigned value is 170 ndctl-77/test/dax-pmd.c:107:8: note: Assignment 'val=*(int*)anon', assigned value is 170 ndctl-77/test/dax-pmd.c:109:10: note: Condition 'val!=0xAA' is always false ndctl-77/test/dax-pmd.c:142:5: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ndctl-77/test/dax-pmd.c:323:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ndctl-77/test/dax-pmd.c:65:3: error: Memory leak: anon [memleak] ndctl-77/test/dax-pmd.c:175:6: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] ndctl-77/test/dax-pmd.c:173:6: note: rc is assigned ndctl-77/test/dax-pmd.c:175:6: note: rc is overwritten ndctl-77/test/dax-pmd.c:36:40: style: Parameter 'siginfo' can be declared as pointer to const. However it seems that 'sigbus' is a callback function, if 'siginfo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/dax-pmd.c:88:21: note: You might need to cast the function pointer here ndctl-77/test/dax-pmd.c:36:40: note: Parameter 'siginfo' can be declared as pointer to const ndctl-77/test/dax-pmd.c:36:55: style: Parameter 'd' can be declared as pointer to const. However it seems that 'sigbus' is a callback function, if 'd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/dax-pmd.c:88:21: note: You might need to cast the function pointer here ndctl-77/test/dax-pmd.c:36:55: note: Parameter 'd' can be declared as pointer to const ndctl-77/test/dax-pmd.c:41:84: style: Parameter 'dax_addr' can be declared as pointer to const [constParameterPointer] ndctl-77/test/dax-pmd.c:44:15: style: Variable 'remap' can be declared as pointer to const [constVariablePointer] ndctl-77/test/dax-pmd.c:117:62: style: Parameter 'dax_addr' can be declared as pointer to const [constParameterPointer] ndctl-77/test/dax-pmd.c:359:48: style: Parameter 'argv' can be declared as const array [constParameter] ndctl-77/test/device-dax.c:57:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ndctl-77/test/device-dax.c:73:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ndctl-77/test/device-dax.c:77:40: style: Parameter 'siginfo' can be declared as pointer to const. However it seems that 'sigbus' is a callback function, if 'siginfo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/device-dax.c:378:21: note: You might need to cast the function pointer here ndctl-77/test/device-dax.c:77:40: note: Parameter 'siginfo' can be declared as pointer to const ndctl-77/test/device-dax.c:77:55: style: Parameter 'd' can be declared as pointer to const. However it seems that 'sigbus' is a callback function, if 'd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/device-dax.c:378:21: note: You might need to cast the function pointer here ndctl-77/test/device-dax.c:77:55: note: Parameter 'd' can be declared as pointer to const ndctl-77/test/device-dax.c:104:17: style: Variable 'verify' can be declared as pointer to const [constVariablePointer] ndctl-77/test/device-dax.c:421:9: warning: Uninitialized variable: rc [uninitvar] ndctl-77/test/device-dax.c:415:16: note: Assuming condition is false ndctl-77/test/device-dax.c:421:9: note: Uninitialized variable: rc ndctl-77/test/libndctl.c:480:3: error: There is an unknown macro here somewhere. Configuration is required. If ndctl_region_foreach is a macro then please configure it. [unknownMacro] ndctl-77/test/list-smart-dimm.c:115:18: style: Condition 'list_display(&lfa)' is always false [knownConditionTrueFalse] ndctl-77/test/list-smart-dimm.c:115:18: note: Calling function 'list_display' returns 0 ndctl-77/test/list-smart-dimm.c:115:18: note: Condition 'list_display(&lfa)' is always false ndctl-77/test/list-smart-dimm.c:25:48: style: Parameter 'region' can be declared as pointer to const. However it seems that 'filter_region' is a callback function, if 'region' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/list-smart-dimm.c:106:23: note: You might need to cast the function pointer here ndctl-77/test/list-smart-dimm.c:25:48: note: Parameter 'region' can be declared as pointer to const ndctl-77/test/list-smart-dimm.c:26:28: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'filter_region' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/list-smart-dimm.c:106:23: note: You might need to cast the function pointer here ndctl-77/test/list-smart-dimm.c:26:28: note: Parameter 'ctx' can be declared as pointer to const ndctl-77/test/list-smart-dimm.c:31:75: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'filter_dimm' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/list-smart-dimm.c:105:21: note: You might need to cast the function pointer here ndctl-77/test/list-smart-dimm.c:31:75: note: Parameter 'ctx' can be declared as pointer to const ndctl-77/test/list-smart-dimm.c:60:42: style: Parameter 'bus' can be declared as pointer to const. However it seems that 'filter_bus' is a callback function, if 'bus' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/list-smart-dimm.c:104:20: note: You might need to cast the function pointer here ndctl-77/test/list-smart-dimm.c:60:42: note: Parameter 'bus' can be declared as pointer to const ndctl-77/test/list-smart-dimm.c:60:72: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'filter_bus' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/list-smart-dimm.c:104:20: note: You might need to cast the function pointer here ndctl-77/test/list-smart-dimm.c:60:72: note: Parameter 'ctx' can be declared as pointer to const ndctl-77/test/list-smart-dimm.c:65:49: style: Parameter 'lfa' can be declared as pointer to const [constParameterPointer] ndctl-77/test/pmem_namespaces.c:209:9: error: There is an unknown macro here somewhere. Configuration is required. If ndctl_region_foreach is a macro then please configure it. [unknownMacro] ndctl-77/test/revoke-devmem.c:27:40: style: Parameter 'siginfo' can be declared as pointer to const. However it seems that 'sigbus' is a callback function, if 'siginfo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/revoke-devmem.c:87:21: note: You might need to cast the function pointer here ndctl-77/test/revoke-devmem.c:27:40: note: Parameter 'siginfo' can be declared as pointer to const ndctl-77/test/revoke-devmem.c:27:55: style: Parameter 'd' can be declared as pointer to const. However it seems that 'sigbus' is a callback function, if 'd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/revoke-devmem.c:87:21: note: You might need to cast the function pointer here ndctl-77/test/revoke-devmem.c:27:55: note: Parameter 'd' can be declared as pointer to const ndctl-77/test/smart-notify.c:185:2: error: There is an unknown macro here somewhere. Configuration is required. If ndctl_dimm_foreach is a macro then please configure it. [unknownMacro] ndctl-77/test/smart-listen.c:80:26: style: Parameter 'argv' can be declared as const array [constParameter] ndctl-77/util/iomem.c:24:9: warning:inconclusive: Width 254 given in format string (no. 2) is smaller than destination buffer 'name[256]'. [invalidScanfFormatWidth_smaller] ndctl-77/util/json.c:32:3: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ndctl-77/util/log.c:12:33: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ndctl-77/util/log.c:27:31: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] ndctl-77/util/log.c:56:40: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'log_stderr' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/util/log.c:87:16: note: You might need to cast the function pointer here ndctl-77/util/log.c:56:40: note: Parameter 'ctx' can be declared as pointer to const ndctl-77/test/mmap.c:64:6: style: Redundant assignment of 'tmp' to itself. [selfAssignment] ndctl-77/test/mmap.c:18:58: style: Parameter 't1' can be declared as pointer to const [constParameterPointer] ndctl-77/test/mmap.c:18:78: style: Parameter 't0' can be declared as pointer to const [constParameterPointer] ndctl-77/util/parse-configs.c:54:16: style: Variable 'cur' can be declared as pointer to const [constVariablePointer] ndctl-77/util/main.c:50:24: style: Variable 'p' can be declared as pointer to const [constVariablePointer] ndctl-77/util/strbuf.c:78:24: warning:inconclusive: Possible null pointer dereference: data [nullPointer] ndctl-77/util/strbuf.c:84:30: note: Calling function 'strbuf_splice', 4th argument 'NULL' value is 0 ndctl-77/util/strbuf.c:78:24: note: Null pointer dereference ndctl-77/util/sysfs.c:92:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] ndctl-77/util/sysfs.c:184:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] ndctl-77/util/sysfs.c:82:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] ndctl-77/util/sysfs.c:95:9: style: Variable 'dev' can be declared as pointer to const [constVariablePointer] ndctl-77/util/sysfs.c:155:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] ndctl-77/ndctl/namespace.c:1592:19: error: Invalid memcmp() argument nr 3. A non-boolean value is required. [invalidFunctionArgBool] ndctl-77/ndctl/namespace.c:1680:19: error: Invalid memcmp() argument nr 3. A non-boolean value is required. [invalidFunctionArgBool] ndctl-77/ndctl/namespace.c:1058:5: style: Redundant initialization for 'rc'. The initialized value is overwritten before it is read. [redundantInitialization] ndctl-77/ndctl/namespace.c:1053:13: note: rc is initialized ndctl-77/ndctl/namespace.c:1058:5: note: rc is overwritten ndctl-77/ndctl/namespace.c:460:29: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] ndctl-77/ndctl/namespace.c:1756:31: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ndctl-77/ndctl/namespace.c:1758:30: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] ndctl-77/ndctl/namespace.c:1860:30: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] diff: head ndctl-77/cxl/cxl.c:28:69: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] 2.13.0 ndctl-77/cxl/memdev.c:231:3: error: There is an unknown macro here somewhere. Configuration is required. If cxl_decoder_foreach_reverse is a macro then please configure it. [unknownMacro] head ndctl-77/cxl/memdev.c:268:4: error: syntax error [syntaxError] head ndctl-77/daxctl/daxctl.c:28:72: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] head ndctl-77/ndctl/check.c:76:44: style: Parameter 'siginfo' can be declared as pointer to const. However it seems that 'sigbus_hdl' is a callback function, if 'siginfo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/check.c:1187:21: note: You might need to cast the function pointer here ndctl-77/ndctl/check.c:76:44: note: Parameter 'siginfo' can be declared as pointer to const head ndctl-77/ndctl/check.c:76:59: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'sigbus_hdl' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/check.c:1187:21: note: You might need to cast the function pointer here ndctl-77/ndctl/check.c:76:59: note: Parameter 'ptr' can be declared as pointer to const head ndctl-77/ndctl/keys.h:34:50: style: Parameter 'size' can be declared as pointer to const [constParameterPointer] head ndctl-77/ndctl/keys.h:39:59: style: Parameter 'dimm' can be declared as pointer to const [constParameterPointer] head ndctl-77/ndctl/keys.h:45:60: style: Parameter 'dimm' can be declared as pointer to const [constParameterPointer] head ndctl-77/ndctl/keys.h:51:60: style: Parameter 'dimm' can be declared as pointer to const [constParameterPointer] head ndctl-77/ndctl/keys.h:56:66: style: Parameter 'dimm' can be declared as pointer to const [constParameterPointer] head ndctl-77/ndctl/keys.h:62:63: style: Parameter 'dimm' can be declared as pointer to const [constParameterPointer] head ndctl-77/ndctl/monitor.c:234:48: style: Parameter 'region' can be declared as pointer to const. However it seems that 'filter_region' is a callback function, if 'region' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/monitor.c:643:23: note: You might need to cast the function pointer here ndctl-77/ndctl/monitor.c:234:48: note: Parameter 'region' can be declared as pointer to const head ndctl-77/ndctl/monitor.c:235:31: style: Parameter 'fctx' can be declared as pointer to const. However it seems that 'filter_region' is a callback function, if 'fctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/monitor.c:643:23: note: You might need to cast the function pointer here ndctl-77/ndctl/monitor.c:235:31: note: Parameter 'fctx' can be declared as pointer to const head ndctl-77/ndctl/monitor.c:288:42: style: Parameter 'bus' can be declared as pointer to const. However it seems that 'filter_bus' is a callback function, if 'bus' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/monitor.c:641:20: note: You might need to cast the function pointer here ndctl-77/ndctl/monitor.c:288:42: note: Parameter 'bus' can be declared as pointer to const head ndctl-77/ndctl/monitor.c:288:72: style: Parameter 'fctx' can be declared as pointer to const. However it seems that 'filter_bus' is a callback function, if 'fctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/ndctl/monitor.c:641:20: note: You might need to cast the function pointer here ndctl-77/ndctl/monitor.c:288:72: note: Parameter 'fctx' can be declared as pointer to const head ndctl-77/ndctl/ndctl.c:27:71: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] head ndctl-77/test/dax-pmd.c:36:40: style: Parameter 'siginfo' can be declared as pointer to const. However it seems that 'sigbus' is a callback function, if 'siginfo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/dax-pmd.c:88:21: note: You might need to cast the function pointer here ndctl-77/test/dax-pmd.c:36:40: note: Parameter 'siginfo' can be declared as pointer to const head ndctl-77/test/dax-pmd.c:36:55: style: Parameter 'd' can be declared as pointer to const. However it seems that 'sigbus' is a callback function, if 'd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/dax-pmd.c:88:21: note: You might need to cast the function pointer here ndctl-77/test/dax-pmd.c:36:55: note: Parameter 'd' can be declared as pointer to const head ndctl-77/test/dax-poison.c:52:13: style: Redundant assignment of 'x' to itself. [selfAssignment] 2.13.0 ndctl-77/test/dax-poison.c:52:13: warning: Redundant assignment of 'x' to itself. [selfAssignment] head ndctl-77/test/device-dax.c:77:40: style: Parameter 'siginfo' can be declared as pointer to const. However it seems that 'sigbus' is a callback function, if 'siginfo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/device-dax.c:378:21: note: You might need to cast the function pointer here ndctl-77/test/device-dax.c:77:40: note: Parameter 'siginfo' can be declared as pointer to const head ndctl-77/test/device-dax.c:77:55: style: Parameter 'd' can be declared as pointer to const. However it seems that 'sigbus' is a callback function, if 'd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/device-dax.c:378:21: note: You might need to cast the function pointer here ndctl-77/test/device-dax.c:77:55: note: Parameter 'd' can be declared as pointer to const head ndctl-77/test/hugetlb.c:24:48: style: Parameter 'argv' can be declared as const array [constParameter] head ndctl-77/test/list-smart-dimm.c:25:48: style: Parameter 'region' can be declared as pointer to const. However it seems that 'filter_region' is a callback function, if 'region' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/list-smart-dimm.c:106:23: note: You might need to cast the function pointer here ndctl-77/test/list-smart-dimm.c:25:48: note: Parameter 'region' can be declared as pointer to const head ndctl-77/test/list-smart-dimm.c:26:28: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'filter_region' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/list-smart-dimm.c:106:23: note: You might need to cast the function pointer here ndctl-77/test/list-smart-dimm.c:26:28: note: Parameter 'ctx' can be declared as pointer to const head ndctl-77/test/list-smart-dimm.c:60:42: style: Parameter 'bus' can be declared as pointer to const. However it seems that 'filter_bus' is a callback function, if 'bus' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/list-smart-dimm.c:104:20: note: You might need to cast the function pointer here ndctl-77/test/list-smart-dimm.c:60:42: note: Parameter 'bus' can be declared as pointer to const head ndctl-77/test/list-smart-dimm.c:60:72: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'filter_bus' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/list-smart-dimm.c:104:20: note: You might need to cast the function pointer here ndctl-77/test/list-smart-dimm.c:60:72: note: Parameter 'ctx' can be declared as pointer to const head ndctl-77/test/list-smart-dimm.c:65:49: style: Parameter 'lfa' can be declared as pointer to const [constParameterPointer] head ndctl-77/test/mmap.c:64:6: style: Redundant assignment of 'tmp' to itself. [selfAssignment] 2.13.0 ndctl-77/test/mmap.c:64:6: warning: Redundant assignment of 'tmp' to itself. [selfAssignment] head ndctl-77/test/revoke-devmem.c:27:40: style: Parameter 'siginfo' can be declared as pointer to const. However it seems that 'sigbus' is a callback function, if 'siginfo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/revoke-devmem.c:87:21: note: You might need to cast the function pointer here ndctl-77/test/revoke-devmem.c:27:40: note: Parameter 'siginfo' can be declared as pointer to const head ndctl-77/test/revoke-devmem.c:27:55: style: Parameter 'd' can be declared as pointer to const. However it seems that 'sigbus' is a callback function, if 'd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ndctl-77/test/revoke-devmem.c:87:21: note: You might need to cast the function pointer here ndctl-77/test/revoke-devmem.c:27:55: note: Parameter 'd' can be declared as pointer to const head ndctl-77/test/smart-listen.c:80:26: style: Parameter 'argv' can be declared as const array [constParameter] head ndctl-77/util/log.c:12:33: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] head ndctl-77/util/log.c:27:31: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] DONE