Skip to content

mctp: don't include linux/mctp.h directly #105

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 2 commits into from
Aug 5, 2025

Conversation

jk-ozlabs
Copy link
Member

Commit e35f4a5 ("mctpd: avoid bitfield & implicit enum values in wire format") introduced a #include <linux/mctp.h> for mctp_eid_t. However, we want the ability to fall-back to the in-tree definitions, so use the internal mctp.h instead. This will use mctp.h if available.

Fixes: #103
Fixes: e35f4a5 ("mctpd: avoid bitfield & implicit enum values in wire format")

Commit e35f4a5 ("mctpd: avoid bitfield & implicit enum values in wire
format") introduced a #include <linux/mctp.h> for mctp_eid_t. However,
we want the ability to fall-back to the in-tree definitions, so use the
internal mctp.h instead. This will use mctp.h if available.

Fixes: CodeConstruct#103
Fixes: e35f4a5 ("mctpd: avoid bitfield & implicit enum values in wire format")
Signed-off-by: Jeremy Kerr <[email protected]>
We use IFNAMSIZ, so include if.h.

Signed-off-by: Jeremy Kerr <[email protected]>
@jk-ozlabs jk-ozlabs merged commit 36e5eca into CodeConstruct:main Aug 5, 2025
2 checks passed
@jk-ozlabs jk-ozlabs deleted the pr/mctp-h-fix branch August 5, 2025 01:34
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.

mctp: getting build error when linux/mctp.h is not available,
1 participant