Files
scst/usr
Gleb Chesnokov 007dce7252 scst: Group private macro operands and evaluate lock arguments once
Parenthesize expression operands in digest rounds, CDB groups and
statistics bounds while preserving declaration/name fragments. Group the
ARRAY_SIZE operand before indexing its first element.

Replace the reservation lock assertion macro with an inline helper so
its device argument is evaluated once. Retain the CONFIG_LOCKDEP guard
and the no-op behavior without lockdep.

Checkpatch reports MACRO_ARG_PRECEDENCE, COMPLEX_MACRO. One example:

  Macro argument 'dir' may be better as '(dir)' to avoid precedence
  issues

Checkpatch reports ARRAY_SIZE:

  Prefer ARRAY_SIZE(x)

Checkpatch reports MACRO_ARG_REUSE:

  Macro argument reuse 'dev' - possible side-effects?
2026-10-21 22:12:25 +03:00
..