Skip to content

Commit

Permalink
Merge branch 'bnx2x-Remove-function-casts'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Nov 16, 2019
2 parents 2e47cb4 + 548e5ff commit f92e88d
Show file tree
Hide file tree
Showing 2 changed files with 171 additions and 186 deletions.
Loading

0 comments on commit f92e88d

Please sign in to comment.