Fixes for pata parport bpck6 protocol driver
cover Fixes for pata parport bpck6 protocol driver
A couple of improvements, no functional changes.
Damien Le Moal (2):
ata: pata_parport-bpck6: Remove dependency on 64BIT
ata: pata_parport-bpck6: Declare mode_map as static
drivers/ata/pata_parport/Kconfig | 2 +- drivers/ata/pata_parport/bpck6.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.39.2
PATCH 1/2 ata: pata_parport-bpck6: Remove dependency on 64BIT
There is no reason to have compilation of the bpck6 protocol module being dependent on 64BIT. Remove this dependency.
--- drivers/ata/pata_parport/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/pata_parport/Kconfig +1 -1
@@ -25,7 +25,7 @@ config PATA_PARPORT_BPCK config PATA_PARPORT_BPCK6 tristate "MicroSolutions backpack (Series 6) protocol" - depends on (PATA_PARPORT) && !64BIT + depends on PATA_PARPORT help This option enables support for the Micro Solutions BACKPACK parallel port Series 6 IDE protocol. (Most BACKPACK drives made
Signature · 1 line
2.39.2
Re: [PATCH 1/2] ata: pata_parport-bpck6: Remove dependency on 64BIT
Quoted 2 lines · On Thursday 23 March 2023 04:38:35 Damien Le Moal wrote:
There is no reason to have compilation of the bpck6 protocol module being dependent on 64BIT. Remove this dependency.
Great, I planned to do this but forgot. Thanks.
Quoted 18 lines
Signed-off-by Damien Le Moal <[email protected]>--- drivers/ata/pata_parport/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/ata/pata_parport/Kconfig +1
-1@@ -25,7 +25,7 @@ config PATA_PARPORT_BPCK config PATA_PARPORT_BPCK6 tristate "MicroSolutions backpack (Series 6) protocol" - depends on (PATA_PARPORT) && !64BIT + depends on PATA_PARPORT help This option enables support for the Micro Solutions BACKPACK parallel port Series 6 IDE protocol. (Most BACKPACK drives made
Signature · 1 line
Ondrej Zary
Re: [PATCH 1/2] ata: pata_parport-bpck6: Remove dependency on 64BIT
Quoted 5 lines · Ondrej Zary
Quoted 2 lines · On Thursday 23 March 2023 04:38:35 Damien Le Moal wrote:
There is no reason to have compilation of the bpck6 protocol module being dependent on 64BIT. Remove this dependency.
Great, I planned to do this but forgot. Thanks.
Can you send a reviewed-by ?
Quoted 21 lines
Quoted 19 lines
Signed-off-by Damien Le Moal <[email protected]>--- drivers/ata/pata_parport/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/ata/pata_parport/Kconfig +1
-1@@ -25,7 +25,7 @@ config PATA_PARPORT_BPCK config PATA_PARPORT_BPCK6 tristate "MicroSolutions backpack (Series 6) protocol" - depends on (PATA_PARPORT) && !64BIT + depends on PATA_PARPORT help This option enables support for the Micro Solutions BACKPACK parallel port Series 6 IDE protocol. (Most BACKPACK drives made
Signature · 2 lines
Damien Le Moal Western Digital Research
Re: [PATCH 1/2] ata: pata_parport-bpck6: Remove dependency on 64BIT
In reply to Damien Le MoalQuoted 4 lines · On Thursday 23 March 2023 04:38:35 Damien Le Moal wrote:
There is no reason to have compilation of the bpck6 protocol module being dependent on 64BIT. Remove this dependency.
Signed-off-by Damien Le Moal <[email protected]>
Quoted 17 lines
--- drivers/ata/pata_parport/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/ata/pata_parport/Kconfig +1
-1@@ -25,7 +25,7 @@ config PATA_PARPORT_BPCK config PATA_PARPORT_BPCK6 tristate "MicroSolutions backpack (Series 6) protocol" - depends on (PATA_PARPORT) && !64BIT + depends on PATA_PARPORT help This option enables support for the Micro Solutions BACKPACK parallel port Series 6 IDE protocol. (Most BACKPACK drives made
Signature · 1 line
Ondrej Zary
PATCH 2/2 ata: pata_parport-bpck6: Declare mode_map as static
In reply to Damien Le MoalCompilation 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.
--- drivers/ata/pata_parport/bpck6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ata/pata_parport/bpck6.c +2 -2
@@ -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) {
Signature · 1 line
2.39.2
Re: [PATCH 2/2] ata: pata_parport-bpck6: Declare mode_map as static
Quoted 9 lines · On Thursday 23 March 2023 04:38:36 Damien Le Moal wrote:
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_mapas static.Signed-off-by Damien Le Moal <[email protected]>
Quoted 19 lines
--- drivers/ata/pata_parport/bpck6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/ata/pata_parport/bpck6.c +2
-2@@ -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) {
Signature · 1 line
Ondrej Zary