Skip to content

Add padding for Linux kernel 6.8+ compatibility - #49

Merged
colemancda merged 1 commit into
PureSwift:masterfrom
the-braveknight:master
Jul 29, 2025
Merged

colemancda merged 1 commit into
PureSwift:masterfrom
the-braveknight:master

Conversation

@the-braveknight

Copy link
Copy Markdown
Contributor

Fix

Add padding for Linux kernel 6.8+ compatibility

Summary

Adds explicit padding to ensure struct alignment compatibility with Linux kernel 6.8+.

Problem

The struct was naturally 14 bytes but Linux kernel 6.8+ expects 16 bytes, causing potential alignment issues and compatibility problems.

Solution

  • Added explicit _padding field (UInt16) to CInterop.swift:576
  • Ensures the struct meets the 16-byte size requirement expected by newer kernel versions
  • Maintains backward compatibility with older kernel versions

@colemancda
colemancda self-requested a review July 29, 2025 22:25
@colemancda
colemancda merged commit 077f9d3 into PureSwift:master Jul 29, 2025
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