ata: libata: remove debug compilation switches
authorHannes Reinecke <hare@suse.de>
Tue, 21 Dec 2021 07:21:09 +0000 (08:21 +0100)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Wed, 5 Jan 2022 10:33:02 +0000 (19:33 +0900)
Unused now, so remove and drop any references to them.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/libata-sff.c
drivers/ata/pata_ep93xx.c
drivers/ata/sata_rcar.c
include/linux/libata.h

index 01f1673f3297756e1e525f4a7a96e62a68eea62f..75217828dfe3021c307fd4d141c415c74249e908 100644 (file)
@@ -2091,7 +2091,6 @@ void ata_sff_drain_fifo(struct ata_queued_cmd *qc)
                                                && count < 65536; count += 2)
                ioread16(ap->ioaddr.data_addr);
 
-       /* Can become DEBUG later */
        if (count)
                ata_port_dbg(ap, "drained %d bytes to clear DRQ\n", count);
 
index 46208ececbb6acd6e723cc9b8331a49d72e27bb2..b78f71c70f27eb8fbc1d4051e9bf00266f2522d6 100644 (file)
@@ -855,7 +855,6 @@ static void ep93xx_pata_drain_fifo(struct ata_queued_cmd *qc)
                     && count < 65536; count += 2)
                ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_DATA);
 
-       /* Can become DEBUG later */
        if (count)
                ata_port_dbg(ap, "drained %d bytes to clear DRQ.\n", count);
 
index 91b39a6aa9f7fd1afe7da2347b927f3d4be68afd..3d96b6faa3f0e1c64e409df1327906b50ae3a0a5 100644 (file)
@@ -479,7 +479,6 @@ static void sata_rcar_drain_fifo(struct ata_queued_cmd *qc)
                        count < 65536; count += 2)
                ioread32(ap->ioaddr.data_addr);
 
-       /* Can become DEBUG later */
        if (count)
                ata_port_dbg(ap, "drained %d bytes to clear DRQ\n", count);
 }
index 145c0132b75e1240cdd20a772c00800c57d583b5..c258f69106f49e493f1b810db09ce24c02fe9234 100644 (file)
  * compile-time options: to be removed as soon as all the drivers are
  * converted to the new debugging mechanism
  */
-#undef ATA_DEBUG               /* debugging output */
-#undef ATA_VERBOSE_DEBUG       /* yet more debugging output */
 #undef ATA_IRQ_TRAP            /* define to ack screaming irqs */
-#undef ATA_NDEBUG              /* define to disable quick runtime checks */
 
 
-/* note: prints function name for you */
-#ifdef ATA_DEBUG
-#define DPRINTK(fmt, args...) printk(KERN_ERR "%s: " fmt, __func__, ## args)
-#ifdef ATA_VERBOSE_DEBUG
-#define VPRINTK(fmt, args...) printk(KERN_ERR "%s: " fmt, __func__, ## args)
-#else
-#define VPRINTK(fmt, args...)
-#endif /* ATA_VERBOSE_DEBUG */
-#else
-#define DPRINTK(fmt, args...)
-#define VPRINTK(fmt, args...)
-#endif /* ATA_DEBUG */
-
 #define ata_print_version_once(dev, version)                   \
 ({                                                             \
        static bool __print_once;                               \