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
drivers/infiniband/hw/qib/qib_sysfs.c:413:1: error: static_assert expression is not an integral constant expression #1452
Comments
|
I am guessing the |
|
Should this be changed to |
|
I'll test it to see if it fixes it. |
|
Ah, |
|
I don't understand the check; they're testing the offset of a member isn't 0? Sounds like they should be using offset of, not pointer comparisons. |
|
They do use |
|
Upstream thread: https://lore.kernel.org/llvm/20210913165317.GX2505917@nvidia.com/. |
|
I can confirm this issue with |
|
We have a solution pending: https://lore.kernel.org/r/0-v1-1b789bd4dbd4+14b16-clang-fix_jgg@nvidia.com/ |
|
Thanks. |
|
Patch is in [1] https://git.kernel.org/rdma/rdma/c/1b789bd4dbd48a92f5427d9c37a72a8f6ca17754 Update 2021-09-23: Commit-ID changed in [1] https://git.kernel.org/rdma/rdma/c/3110b942d36b961858664486d72f815d78c956c3 |
Clang can't seem to build this driver in the 5.15-rc1 release, so disable it until either the kernel code is changed, or the compiler is fixed up. Full discussion upstream can be found at: https://lore.kernel.org/r/202109112002.NZceUwiC-lkp@intel.com and at: ClangBuiltLinux/linux#1452 Fixes: 6880fa6 ("Linux 5.15-rc1") Cc: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I5d55f40ce5b783d1212e6c649eb6c7799c6be100
|
Now in Linus Git. [1] https://git.kernel.org/linus/3110b942d36b961858664486d72f815d78c956c3 |
nathanchance commentedSep 9, 2021
After https://git.kernel.org/linus/84f969e1c48ed3825986e91a0786e363d57f69d1, which is now in mainline:
GCC back to at least 7.5.0 has no issues with this construct.
The text was updated successfully, but these errors were encountered: