]> git.baikalelectronics.ru Git - kernel.git/commit
net: sctp: add build check for sctp_sf_eat_sack_6_2/jsctp_sf_eat_sack
authorDaniel Borkmann <dborkman@redhat.com>
Wed, 13 Feb 2013 01:03:50 +0000 (01:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Feb 2013 19:07:14 +0000 (14:07 -0500)
commitee15426158c514301fa2617ab06a30a0b958dcd8
tree969feca003eb973f6b2ac5fc9e4a7eafc058372c
parentc4bf9c1298c5417942dedf23a7c2568dc55f7bb4
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 bcfd75eb895f03: 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>
net/sctp/probe.c