fdomain.c uses the below stuff only if PCMCIA is not defined.
This causes unused variables to be defined when PCMCIA is not defined.
Wrap variables and functions around #ifndef PCMCIA appropriately to avoid
this.
4 less compiler warnings.
Compile tested on i386.
Signed-off-by: Parag Warudkar <[EMAIL PROTECTED]>
--- linux-2.6/drivers/scsi/fdomain.c 2007-03-24 21:44:17.000000000 -0400
+++ linux-2.6-wk/drivers/scsi/fdomain.c 2007-03-25 11:45:26.000000000 -0400
@@ -410,6 +410,7 @@
static char * fdomain = NULL;
module_param(fdomain, charp, 0);
+#ifndef PCMCIA
static unsigned long addresses[] = {
0xc8000,
0xca000,
@@ -502,6 +503,7 @@
};
#define SIGNATURE_COUNT ARRAY_SIZE(signatures)
+#endif /* ifndef PCMCIA */
static void print_banner( struct Scsi_Host *shpnt )
{
@@ -646,7 +648,7 @@
Sometimes it is possible to use the computer's BIOS setup screen to
configure a PCI system so that one of these IRQs will be used by the
Future Domain card. */
-
+#ifndef PCMCIA
static int fdomain_get_irq( int base )
{
int options = inb(base + Configuration1);
@@ -664,6 +666,7 @@
return 0;
return ints[(options & 0x0e) >> 1];
}
+#endif
static int fdomain_isa_detect( int *irq, int *iobase )
{
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/