]> git.baikalelectronics.ru Git - kernel.git/commit
Makefile: Enable -Wcast-function-type
authorGustavo A. R. Silva <gustavoars@kernel.org>
Wed, 29 Sep 2021 21:18:03 +0000 (16:18 -0500)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 15 Nov 2021 19:45:12 +0000 (13:45 -0600)
commitcc44cb1d052a33439ddf96e53b105b76a3080d91
treedb0e4f87053ea2101e57f9bdeed517dfda69a7e1
parent40a9af63ae9ec42386d6c40b14f92fb56557c9a8
Makefile: Enable -Wcast-function-type

In order to make sure new function cast mismatches are not introduced
in the kernel (to avoid tripping CFI checking), the kernel should be
globally built with -Wcast-function-type.

Link: https://github.com/KSPP/linux/issues/20
Co-developed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Makefile