Skip to content

Commit

Permalink
IB/rxe: Make rxe_counter_name static
Browse files Browse the repository at this point in the history
rxe_counter_name is used in rxe_hw_counters.c only. Make it static.

Fixes: 0b1e5b9 ('IB/rxe: Add port protocol stats')
Signed-off-by: Kamal Heib <kamalh@mellanox.com>
Reviewed-by: Yonatan Cohen <yonatanc@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Kamal Heib authored and Doug Ledford committed Aug 24, 2017
1 parent 69956d8 commit fab773c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/sw/rxe/rxe_hw_counters.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "rxe.h"
#include "rxe_hw_counters.h"

const char * const rxe_counter_name[] = {
static const char * const rxe_counter_name[] = {
[RXE_CNT_SENT_PKTS] = "sent_pkts",
[RXE_CNT_RCVD_PKTS] = "rcvd_pkts",
[RXE_CNT_DUP_REQ] = "duplicate_request",
Expand Down

0 comments on commit fab773c

Please sign in to comment.