HomeFreeBSD

Silence objtool warnings from 55d7afa4

Description

Silence objtool warnings from 55d7afa4

The use of noreturn in 55d7afa4adbb4ca569e9c4477a7d121f4dc0bfbd on
spl_panic() caused objtool warnings on Linux when the kernel is built
with CONFIG_STACK_VALIDATION=y. This patch works around that by
restricting the application of noreturn to builds for static
analyzers.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14068

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Oct 26 2022, 9:57 PM
GitHub <noreply@github.com>Committed on Oct 26 2022, 9:57 PM
Parents
rG871d66dbf2be: Linux 6.0 compat: META
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGeeddd8057289: Silence objtool warnings from 55d7afa4 (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Oct 26 2022, 9:57 PM