Skip to content

fix(migtd): resolve compiler warnings across crates#900

Merged
MichalTarnacki merged 1 commit into
intel:mainfrom
sgrams:fix/compiler-warnings
Jun 12, 2026
Merged

fix(migtd): resolve compiler warnings across crates#900
MichalTarnacki merged 1 commit into
intel:mainfrom
sgrams:fix/compiler-warnings

Conversation

@sgrams

@sgrams sgrams commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Fix all warnings emitted during a default feature build

@sgrams sgrams requested a review from jyao1 as a code owner June 12, 2026 11:34
@sgrams sgrams self-assigned this Jun 12, 2026
@sgrams sgrams force-pushed the fix/compiler-warnings branch from 0293d9e to 9ff73a4 Compare June 12, 2026 12:38
Fix all warnings emitted during a default feature build:

- attestation: replace `use super::*` with a cfg-gated
  `use super::QveCollateral` in attest_lib_binding, since
  QveCollateral is only referenced under the attest-lib-ext feature.

- migtd/servtd_ext: add missing `#[cfg(test)]` attribute to the
  `mod test` block, consistent with every other test module in the
  codebase, silencing the unused-import lint on `ServtdExt`.

- migtd/session: gate the `log_request_error!` macro definition
  behind `#[cfg(feature = "vmcall-raw")]` since all call-sites live
  inside vmcall-raw-only functions; remove spurious `mut` from the
  `transport` binding (value is consumed by-move, never reassigned).

- migtd/transport: prefix both `mig_request_id` parameters with `_`
  (`_mig_request_id`) in `setup_transport` and `shutdown_transport`;
  the parameter is only read inside cfg-gated blocks so it appears
  unused when those features are disabled.

- migtd/main: rename `data` / `mut data` to `mut _data` and update
  all references; the buffer is only passed into vmcall-raw and
  policy_v2 code paths, making it appear unused in other
  configurations.

Signed-off-by: Stanislaw Grams <stanislaw.grams@intel.com>
@sgrams sgrams force-pushed the fix/compiler-warnings branch from 9ff73a4 to ef80ad8 Compare June 12, 2026 12:57
@sgrams sgrams requested a review from MichalTarnacki June 12, 2026 14:25
@MichalTarnacki MichalTarnacki merged commit 598a9e2 into intel:main Jun 12, 2026
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants