From: Alexei Starovoitov Date: Tue, 28 Sep 2021 23:27:18 +0000 (-0700) Subject: Merge branch 'bpf: Build with -Wcast-function-type' X-Git-Tag: v5.16-rc1~159^2~303^2~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=72e1781a5de9e3ee804e24f7ce9a7dd85596fc51;p=thirdparty%2Fkernel%2Flinux.git Merge branch 'bpf: Build with -Wcast-function-type' Kees Cook says: ==================== Hi, In order to keep ahead of cases in the kernel where Control Flow Integrity (CFI) may trip over function call casts, enabling -Wcast-function-type is helpful. To that end, replace BPF_CAST_CALL() as it triggers warnings with this option and is now one of the last places in the kernel in need of fixing. Thanks, -Kees v2: - rebase to bpf-next - add acks v1: https://lore.kernel.org/lkml/20210927182700.2980499-1-keescook@chromium.org ==================== Signed-off-by: Alexei Starovoitov --- 72e1781a5de9e3ee804e24f7ce9a7dd85596fc51