Skip to content

Commit

Permalink
ata: pata_parport-bpck6: Declare mode_map as static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Damien Le Moal committed Mar 28, 2023
1 parent 919c119 commit 140b260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ata/pata_parport/bpck6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 140b260

Please sign in to comment.