Print this page
8659 ata: unused but set warnings with GCC 5.X

@@ -20,10 +20,12 @@
  */
 
 /*
  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ *
+ * Copyright 2017 RackTop Systems.
  */
 /*
  * Silicon Image 3XXX controller specific processing
  *
  * This file may be expanded to take advantage of Silicon Image

@@ -34,12 +36,10 @@
  * 4. Watchdog Timer
  * 5. Power Management
  * 6. Hot Plug Support
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #include "ata_common.h"
 #include "sil3xxx.h"
 #include <sys/pci.h>
 
 int fifocntctl[] = {FIFO_CNTCTL_0, FIFO_CNTCTL_1, FIFO_CNTCTL_2, FIFO_CNTCTL_3};

@@ -56,12 +56,11 @@
         ddi_acc_handle_t  pci_conf_handle; /* pci config space handle */
         uint8_t cache_lnsz, frrc = 0;
         uint32_t fifo_cnt_ctl;
         int ports, i;
 
-#ifdef  DEBUG
-        /* LINTED */
+#ifdef  ATA_DEBUG
         ushort_t sfiscfg_val;
 #endif
 
         /*
          * Sil3114, Sil3512, Sil3112

@@ -123,19 +122,19 @@
                 PUT_BAR5_INDIRECT(pci_conf_handle, fifocntctl[i],
                     fifo_cnt_ctl);
                 /*
                  * Correct default setting for FIS0cfg
                  */
-#ifdef  DEBUG
+#ifdef  ATA_DEBUG
                 GET_BAR5_INDIRECT(pci_conf_handle, sfiscfg[i],
                         sfiscfg_val);
                 ADBG_WARN(("sil3xxx_init_controller: old val SFISCfg "
                         "ch%d: %x\n", i, sfiscfg_val));
 #endif
                 PUT_BAR5_INDIRECT(pci_conf_handle, sfiscfg[i],
                         SFISCFG_ERRATA);
-#ifdef  DEBUG
+#ifdef  ATA_DEBUG
                 GET_BAR5_INDIRECT(pci_conf_handle, sfiscfg[i],
                         sfiscfg_val);
                 ADBG_WARN(("sil3xxx_init_controller: new val SFISCfg "
                         "ch%d: %x\n", i, sfiscfg_val));
 #endif