Skip to content

uefi: remove duplication in DevicePathHeader; use uefi-raw #1613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

phip1611
Copy link
Member

@phip1611 phip1611 commented Apr 8, 2025

uefi: remove duplication in DevicePathHeader; use uefi-raw

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

@phip1611 phip1611 self-assigned this Apr 8, 2025
@phip1611 phip1611 mentioned this pull request Apr 8, 2025
13 tasks
@phip1611 phip1611 force-pushed the dvcp branch 2 times, most recently from 6f640f4 to 11bfcc3 Compare April 8, 2025 09:08
@phip1611 phip1611 force-pushed the dvcp branch 3 times, most recently from 39b76eb to 4fe30f3 Compare April 15, 2025 12:59
@@ -25,6 +25,9 @@
`proto::device_path::text` to `proto::device_path`.
- **Breaking:** `exit_boot_services` now consumes a `Option<MemoryType>` which
defaults to the recommended value of `MemoryType::LOADER_DATA`.
- **Breaking:** Removed duplication in `DevicePathHeader`. This change however
doesn't affect many users. Instead of public fields, there are public
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I would take out "This change however doesn't affect many users." It's hard to predict how much code will be affected by a change, so better to stick with just what changed.

/// Header that appears at the start of every [`DevicePathNode`].
/// Fixed header that appears at the start of every [`DevicePathNode`].
///
/// This type is ABI-compatible.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// This type is ABI-compatible.
/// This type is ABI-compatible with `EFI_DEVICE_PATH_PROTOCOL`.

self.0.sub_type
}

/// Returns the total length of the device path.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Returns the total length of the device path.
/// Returns the total length of the device path node.

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