Files
erofs-freebsd-out-tree/docs/pre12-batch-07.md
T
2026-08-18 09:20:44 +02:00

1.7 KiB

Pre-12 Batch 07: exact macro alignment

Date: 2026-08-13

Scope

  • Renamed only EROFS_ALL_SUPPORTED_INCOMPAT to the Linux name EROFS_ALL_FEATURE_INCOMPAT in its comment, definition, and sole source use.
  • Deleted only the zero-consumer compatibility alias EROFS_CHUNK_FORMAT_INDEXES_FLAG.

Static proof

  • Before the edit, the target tree had exactly three source occurrences of EROFS_ALL_SUPPORTED_INCOMPAT: its comment and definition in src/erofs_fs.h, and the src/super.c unsupported-feature calculation. The two additional target-tree matches were historical review prose, not source or build consumers.
  • After the edit, the old source name has zero occurrences and EROFS_ALL_FEATURE_INCOMPAT has exactly the same comment, definition, and sole src/super.c use.
  • The macro continuation expression and its feature-bit operands are unchanged. The unsupported calculation changes only the macro token.
  • A tracked-tree exact-symbol search found EROFS_CHUNK_FORMAT_INDEXES_FLAG only as identical definitions in retained repository snapshots. The target tree had exactly one occurrence: the definition being deleted.
  • Exact searches of target-tree Makefiles, scripts, documentation, text interfaces, and preprocessor -D flags found no consumer of the deleted alias. Existing code continues to use EROFS_CHUNK_FORMAT_INDEXES; EROFS_CHUNK_FORMAT_ALL and chunk decoding are unchanged.
  • git diff --check and git diff --cached --check were required for this batch.

Deferred validation

No build, QEMU, smoke, feature, or other dynamic validation was run for this batch. The final KLD and Plain/LZ4/LZMA validation remains deferred.