HomeFreeBSD

Linux: Suppress -Wordered-compare-function-pointers in tracepoint code

Description

Linux: Suppress -Wordered-compare-function-pointers in tracepoint code

Clang points out that there is a comparison against -1, but we cannot
fix it because that is from the kernel headers, which we must support.
We can workaround this by using a pragma.

Sponsored-By: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Youzhong Yang <yyang@mathworks.com>
Signed-off-by: Richard Yao <richard.yao@klarasystems.com>
Closes #14738

Details

Provenance
Richard Yao <richard.yao@klarasystems.com>Authored on Apr 11 2023, 5:56 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 20 2023, 5:31 PM
Parents
rGab71b24d20df: Linux: zfs_zaccess_trivial() should always call generic_permission()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG135d9a9048e3: Linux: Suppress -Wordered-compare-function-pointers in tracepoint code (authored by Richard Yao <richard.yao@klarasystems.com>).Apr 20 2023, 5:31 PM