#undef TRACE_SYSTEM #define TRACE_SYSTEM cpuhp #if !defined(_TRACE_CPUHP_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_CPUHP_H #include TRACE_EVENT(cpuhp_enter, TP_PROTO(unsigned int cpu, int target, int idx, int (*fun)(unsigned int)), TP_ARGS(cpu, target, idx, fun), TP_STRUCT__entry( __field( unsigned int, cpu ) __field( int, target ) __field( int, idx ) __field( void *, fun ) ), TP_fast_assign( __entry->cpu = cpu; __entry->target = target; __entry->idx = idx; __entry->fun = fun; ), TP_printk("cpu: %04u target: %3d step: %3d (%pf)", __entry->cpu, __entry->target, __entry->idx, __entry->fun) ); TRACE_EVENT(cpuhp_multi_enter, TP_PROTO(unsigned int cpu, int target, int idx, int (*fun)(unsigned int, struct hlist_node *), struct hlist_node *node), TP_ARGS(cpu, target, idx, fun, node), TP_STRUCT__entry( __field( unsigned int, cpu ) __field( int, target ) __field( int, idx ) __field( void *, fun ) ), TP_fast_assign( __entry->cpu = cpu; __entry->target = target; __entry->idx = idx; __entry->fun = fun; ), TP_printk("cpu: %04u target: %3d step: %3d (%pf)", __entry->cpu, __entry->target, __entry->idx, __entry->fun) ); TRACE_EVENT(cpuhp_exit, TP_PROTO(unsigned int cpu, int state, int idx, int ret), TP_ARGS(cpu, state, idx, ret), TP_STRUCT__entry( __field( unsigned int, cpu ) __field( int, state ) __field( int, idx ) __field( int, ret ) ), TP_fast_assign( __entry->cpu = cpu; __entry->state = state; __entry->idx = idx; __entry->ret = ret; ), TP_printk(" cpu: %04u state: %3d step: %3d ret: %d", __entry->cpu, __entry->state, __entry->idx, __entry->ret) ); #endif /* This part must be outside protection */ #include 9b61f1f09a11dae01c'>treecommitdiff
diff options
context:
space:
mode:
authorVincent <vincent.stehle@laposte.net>2017-01-30 15:06:43 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-31 13:07:40 -0500
commitc73e44269369e936165f0f9b61f1f09a11dae01c (patch)
treee2188e900ba06302f8ed2746cb07edd3efbc5c35 /net/rds/threads.c
parent040587af31228d82c52267f717c9fcdb65f36335 (diff)
net: thunderx: avoid dereferencing xcv when NULL
This fixes the following smatch and coccinelle warnings: drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119 xcv_setup_link() error: we previously assumed 'xcv' could be null (see line 118) [smatch] drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119:16-20: ERROR: xcv is NULL but dereferenced. [coccinelle] Fixes: 6465859aba1e66a5 ("net: thunderx: Add RGMII interface type support") Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> Cc: Sunil Goutham <sgoutham@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/threads.c')