summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>2023-03-23 12:28:54 +0900
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2023-03-28 09:28:06 +0900
commit140b26035b2d379d94e6e3936ab2e0adf94efe46 (patch)
tree63ca9ce888b8217ef78e997c011f1976c0bfd6b8 /drivers
parent919c119415c7b67056449f51374939d49189a326 (diff)
downloadlwn-140b26035b2d379d94e6e3936ab2e0adf94efe46.tar.gz
lwn-140b26035b2d379d94e6e3936ab2e0adf94efe46.zip
ata: pata_parport-bpck6: Declare mode_map as static
Compilation C=1 of the bpck6 protocol module generates the following message: drivers/ata/pata_parport/bpck6.c:62:5: warning: symbol 'mode_map' was not declared. Should it be static? Fix this by declaring mode_map as static. Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: Ondrej Zary <linux@zary.sk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/pata_parport/bpck6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_parport/bpck6.c b/drivers/ata/pata_parport/bpck6.c
index 295dbe5cdaa4..76febd07a9bb 100644
--- a/drivers/ata/pata_parport/bpck6.c
+++ b/drivers/ata/pata_parport/bpck6.c
@@ -59,8 +59,8 @@
#define PPCMODE_EPP_WORD 5
#define PPCMODE_EPP_DWORD 6
-int mode_map[] = { PPCMODE_UNI_FW, PPCMODE_BI_FW, PPCMODE_EPP_BYTE,
- PPCMODE_EPP_WORD, PPCMODE_EPP_DWORD };
+static int mode_map[] = { PPCMODE_UNI_FW, PPCMODE_BI_FW, PPCMODE_EPP_BYTE,
+ PPCMODE_EPP_WORD, PPCMODE_EPP_DWORD };
static void bpck6_send_cmd(struct pi_adapter *pi, u8 cmd)
{