]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bnx2x-Remove-function-casts'
authorDavid S. Miller <davem@davemloft.net>
Sat, 16 Nov 2019 20:50:57 +0000 (12:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Nov 2019 20:50:57 +0000 (12:50 -0800)
commita82043891544a913c23554ccf67345189c856930
tree2ba5684d5f36d57577a27236adcbbd0ca3ebb1d5
parentd53301b5c0d2f4fa92fc84974372a49bbd4f8f45
parente3934f7f3476ecb005a816c72ac29a3fee30e514
Merge branch 'bnx2x-Remove-function-casts'

Kees Cook says:

====================
bnx2x: Remove function casts

In order to make the entire kernel usable under Clang's Control Flow
Integrity protections, function prototype casts need to be avoided
because this will trip CFI checks at runtime (i.e. a mismatch between
the caller's expected function prototype and the destination function's
prototype). Many of these cases can be found with -Wcast-function-type,
which found that bnx2x had a bunch of needless (or at least confusing)
function casts. This series removes them all.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>