]> git.baikalelectronics.ru Git - kernel.git/commitdiff
IB/rxe: Make rxe_counter_name static
authorKamal Heib <kamalh@mellanox.com>
Thu, 17 Aug 2017 12:50:52 +0000 (15:50 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Aug 2017 20:44:48 +0000 (16:44 -0400)
rxe_counter_name is used in rxe_hw_counters.c only. Make it static.

Fixes: 0b1e5b99a48b ('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>
drivers/infiniband/sw/rxe/rxe_hw_counters.c

index 7ef90aad7dfd29e214cab5265ad7b3daae57381c..6aeb7a165e46919c1c3651d72776fd05f03173b1 100644 (file)
@@ -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",