History

ata: libata: drop ata_msg_info()

Convert the sole caller to ata_dev_dbg() and remove the definition.

Hannes Reinecke committed 4 years ago

Commit 96c810f1 parent 17a1e1b2 files · +3 −9Browse files

Unified · Split

2 files
  1. drivers/ata/libata-core.c +3 −7
  2. include/linux/libata.h +0 −2
drivers/ata/libata-core.c+3−7
@@ -2530,8 +2530,8 @@ int ata_dev_configure(struct ata_device *dev) · 2529 unmodified lines
2530 char modelbuf[ATA_ID_PROD_LEN+1];2530 char modelbuf[ATA_ID_PROD_LEN+1];
2531 int rc;2531 int rc;
2532 2532
2533 if (!ata_dev_enabled(dev) && ata_msg_info(ap)) {2533 if (!ata_dev_enabled(dev)) {
2534 ata_dev_info(dev, "%s: ENTER/EXIT -- nodev\n", __func__);2534 ata_dev_dbg(dev, "no device\n");
2535 return 0;2535 return 0;
2536 }2536 }
2537 2537
@@ -5333,11 +5333,7 @@ struct ata_port *ata_port_alloc(struct ata_host *host) · 2795 unmodified lines
5333 5333
5334#if defined(ATA_VERBOSE_DEBUG)5334#if defined(ATA_VERBOSE_DEBUG)
5335 /* turn on all debugging levels */5335 /* turn on all debugging levels */
5336 ap->msg_enable = 0x0003;5336 ap->msg_enable = 0x0001;
5337#elif defined(ATA_DEBUG)
5338 ap->msg_enable = ATA_MSG_DRV | ATA_MSG_INFO;
5339#else
5340 ap->msg_enable = ATA_MSG_DRV;
5341#endif5337#endif
5342 5338
5343 mutex_init(&ap->scsi_scan_mutex);5339 mutex_init(&ap->scsi_scan_mutex);
include/linux/libata.h+0−2
@@ -73,11 +73,9 @@ · 72 unmodified lines
73 73
74enum {74enum {
75 ATA_MSG_DRV = 0x0001,75 ATA_MSG_DRV = 0x0001,
76 ATA_MSG_INFO = 0x0002,
77};76};
78 77
79#define ata_msg_drv(p) ((p)->msg_enable & ATA_MSG_DRV)78#define ata_msg_drv(p) ((p)->msg_enable & ATA_MSG_DRV)
80#define ata_msg_info(p) ((p)->msg_enable & ATA_MSG_INFO)
81 79
82static inline u32 ata_msg_init(int dval, int default_msg_enable_bits)80static inline u32 ata_msg_init(int dval, int default_msg_enable_bits)
83{81{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t