Skip to contentSkip to conversation

Fixes for pata parport bpck6 protocol driver

PATCH In review Damien Le Moal 2 participants 7 messages Mar 23, 2023 – Mar 26, 2023 libata

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 0893a13e7979..2c953f5d1396 100644
@@ -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
#2 lore raw

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
---
 drivers/ata/pata_parport/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/pata_parport/Kconfig +1 -1
index 0893a13e7979..2c953f5d1396 100644
@@ -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
#3 lore raw

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
---
 drivers/ata/pata_parport/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/pata_parport/Kconfig +1 -1
index 0893a13e7979..2c953f5d1396 100644
@@ -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
Reviewed-by on v1 1/2
#4 lore raw

Re: [PATCH 1/2] ata: pata_parport-bpck6: Remove dependency on 64BIT

In reply to Damien Le Moal
Quoted 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.

Quoted 17 lines
---
 drivers/ata/pata_parport/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/pata_parport/Kconfig +1 -1
index 0893a13e7979..2c953f5d1396 100644
@@ -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
#5 lore raw

PATCH 2/2 ata: pata_parport-bpck6: Declare mode_map as static

In reply to Damien Le Moal

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.

---
 drivers/ata/pata_parport/bpck6.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ata/pata_parport/bpck6.c +2 -2
index 295dbe5cdaa4..76febd07a9bb 100644
@@ -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
Reviewed-by on v1 2/2
#6 lore raw

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_map as static.

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
index 295dbe5cdaa4..76febd07a9bb 100644
@@ -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