Commit Graph
8 Commits
Author SHA1 Message Date
Gleb Chesnokov 59f685393d scst: Name and align function prototype arguments consistently
Name anonymous function and negotiation-callback parameters and match
declaration names to their definitions. This includes the misleading
length name of the CDB LBA argument. Types and calling conventions
remain unchanged. Use pool_type for the two private sysfs parameter names
so their declarations fit; structure fields and diagnostics keep their
existing names.

Drop redundant extern on function prototypes, retain it on objects, and
align continued arguments with the resulting opening parentheses.

Cppcheck reports funcArgNamesDifferent, funcArgNamesDifferentUnnamed.
One example:

  Function 'sqa_enable_tgt' argument 1 names different: declaration
  'tgt' definition 'scst_tgt'.

Checkpatch reports FUNCTION_ARGUMENTS:

  function definition argument 'const struct iscsi_key *' should also
  have an identifier name

Checkpatch reports AVOID_EXTERNS:

  extern prototypes should be avoided in .h files

Checkpatch reports PARENTHESIS_ALIGNMENT:

  Alignment should match open parenthesis
2026-10-21 22:12:25 +03:00
Gleb Chesnokov 54cdddce81 scst: Avoid shadowed names and overwritten initializers
Use distinct names for parser arguments, local descriptors, trace flags
and iSNS send/receive transaction IDs. Rename the process-wide SRPT RDMA
listener so connection-specific IDs do not shadow it.

Remove initial values replaced unconditionally before use and the
impossible fgets NULL branch. Retain configuration-dependent
initializers, listener lifetime and every connection ID passed to RDMA
operations.

Cppcheck reports shadowArgument, redundantInitialization. One example:

  Local variable 'pp' shadows outer argument

Cppcheck reports shadowVariable, unreadVariable. One example:

  Argument 'trace_flag' shadows outer variable
2026-10-21 22:12:25 +03:00
Gleb Chesnokov 191a74d127 scst: Fix recently introduced Coverity warnings
Add error handling for recently introduced SHA256 and SHA3-256 APIs.
2025-03-25 16:09:35 +03:00
Vladislav Bolkhovitin f549829482 Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7396 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-04-12 03:49:10 +00:00
Vladislav Bolkhovitin 68fa7e1a0d Copyright updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-22 03:19:52 +00:00
Vladislav Bolkhovitin fa2f54ac9e Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6787 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-01-22 04:04:43 +00:00
Bart Van Assche 36a48008e9 scst_user, fileio: Fix 2perf build
See also trunk r6579.

Reported-by: Alexey Mochkin <alukardd@alukardd.org>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6660 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-10 23:32:23 +00:00
Vladislav Bolkhovitin ae38d284e0 Explicit ALUA user space
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6579 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:40:37 +00:00