Skip to content

patina_dxe_core: Add missing safety comments and enable clippy lint#1402

Merged
makubacki merged 1 commit intoOpenDevicePartnership:mainfrom
makubacki:finish_patina_dxe_core_unsafe_enabling
Mar 16, 2026
Merged

patina_dxe_core: Add missing safety comments and enable clippy lint#1402
makubacki merged 1 commit intoOpenDevicePartnership:mainfrom
makubacki:finish_patina_dxe_core_unsafe_enabling

Conversation

@makubacki
Copy link
Copy Markdown
Collaborator

@makubacki makubacki commented Mar 13, 2026

Description

Closes #583
Closes #1396

Adds safety comments to the remaining unsafe blocks in patina_dxe_core and enables the clippy lint for missing safety docs.

This allows future contributions to have the lint enforced.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

  • cargo make all with the undocumented_safety_blocks clippy lint enabled in patina_dxe_core

Integration Instructions

  • N/A - Safety comments that have no functional impact

Note: Skipping code coverage check on this PR.

@makubacki makubacki self-assigned this Mar 13, 2026
@patina-automation
Copy link
Copy Markdown
Contributor

patina-automation Bot commented Mar 13, 2026

QEMU Validation Failed

QEMU validation did not complete successfully or did not shutdown as expected.

Workflow run: https://github.com/OpenDevicePartnership/patina/actions/runs/23073788308

Job Results

Job Result
Gather Incoming PR Metadata
Run Patina QEMU Validation / Post In-Progress Notification
Run Patina QEMU Validation / Get Constants / Get Repository Constants
Run Patina QEMU Validation / Preflight Checks
Run Patina QEMU Validation / Validate QEMU Q35 (Windows)
Run Patina QEMU Validation / Validate QEMU - Q35 (Linux)
Run Patina QEMU Validation / Validate QEMU - SBSA (Linux)
Run Patina QEMU Validation / Emit PR Metadata

This comment was automatically generated by the Patina QEMU PR Validation Post workflow.

@github-actions github-actions Bot added impact:non-functional Does not have a functional impact type:documentation Improvements or additions to documentation labels Mar 13, 2026
Adds safety comments to the remaining unsafe blocks in patina_dxe_core
and enables the clippy lint for missing safety docs.

This allows future contributions to have the lint enforced.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
@makubacki makubacki force-pushed the finish_patina_dxe_core_unsafe_enabling branch from 8114d88 to 97f3628 Compare March 13, 2026 22:43
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 13, 2026

@makubacki
Copy link
Copy Markdown
Collaborator Author

makubacki commented Mar 13, 2026

SBSA failure is unrelated to this PR:

ERROR - Test patina_acpi::integration_test::acpi_protocol_test failed: Get table should succeed for installed table
Failed with error #1.

Filed an issue to track whatever is needed for that in OpenDevicePartnership/patina-dxe-core-qemu#142.

@makubacki makubacki merged commit 4666aeb into OpenDevicePartnership:main Mar 16, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:non-functional Does not have a functional impact type:documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task]: Enable undocumented_safety_blocks in patina_dxe_core [Task]: Add safety comments around unsafe blocks

3 participants