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>
Showing
- include/net/request_sock.h 3 additions, 2 deletionsinclude/net/request_sock.h
- net/appletalk/ddp.c 2 additions, 2 deletionsnet/appletalk/ddp.c
- net/core/datagram.c 4 additions, 4 deletionsnet/core/datagram.c
- net/core/dev.c 5 additions, 5 deletionsnet/core/dev.c
- net/core/request_sock.c 1 addition, 1 deletionnet/core/request_sock.c
- net/core/skbuff.c 10 additions, 10 deletionsnet/core/skbuff.c
- net/core/stream.c 3 additions, 3 deletionsnet/core/stream.c
- net/core/user_dma.c 2 additions, 3 deletionsnet/core/user_dma.c
- net/dccp/dccp.h 1 addition, 1 deletionnet/dccp/dccp.h
- net/dccp/input.c 1 addition, 1 deletionnet/dccp/input.c
- net/dccp/ipv4.c 1 addition, 1 deletionnet/dccp/ipv4.c
- net/dccp/ipv6.c 1 addition, 1 deletionnet/dccp/ipv6.c
- net/dccp/proto.c 2 additions, 2 deletionsnet/dccp/proto.c
- net/dccp/timer.c 1 addition, 1 deletionnet/dccp/timer.c
- net/ipv4/af_inet.c 7 additions, 7 deletionsnet/ipv4/af_inet.c
- net/ipv4/devinet.c 3 additions, 3 deletionsnet/ipv4/devinet.c
- net/ipv4/inet_connection_sock.c 9 additions, 9 deletionsnet/ipv4/inet_connection_sock.c
- net/ipv4/inet_fragment.c 2 additions, 2 deletionsnet/ipv4/inet_fragment.c
- net/ipv4/inet_hashtables.c 4 additions, 4 deletionsnet/ipv4/inet_hashtables.c
- net/ipv4/inet_timewait_sock.c 1 addition, 1 deletionnet/ipv4/inet_timewait_sock.c
Loading
Please register or sign in to comment