Skip to content

Conversation

@chorkin
Copy link
Contributor

@chorkin chorkin commented Sep 26, 2025

This PR fixes an issue when building the project on systems that don't support the <linux/mctp.h> header file.

@chorkin chorkin force-pushed the user/chorkin/fix_errors_header branch 2 times, most recently from 182fa03 to 39699bc Compare September 26, 2025 20:34
@chorkin chorkin changed the title MI-MCTP: Fix compile error for test/mi-mctp.c when !HAVE_LINUX_MCTP_H mi-mctp: Fix compile error for test/mi-mctp.c when !HAVE_LINUX_MCTP_H Sep 26, 2025
@chorkin chorkin force-pushed the user/chorkin/fix_errors_header branch 5 times, most recently from 5db4c06 to 295723f Compare September 26, 2025 20:47
@chorkin
Copy link
Contributor Author

chorkin commented Oct 6, 2025

@jk-ozlabs can you have a peek at this?

@jk-ozlabs
Copy link
Collaborator

The change looks good, I'd just suggest a different naming for the new header file. The top-level src/ directory just has the exported headers, so probably is not suitable for this compat header.

Perhaps src/nvme/mi-mctp-compat.h instead?

The test/mi-mctp.c fails to compile in certain cases where
HAVE_LINUX_MCTP_H is false.  There's a workaround for this condition
in src/mi-mctp.c but not here.  This change makes a common header and
includes it in both cases.

Signed-off-by: Chuck Horkin <chorkin@microsoft.com>
@chorkin chorkin force-pushed the user/chorkin/fix_errors_header branch from 295723f to 9b54eff Compare October 7, 2025 17:33
@igaw igaw merged commit c2f30b4 into linux-nvme:master Oct 8, 2025
12 checks passed
@igaw
Copy link
Collaborator

igaw commented Oct 8, 2025

Thanks!

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.

3 participants