]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: move device dump arrays in header to C file
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Tue, 23 Jun 2020 20:33:23 +0000 (02:03 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 03:55:44 +0000 (20:55 -0700)
commit03f8f6bc59cdb1d83dab1b623608626859313e21
treee68d8c00936468d49b214e9a435b57fd4bc0d1bc
parent27ef1b87424cc88c1f50d9ac7cb90af31b387208
cxgb4: move device dump arrays in header to C file

Move all arrays related to device dump in header file to C file.
Also, move the function that shares the arrays to the same C file.

Fixes following warnings reported by make W=1 in several places:
cudbg_entity.h:513:18: warning: 't6_hma_ireg_array' defined but not
used [-Wunused-const-variable=]
  513 | static const u32 t6_hma_ireg_array[][IREG_NUM_ELEM] = {

Fixes: 44d42b53a8c3 ("cxgb4: collect register dump")
Fixes: 370933ae6a0d ("cxgb4: add support to read serial flash")
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cudbg_entity.h
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c