lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0703251206330.17623@paragw-desktop>
Date:	Sun, 25 Mar 2007 12:11:23 -0400 (EDT)
From:	Parag Warudkar <parag.warudkar@...il.com>
To:	linux-kernel@...r.kernel.org
cc:	akpm@...ux-foundation.org, torvalds@...ux-foundation.org
Subject: [PATCH]fdomain.c: get rid of unused stuff

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 <parag.warudkar@...il.com>

--- 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 majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ