Skip to content

Commit 140b260

Browse files
author
Damien Le Moal
committed
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 <[email protected]> Reviewed-by: Ondrej Zary <[email protected]>
1 parent 919c119 commit 140b260

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/ata/pata_parport/bpck6.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
#define PPCMODE_EPP_WORD 5
6060
#define PPCMODE_EPP_DWORD 6
6161

62-
int mode_map[] = { PPCMODE_UNI_FW, PPCMODE_BI_FW, PPCMODE_EPP_BYTE,
63-
PPCMODE_EPP_WORD, PPCMODE_EPP_DWORD };
62+
static int mode_map[] = { PPCMODE_UNI_FW, PPCMODE_BI_FW, PPCMODE_EPP_BYTE,
63+
PPCMODE_EPP_WORD, PPCMODE_EPP_DWORD };
6464

6565
static void bpck6_send_cmd(struct pi_adapter *pi, u8 cmd)
6666
{

0 commit comments

Comments
 (0)