-
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
config/kernel-inode-times: initialize timespec #10281
Conversation
Usage of this variable uninitialized triggers -Werror,-Wuninitialized when compiled under clang for linux kernel 5.6, leading the build system to believe that the function is not declared. This commit initalizes the variable to suppress the warning and fix the build for kernel 5.6 with clang. Fixes openzfs#10279 Signed-off-by: Hiếu Lê <leorize+oss@disroot.org>
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.
confirmed working on Fedora 31,
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 31 (Thirty One)
Release: 31
Codename: ThirtyOne
Linux localhost.localdomain 5.6.7-200.fc31.x86_64 #1 SMP Thu Apr 23 14:22:57 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Codecov Report
@@ Coverage Diff @@
## master #10281 +/- ##
==========================================
- Coverage 79.52% 79.48% -0.04%
==========================================
Files 389 389
Lines 123120 123120
==========================================
- Hits 97906 97868 -38
- Misses 25214 25252 +38
Continue to review full report at Codecov.
|
Usage of this variable uninitialized triggers -Werror,-Wuninitialized when compiled under clang for linux kernel 5.6, leading the build system to believe that the function is not declared. This commit initializes the variable to suppress the warning and fix the build for kernel 5.6 with clang. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Hiếu Lê <leorize+oss@disroot.org> Closes openzfs#10279 Closes openzfs#10281 (cherry picked from commit 3e5d41d)
Usage of this variable uninitialized triggers -Werror,-Wuninitialized when compiled under clang for linux kernel 5.6, leading the build system to believe that the function is not declared. This commit initializes the variable to suppress the warning and fix the build for kernel 5.6 with clang. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Hiếu Lê <leorize+oss@disroot.org> Closes openzfs#10279 Closes openzfs#10281
Motivation and Context
Usage of the uninitalized
timespec64
triggers-Werror,-Wuninitialized
when compiled under clang for linux kernel 5.6, leading the build system
to believe that the function is not declared. This in turn breaks the build.
See #10279
Description
Initializes the said variable to suppress the warning.
How Has This Been Tested?
Tested on my own system.
Types of changes
Checklist:
Signed-off-by
.