Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Fix build on kernel 4.13 onwards #654

Closed

Conversation

fahadsadah
Copy link

@fahadsadah fahadsadah commented Oct 4, 2017

Build fails on kernels 4.13 onwards, which enable struct randomisation (torvalds/linux@3859a27) invalidating positional struct accesses

The spl-proc.c file has a couple of positional struct accesses, removed in v0.7. This PR cherry-picks commit 120faef into the spl-0.6.5-release branch to remove them here too and fix the build :)

When building SPL within the kernel tree, C99 initializers cause
build failures and need to be converted to C89 as kernel CFLAGS
specify -std=gnu89.

This fix was provided by @behlendorf in openzfs#595 discussion notes and
manually implemented in the current master revision.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: RageLtMan <rageltman@sempervictus>
Closes openzfs#597
@behlendorf
Copy link
Contributor

@fahadsadah thanks for identifying and porting this fix. However, since we do not plan on tagging any new 0.6.5.x releases, and the fix is already in the 0.7.x series, I'm going to close this PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants