ata: libata: drop ata_msg_ctl()
authorHannes Reinecke <hare@suse.de>
Tue, 21 Dec 2021 07:21:02 +0000 (08:21 +0100)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Wed, 5 Jan 2022 10:33:02 +0000 (19:33 +0900)
The one caller have been converted to dynamic debugging.

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

index 1652105..5b50a6d 100644 (file)
@@ -1763,9 +1763,6 @@ int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class,
        int may_fallback = 1, tried_spinup = 0;
        int rc;
 
-       if (ata_msg_ctl(ap))
-               ata_dev_dbg(dev, "%s: ENTER\n", __func__);
-
 retry:
        ata_tf_init(dev, &tf);
 
@@ -5345,9 +5342,9 @@ struct ata_port *ata_port_alloc(struct ata_host *host)
 
 #if defined(ATA_VERBOSE_DEBUG)
        /* turn on all debugging levels */
-       ap->msg_enable = 0x003F;
+       ap->msg_enable = 0x001F;
 #elif defined(ATA_DEBUG)
-       ap->msg_enable = ATA_MSG_DRV | ATA_MSG_INFO | ATA_MSG_CTL | ATA_MSG_WARN;
+       ap->msg_enable = ATA_MSG_DRV | ATA_MSG_INFO | ATA_MSG_WARN;
 #else
        ap->msg_enable = ATA_MSG_DRV | ATA_MSG_WARN;
 #endif
index 4f0a85f..e384cce 100644 (file)
@@ -77,7 +77,6 @@ enum {
        ATA_MSG_PROBE   = 0x0004,
        ATA_MSG_WARN    = 0x0008,
        ATA_MSG_MALLOC  = 0x0010,
-       ATA_MSG_CTL     = 0x0020,
 };
 
 #define ata_msg_drv(p)    ((p)->msg_enable & ATA_MSG_DRV)
@@ -85,7 +84,6 @@ enum {
 #define ata_msg_probe(p)  ((p)->msg_enable & ATA_MSG_PROBE)
 #define ata_msg_warn(p)   ((p)->msg_enable & ATA_MSG_WARN)
 #define ata_msg_malloc(p) ((p)->msg_enable & ATA_MSG_MALLOC)
-#define ata_msg_ctl(p)    ((p)->msg_enable & ATA_MSG_CTL)
 
 static inline u32 ata_msg_init(int dval, int default_msg_enable_bits)
 {