Skip to content

Commit 69fc7ba

Browse files
committed
bnx2x: Provide declaration of dmae_reg_go_c in header
JIRA: https://issues.redhat.com/browse/RHEL-52258 JIRA: https://issues.redhat.com/browse/RHEL-52667 commit a390368 Author: Simon Horman <horms@kernel.org> Date: Tue Aug 6 11:56:01 2024 +0100 bnx2x: Provide declaration of dmae_reg_go_c in header Provide declaration of dmae_reg_go_c in header. This symbol is defined in bnx2x_main.c. And used in that file and bnx2x_stats.c. However, Sparse complains that there is no declaration of the symbol in dmae_reg_go_c nor is the symbol static. .../bnx2x_main.c:291:11: warning: symbol 'dmae_reg_go_c' was not declared. Should it be static? Address this by moving the declaration from bnx2x_stats.c to bnx2x_reg.h. No functional change intended. Compile tested only. Signed-off-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20240806-bnx2x-dec-v1-1-ae844ec785e4@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
1 parent 53cc93b commit 69fc7ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,8 @@
868868
#define DORQ_REG_VF_TYPE_VALUE_0 0x170258
869869
#define DORQ_REG_VF_USAGE_CT_LIMIT 0x170340
870870

871+
extern const u32 dmae_reg_go_c[];
872+
871873
/* [RW 4] Initial activity counter value on the load request; when the
872874
shortcut is done. */
873875
#define DORQ_REG_SHRT_ACT_CNT 0x170070

drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
#include "bnx2x_cmn.h"
2424
#include "bnx2x_sriov.h"
2525

26-
extern const u32 dmae_reg_go_c[];
27-
2826
/* Statistics */
2927

3028
/*

0 commit comments

Comments
 (0)