diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-06-03 12:11:16 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-06-06 19:37:23 -0400 |
commit | 55c40648d31d0d97608f266955b8afae74e2b686 (patch) | |
tree | 607f89a033b35327c506977dedeed000353fcd4b /drivers/infiniband/hw/hfi1/trace.c | |
parent | d55215c50e4eaa4b906a42ef45884d8fcbadc777 (diff) | |
download | linux-55c40648d31d0d97608f266955b8afae74e2b686.tar.bz2 |
IB/hfi1: Suppress sparse warnings
Avoid that sparse reports the following warnings for the hfi1 driver:
trace.c:217:13: warning: no previous prototype for ‘print_u64_array’ [-Wmissing-prototypes]
user_sdma.c:1361:17: warning: dubious: !x & y
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Mike Marciniszyn <mike.marciniszyn@intel.com>
Cc: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/trace.c')
-rw-r--r-- | drivers/infiniband/hw/hfi1/trace.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/infiniband/hw/hfi1/trace.c b/drivers/infiniband/hw/hfi1/trace.c index 79b2952c0dfb..4cfb13771897 100644 --- a/drivers/infiniband/hw/hfi1/trace.c +++ b/drivers/infiniband/hw/hfi1/trace.c @@ -214,19 +214,6 @@ const char *print_u32_array( return ret; } -const char *print_u64_array( - struct trace_seq *p, - u64 *arr, int len) -{ - int i; - const char *ret = trace_seq_buffer_ptr(p); - - for (i = 0; i < len; i++) - trace_seq_printf(p, "%s0x%016llx", i == 0 ? "" : " ", arr[i]); - trace_seq_putc(p, 0); - return ret; -} - __hfi1_trace_fn(PKT); __hfi1_trace_fn(PROC); __hfi1_trace_fn(SDMA); |