net: convert BUG_TRAP to generic WARN_ON
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Sat, 26 Jul 2008 04:43:18 +0000 (21:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jul 2008 04:43:18 +0000 (21:43 -0700)
commit547b792cac0a038b9dbf958d3c120df3740b5572
tree08554d083b0ca7d65739dc1ce12f9b12a9b8e1f8
parent53e5e96ec18da6f65e89f05674711e1c93d8df67
net: convert BUG_TRAP to generic WARN_ON

Removes legacy reinvent-the-wheel type thing. The generic
machinery integrates much better to automated debugging aids
such as kerneloops.org (and others), and is unambiguous due to
better naming. Non-intuively BUG_TRAP() is actually equal to
WARN_ON() rather than BUG_ON() though some might actually be
promoted to BUG_ON() but I left that to future.

I could make at least one BUILD_BUG_ON conversion.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
51 files changed:
include/net/request_sock.h
net/appletalk/ddp.c
net/core/datagram.c
net/core/dev.c
net/core/request_sock.c
net/core/skbuff.c
net/core/stream.c
net/core/user_dma.c
net/dccp/dccp.h
net/dccp/input.c
net/dccp/ipv4.c
net/dccp/ipv6.c
net/dccp/proto.c
net/dccp/timer.c
net/ipv4/af_inet.c
net/ipv4/devinet.c
net/ipv4/inet_connection_sock.c
net/ipv4/inet_fragment.c
net/ipv4/inet_hashtables.c
net/ipv4/inet_timewait_sock.c
net/ipv4/ip_fragment.c
net/ipv4/ip_output.c
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_timer.c
net/ipv6/addrconf.c
net/ipv6/af_inet6.c
net/ipv6/inet6_connection_sock.c
net/ipv6/inet6_hashtables.c
net/ipv6/ip6_fib.c
net/ipv6/ip6_output.c
net/ipv6/mip6.c
net/ipv6/netfilter/nf_conntrack_reasm.c
net/ipv6/reassembly.c
net/ipv6/tcp_ipv6.c
net/key/af_key.c
net/netlink/af_netlink.c
net/packet/af_packet.c
net/rxrpc/af_rxrpc.c
net/sched/act_api.c
net/sched/act_police.c
net/sched/cls_u32.c
net/sched/sch_cbq.c
net/sched/sch_generic.c
net/sched/sch_htb.c
net/sctp/associola.c
net/unix/af_unix.c
net/xfrm/xfrm_algo.c
net/xfrm/xfrm_ipcomp.c
net/xfrm/xfrm_state.c