diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-02-13 02:03:50 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-13 20:07:14 +0100 |
commit | 222229974824a4f30b417531cdc9b5b869d6a6b7 (patch) | |
tree | 969feca003eb973f6b2ac5fc9e4a7eafc058372c /net/sctp/chunk.c | |
parent | net: sctp: minor: make jsctp_sf_eat_sack static (diff) | |
download | linux-222229974824a4f30b417531cdc9b5b869d6a6b7.tar.xz linux-222229974824a4f30b417531cdc9b5b869d6a6b7.zip |
net: sctp: add build check for sctp_sf_eat_sack_6_2/jsctp_sf_eat_sack
In order to avoid any future surprises of kernel panics due to jprobes
function mismatches (as e.g. fixed in 4cb9d6eaf85ecd: sctp: jsctp_sf_eat_sack:
fix jprobes function signature mismatch), we should check both function
types during build and scream loudly if they do not match. __same_type
resolves to __builtin_types_compatible_p, which is 1 in case both types
are the same and 0 otherwise, qualifiers are ignored. Tested by myself.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/chunk.c')
0 files changed, 0 insertions, 0 deletions