Skip to content

Remove the function_exists method of ConfigRegionAccess #26

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

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

bjorn3
Copy link
Contributor

@bjorn3 bjorn3 commented Jun 9, 2024

It isn't used anywhere and pci_types can implement it itself if it needs to by checking if the vendor and device id fields are both 0xFFFF.

Fixes #14

It isn't used anywhere and pci_types can implement it itself if it needs
to by checking if the vendor and device id fields are both 0xFFFF.

Fixes rust-osdev#14
@bjorn3
Copy link
Contributor Author

bjorn3 commented Jun 9, 2024

This is a breaking change, so it will have to merged as part of pci_types 0.10 or later.

@IsaacWoods
Copy link
Member

Yeah, when I extracted this library from my kernel I think this existed because I was worried about a rogue PCI enumeration routine causing an out-of-bounds access in the MCFG or something, but this seems like a sensible change now.

I'm planning to collect all the breaking changes together and release a new version with them all.

@IsaacWoods IsaacWoods merged commit f02cac2 into rust-osdev:main Jun 15, 2024
3 checks passed
@bjorn3 bjorn3 deleted the remove_function_exists branch June 15, 2024 04:46
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.

function_exists method on ConfigRegionAccess is unused
2 participants