-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
allow CONFIG_TRIM_UNUSED_KSYM to be enabled when build as a builtin-module #8820
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8820 +/- ##
==========================================
+ Coverage 78.73% 78.77% +0.04%
==========================================
Files 382 382
Lines 117812 117812
==========================================
+ Hits 92758 92812 +54
+ Misses 25054 25000 -54
Continue to review full report at Codecov.
|
If ZFS is built with enable_linux_builtin, it seems to be possible to compile the kernel with TRIM_UNUSED_KSYM. Signed-off-by: Torsten Wörtwein <twoertwein@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, adding a buildin exclusion makes good sense. By definition when building with the rest of the kernel nothing should have been trimmed yet. Could you just verify from the config.log
that the HAVE_PDE_DATA
check in config/kernel-pde-data.m4
is working correctly. According to the commit which introduce this check 4b9dddf it's the reason this was required.
I assume this is the relevant part of
it seems to be happy :) |
it would probably be good to extend the automated built-in test-case (simply duplicate it but have |
Looks good. Yes, I think it would be good to follow up with a tweak to the CI to define |
If ZFS is built with enable_linux_builtin, it seems to be possible to compile the kernel with TRIM_UNUSED_KSYM. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Torsten Wörtwein <twoertwein@gmail.com> Closes #8820
Motivation and Context
When ZFS is built into the kernel, ZFS seems to work perfectly fine even when unused kernel symbols are removed.
Description
This patch allows
CONFIG_TRIM_UNUSED_KSYM
whenenable_linux_builtin
is used.How Has This Been Tested?
Compiled 0.8.0 with this patch and used zfs (Archlinux, linux-lts).
Types of changes
Checklist:
Signed-off-by
.