-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
commit 42aaf0e7c4b9cf0fe9c18d218f291f12dd5b26a2 breaks the FreeBSD build #12984
Comments
@nabijaczleweli mind taking a look at this, it appears 42aaf0e introduced a build issue. |
sizeof(bitfield.member) is invalid: work around this Fixes: 42aaf0e ("libspl: ASSERT*: mark arguments as used") Closes: openzfs#12984 Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
sizeof(bitfield.member) is invalid, and this shows up in some FreeBSD build configurations: work around this Fixes: 42aaf0e ("libspl: ASSERT*: mark arguments as used") Closes: openzfs#12984 Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
sizeof(bitfield.member) is invalid, and this shows up in some FreeBSD build configurations: work around this by +0ing ‒ this takes the size of the arithmetic result type, instead Fixes: 42aaf0e ("libspl: ASSERT*: mark arguments as used") Closes: openzfs#12984 Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
sizeof(bitfield.member) is invalid, and this shows up in some FreeBSD build configurations: work around this by +0ing ‒ this takes the size of the arithmetic result type, instead Fixes: 42aaf0e ("libspl: ASSERT*: mark arguments as used") Closes: openzfs#12984 Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
I get this now:
If I parenthesize the macro parameters, I later get:
|
sizeof(bitfield.member) is invalid, and this shows up in some FreeBSD build configurations: work around this by !!ing ‒ this makes the sizeof target the ! result type (_Bool), instead Fixes: 42aaf0e ("libspl: ASSERT*: mark arguments as used") Closes: openzfs#12984 Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Hm. Yeah, you can't do pointer arithmetic on pointers-to-incomplete, I guess. I'm, like, almost out of ideas before "dont pass bitfields to asserts". That being said, doing |
Thanks, builds fine now. |
sizeof(bitfield.member) is invalid, and this shows up in some FreeBSD build configurations: work around this by !!ing ‒ this makes the sizeof target the ! result type (_Bool), instead Fixes: 42aaf0e ("libspl: ASSERT*: mark arguments as used") Closes: openzfs#12984 Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
sizeof(bitfield.member) is invalid, and this shows up in some FreeBSD build configurations: work around this by !!ing ‒ this makes the sizeof target the ! result type (_Bool), instead Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Fixes: 42aaf0e ("libspl: ASSERT*: mark arguments as used") Closes openzfs#12984 Closes openzfs#12986
sizeof(bitfield.member) is invalid, and this shows up in some FreeBSD build configurations: work around this by !!ing ‒ this makes the sizeof target the ! result type (_Bool), instead Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Fixes: 42aaf0e ("libspl: ASSERT*: mark arguments as used") Closes openzfs#12984 Closes openzfs#12986
System information
Describe the problem you're observing
The kernel module build fails for me when using the system compiler (clang 13.0).
Describe how to reproduce the problem
Build OpenZFS without debugging enabled on FreeBSD-CURRENT. I'm not sure if this is a problem with other compilers.
The text was updated successfully, but these errors were encountered: