Skip to contentSkip to conversation

EDAC, thunderx: Make some symbols static

PATCH Applied Zou Wei 2 participants 2 messages Apr 23, 2020

Subsystems (2)
lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 EDAC, thunderx: Make some symbols static

Fix the following sparse warning:

drivers/edac/thunderx_edac.c:1281:22: warning: symbol 'ocx_dfs_ents' was not declared. Should it be static? drivers/edac/thunderx_edac.c:1922:22: warning: symbol 'l2c_tad_dfs_ents' was not declared. Should it be static? drivers/edac/thunderx_edac.c:1928:22: warning: symbol 'l2c_cbc_dfs_ents' was not declared. Should it be static? drivers/edac/thunderx_edac.c:1934:22: warning: symbol 'l2c_mci_dfs_ents' was not declared. Should it be static?

---
 drivers/edac/thunderx_edac.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/edac/thunderx_edac.c +4 -4
index 34be60f..4af9744 100644
@@ -1278,7 +1278,7 @@ OCX_DEBUGFS_ATTR(lne23_badcnt, OCX_LNE_BAD_CNT(23));
 
 OCX_DEBUGFS_ATTR(com_int, OCX_COM_INT_W1S);
 
-struct debugfs_entry *ocx_dfs_ents[] = {
+static struct debugfs_entry *ocx_dfs_ents[] = {
 	&debugfs_tlk0_ecc_ctl,
 	&debugfs_tlk1_ecc_ctl,
 	&debugfs_tlk2_ecc_ctl,
@@ -1919,19 +1919,19 @@ static irqreturn_t thunderx_l2c_threaded_isr(int irq, void *irq_id)
 
 L2C_DEBUGFS_ATTR(tad_int, L2C_TAD_INT_W1S);
 
-struct debugfs_entry *l2c_tad_dfs_ents[] = {
+static struct debugfs_entry *l2c_tad_dfs_ents[] = {
 	&debugfs_tad_int,
 };
 
 L2C_DEBUGFS_ATTR(cbc_int, L2C_CBC_INT_W1S);
 
-struct debugfs_entry *l2c_cbc_dfs_ents[] = {
+static struct debugfs_entry *l2c_cbc_dfs_ents[] = {
 	&debugfs_cbc_int,
 };
 
 L2C_DEBUGFS_ATTR(mci_int, L2C_MCI_INT_W1S);
 
-struct debugfs_entry *l2c_mci_dfs_ents[] = {
+static struct debugfs_entry *l2c_mci_dfs_ents[] = {
 	&debugfs_mci_int,
 };
 
Signature · 1 line
2.6.2
maintainer Applied
#1 lore raw
Quoted 11 lines · Zou Wei

Fix the following sparse warning:

drivers/edac/thunderx_edac.c:1281:22: warning: symbol 'ocx_dfs_ents' was not declared. Should it be static? drivers/edac/thunderx_edac.c:1922:22: warning: symbol 'l2c_tad_dfs_ents' was not declared. Should it be static? drivers/edac/thunderx_edac.c:1928:22: warning: symbol 'l2c_cbc_dfs_ents' was not declared. Should it be static? drivers/edac/thunderx_edac.c:1934:22: warning: symbol 'l2c_mci_dfs_ents' was not declared. Should it be static?

Quoted 5 lines
---
 drivers/edac/thunderx_edac.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Applied, thanks.

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette