mirror of
https://github.com/SCST-project/scst.git
synced 2026-10-22 06:02:33 +00:00
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?