Skip to content

Adjust kernel extension code setting up StructInitInfo#1193

Merged
james-d-mitchell merged 1 commit into
semigroups:mainfrom
fingolfin:mh/StructInitInfo
May 19, 2026
Merged

Adjust kernel extension code setting up StructInitInfo#1193
james-d-mitchell merged 1 commit into
semigroups:mainfrom
fingolfin:mh/StructInitInfo

Conversation

@fingolfin
Copy link
Copy Markdown
Contributor

Currently GAP's StructInitInfo struct type contains several
obsolete fields which cannot be removed or replaced because of
kernel extensions relying on the specific layout of this struct.

This patch removes this reliance for this package and thus gets
us one step closer to eventually allowing such a refactoring of
the struct in the GAP kernel.

The technique employed here used to work only in C, but at least
locally it works for me in this C++ code base, too. Not sure if
that is due to enhancements in newer C++ standards, or a non-portable
compiler extension, or something else...

@james-d-mitchell
Copy link
Copy Markdown
Collaborator

Seemed to pass the CI here too, so hopefully safe to merge this? Took the liberty of reformatting, thanks @fingolfin

Currently GAP's `StructInitInfo` struct type contains several
obsolete fields which cannot be removed or replaced because of
kernel extensions relying on the specific layout of this struct.

This patch removes this reliance for this package and thus gets
us one step closer to eventually allowing such a refactoring of
the struct in the GAP kernel.

The technique employed here used to work only in C, but at least
locally it works for me in this C++ code base, too. Not sure if
that is due to enhancements in newer C++ standards, or a non-portable
compiler extension, or something else...
@fingolfin fingolfin force-pushed the mh/StructInitInfo branch from d2471bf to 61400cf Compare May 19, 2026 12:38
@fingolfin
Copy link
Copy Markdown
Contributor Author

Happy about formatting changes, do as you like! It still failed, though. I've run clang-format locally again and pushed the result, but I don't think that made it happy -- perhaps due to different clang-format versions formatting different (mine is 22.1.3).

After installing llvm@15 and using its clang-format, hopefully all is well now...

@james-d-mitchell james-d-mitchell merged commit 0c9ad43 into semigroups:main May 19, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants