mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-01 23:53:16 -04:00
ata: libata: drop ata_msg_error() and ata_msg_intr()
Unused. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
This commit is contained in:
parent
f11c5403a1
commit
d97c75edd8
2 changed files with 3 additions and 7 deletions
|
@ -5345,11 +5345,11 @@ struct ata_port *ata_port_alloc(struct ata_host *host)
|
||||||
|
|
||||||
#if defined(ATA_VERBOSE_DEBUG)
|
#if defined(ATA_VERBOSE_DEBUG)
|
||||||
/* turn on all debugging levels */
|
/* turn on all debugging levels */
|
||||||
ap->msg_enable = 0x00FF;
|
ap->msg_enable = 0x003F;
|
||||||
#elif defined(ATA_DEBUG)
|
#elif defined(ATA_DEBUG)
|
||||||
ap->msg_enable = ATA_MSG_DRV | ATA_MSG_INFO | ATA_MSG_CTL | ATA_MSG_WARN | ATA_MSG_ERR;
|
ap->msg_enable = ATA_MSG_DRV | ATA_MSG_INFO | ATA_MSG_CTL | ATA_MSG_WARN;
|
||||||
#else
|
#else
|
||||||
ap->msg_enable = ATA_MSG_DRV | ATA_MSG_ERR | ATA_MSG_WARN;
|
ap->msg_enable = ATA_MSG_DRV | ATA_MSG_WARN;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mutex_init(&ap->scsi_scan_mutex);
|
mutex_init(&ap->scsi_scan_mutex);
|
||||||
|
|
|
@ -78,8 +78,6 @@ enum {
|
||||||
ATA_MSG_WARN = 0x0008,
|
ATA_MSG_WARN = 0x0008,
|
||||||
ATA_MSG_MALLOC = 0x0010,
|
ATA_MSG_MALLOC = 0x0010,
|
||||||
ATA_MSG_CTL = 0x0020,
|
ATA_MSG_CTL = 0x0020,
|
||||||
ATA_MSG_INTR = 0x0040,
|
|
||||||
ATA_MSG_ERR = 0x0080,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#define ata_msg_drv(p) ((p)->msg_enable & ATA_MSG_DRV)
|
#define ata_msg_drv(p) ((p)->msg_enable & ATA_MSG_DRV)
|
||||||
|
@ -88,8 +86,6 @@ enum {
|
||||||
#define ata_msg_warn(p) ((p)->msg_enable & ATA_MSG_WARN)
|
#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_malloc(p) ((p)->msg_enable & ATA_MSG_MALLOC)
|
||||||
#define ata_msg_ctl(p) ((p)->msg_enable & ATA_MSG_CTL)
|
#define ata_msg_ctl(p) ((p)->msg_enable & ATA_MSG_CTL)
|
||||||
#define ata_msg_intr(p) ((p)->msg_enable & ATA_MSG_INTR)
|
|
||||||
#define ata_msg_err(p) ((p)->msg_enable & ATA_MSG_ERR)
|
|
||||||
|
|
||||||
static inline u32 ata_msg_init(int dval, int default_msg_enable_bits)
|
static inline u32 ata_msg_init(int dval, int default_msg_enable_bits)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue