All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi: fdomain: add missing CONFIG_ to PCMCIA
@ 2016-02-09 22:16 Yang Shi
  2016-02-09 23:25 ` One Thousand Gnomes
  0 siblings, 1 reply; 3+ messages in thread
From: Yang Shi @ 2016-02-09 22:16 UTC (permalink / raw)
  To: JBottomley, martin.petersen
  Cc: linux-kernel, linux-scsi, linaro-kernel, yang.shi

There are some "#ifdef PCMCIA" in the driver code, but all of them missed
CONFIG_ prefix. Correct PCMCIA to CONFIG_PCMCIA.

Signed-off-by: Yang Shi <yang.shi@linaro.org>
---

I happened to find this problem when I was tracking down another problem,
however this driver looks very old, not sure if anybody cares about it or not.
Anyway, it is harmless to come up with a patch to get it corrected.

 drivers/scsi/fdomain.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c
index eefe14d..ffc9187 100644
--- a/drivers/scsi/fdomain.c
+++ b/drivers/scsi/fdomain.c
@@ -290,7 +290,7 @@
 #include <scsi/scsi_ioctl.h>
 #include "fdomain.h"
 
-#ifndef PCMCIA
+#ifndef CONFIG_PCMCIA
 MODULE_AUTHOR("Rickard E. Faith");
 MODULE_DESCRIPTION("Future domain SCSI driver");
 MODULE_LICENSE("GPL");
@@ -414,7 +414,7 @@ static irqreturn_t       do_fdomain_16x0_intr( int irq, void *dev_id );
 static char * fdomain = NULL;
 module_param(fdomain, charp, 0);
 
-#ifndef PCMCIA
+#ifndef CONFIG_PCMCIA
 
 static unsigned long addresses[] = {
    0xc8000,
@@ -432,7 +432,7 @@ static unsigned short ports[] = { 0x140, 0x150, 0x160, 0x170 };
 
 static unsigned short ints[] = { 3, 5, 10, 11, 12, 14, 15, 0 };
 
-#endif /* !PCMCIA */
+#endif /* !CONFIG_PCMCIA */
 
 /*
 
@@ -466,7 +466,7 @@ static unsigned short ints[] = { 3, 5, 10, 11, 12, 14, 15, 0 };
 
 */
 
-#ifndef PCMCIA
+#ifndef CONFIG_PCMCIA
 
 static struct signature {
    const char *signature;
@@ -513,7 +513,7 @@ static struct signature {
 
 #define SIGNATURE_COUNT ARRAY_SIZE(signatures)
 
-#endif /* !PCMCIA */
+#endif /* !CONFIG_PCMCIA */
 
 static void print_banner( struct Scsi_Host *shpnt )
 {
@@ -645,7 +645,7 @@ static int fdomain_test_loopback( void )
    return 0;
 }
 
-#ifndef PCMCIA
+#ifndef CONFIG_PCMCIA
 
 /* fdomain_get_irq assumes that we have a valid MCA ID for a
    TMC-1660/TMC-1680 Future Domain board.  Now, check to be sure the
@@ -801,7 +801,7 @@ found:
    return 1;			/* success */
 }
 
-#else /* PCMCIA */
+#else /* CONFIG_PCMCIA */
 
 static int fdomain_isa_detect( int *irq, int *iobase )
 {
@@ -812,7 +812,7 @@ static int fdomain_isa_detect( int *irq, int *iobase )
 	return 0;
 }
 
-#endif /* !PCMCIA */
+#endif /* !CONFIG_PCMCIA */
 
 
 /* PCI detection function: int fdomain_pci_bios_detect(int* irq, int*
@@ -1767,7 +1767,7 @@ struct scsi_host_template fdomain_driver_template = {
 	.use_clustering		= DISABLE_CLUSTERING,
 };
 
-#ifndef PCMCIA
+#ifndef CONFIG_PCMCIA
 #ifdef CONFIG_PCI
 
 static struct pci_device_id fdomain_pci_tbl[] = {
-- 
2.0.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: fdomain: add missing CONFIG_ to PCMCIA
  2016-02-09 22:16 [PATCH] scsi: fdomain: add missing CONFIG_ to PCMCIA Yang Shi
@ 2016-02-09 23:25 ` One Thousand Gnomes
  2016-02-09 23:28   ` Shi, Yang
  0 siblings, 1 reply; 3+ messages in thread
From: One Thousand Gnomes @ 2016-02-09 23:25 UTC (permalink / raw)
  To: Yang Shi
  Cc: JBottomley, martin.petersen, linux-kernel, linux-scsi, linaro-kernel

On Tue,  9 Feb 2016 14:16:49 -0800
Yang Shi <yang.shi@linaro.org> wrote:

> There are some "#ifdef PCMCIA" in the driver code, but all of them missed
> CONFIG_ prefix. Correct PCMCIA to CONFIG_PCMCIA.
> 
> Signed-off-by: Yang Shi <yang.shi@linaro.org>

NAK. This breaks the driver completely


Read drivers/scsi/pcmcia/fdomain*

Alan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: fdomain: add missing CONFIG_ to PCMCIA
  2016-02-09 23:25 ` One Thousand Gnomes
@ 2016-02-09 23:28   ` Shi, Yang
  0 siblings, 0 replies; 3+ messages in thread
From: Shi, Yang @ 2016-02-09 23:28 UTC (permalink / raw)
  To: One Thousand Gnomes
  Cc: JBottomley, martin.petersen, linux-kernel, linux-scsi, linaro-kernel

On 2/9/2016 3:25 PM, One Thousand Gnomes wrote:
> On Tue,  9 Feb 2016 14:16:49 -0800
> Yang Shi <yang.shi@linaro.org> wrote:
>
>> There are some "#ifdef PCMCIA" in the driver code, but all of them missed
>> CONFIG_ prefix. Correct PCMCIA to CONFIG_PCMCIA.
>>
>> Signed-off-by: Yang Shi <yang.shi@linaro.org>
>
> NAK. This breaks the driver completely
>
>
> Read drivers/scsi/pcmcia/fdomain*

Got it. Thanks for spotting out this. Sorry for the unthought change.

Yang

>
> Alan
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-09 23:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-09 22:16 [PATCH] scsi: fdomain: add missing CONFIG_ to PCMCIA Yang Shi
2016-02-09 23:25 ` One Thousand Gnomes
2016-02-09 23:28   ` Shi, Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.