Skip to content

mi: make private-mi.h include conditional on MI support#3275

Closed
bgoing-micron-oss wants to merge 1 commit intolinux-nvme:masterfrom
Micron-TPG-OSS:optional-private-mi-include
Closed

mi: make private-mi.h include conditional on MI support#3275
bgoing-micron-oss wants to merge 1 commit intolinux-nvme:masterfrom
Micron-TPG-OSS:optional-private-mi-include

Conversation

@bgoing-micron-oss
Copy link
Copy Markdown
Contributor

MI support was made optional, but lib.c still included private-mi.h unconditionally. Made include contitional based on MI support.

MI support was made optional, but lib.c still included private-mi.h
unconditionally.  Made include contitional based on MI support.

Signed-off-by: Broc Going <bgoing@micron.com>
@bgoing-micron-oss bgoing-micron-oss marked this pull request as draft April 15, 2026 22:33
@bgoing-micron-oss
Copy link
Copy Markdown
Contributor Author

This was an attempt to avoid including poll.h from private-mi.h when building on Windows, but it is failing the minimal build. Additional testing on a Linux build configured with -Dmi=disabled has additional failures, even without this change.

  • libnvme/test build fails - needs if wants_mi around mi tests
  • libnvme_mi_status_to_string in no-mi.c needs to be __public

I'll put together a different PR with those changes for review.

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.

1 participant