-
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
Clang warnings during complilation of 2.3.0-rc2 with 6.11.3 #16660
Labels
Type: Defect
Incorrect behavior (e.g. crash, hang)
Comments
AFAIK Linux starts to use |
kusumi
added a commit
to kusumi/zfs
that referenced
this issue
Oct 19, 2024
Some compiler/versions warn these typedefs according to openzfs#16660. The platform specific header sys/abd_os.h shouldn't define or use abd_t, as it's defined in its non-platform specific consumer sys/abd.h. Do the same as what FreeBSD header does. Signed-off-by: Tomohiro Kusumi <[email protected]>
kusumi
added a commit
to kusumi/zfs
that referenced
this issue
Oct 19, 2024
Some compiler/versions warn these typedefs according to openzfs#16660. The platform specific header sys/abd_os.h shouldn't define or use abd_t, as it's defined in its non-platform specific consumer sys/abd.h. Do the same as what FreeBSD header does. Closes: openzfs#16660 Signed-off-by: Tomohiro Kusumi <[email protected]>
13 tasks
kusumi
added a commit
to kusumi/zfs
that referenced
this issue
Oct 19, 2024
Some compiler/versions warn these typedefs according to openzfs#16660. The platform specific header sys/abd_os.h shouldn't define or use abd_t, as it's defined in its non-platform specific consumer sys/abd.h. Do the same as what FreeBSD header does. Signed-off-by: Tomohiro Kusumi <[email protected]>
behlendorf
pushed a commit
to behlendorf/zfs
that referenced
this issue
Oct 21, 2024
Some compiler/versions warn these typedefs according to openzfs#16660. The platform specific header sys/abd_os.h shouldn't define or use abd_t, as it's defined in its non-platform specific consumer sys/abd.h. Do the same as what FreeBSD header does. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tomohiro Kusumi <[email protected]> Closes openzfs#16660 Closes openzfs#16665
behlendorf
pushed a commit
to behlendorf/zfs
that referenced
this issue
Oct 21, 2024
Some compiler/versions warn these typedefs according to openzfs#16660. The platform specific header sys/abd_os.h shouldn't define or use abd_t, as it's defined in its non-platform specific consumer sys/abd.h. Do the same as what FreeBSD header does. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tomohiro Kusumi <[email protected]> Closes openzfs#16660 Closes openzfs#16665
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System information
Describe the problem you're observing
When building the linux kernel using clang and with zfs bult-in, there are many warnings relating to type redefinitions and casts. These don't cause build errors, everything functions fine, but kernel builds are best when they are quiet.
Include any warning/errors/backtraces from the system logs
These patterns of type redefinition involving kstat_t and abd_t appear in many files, one example:
This pattern of casting appears in many files, one example:
The text was updated successfully, but these errors were encountered: