Commit 3690ad67 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: myrb: Remove unused functions

This was detected by building the kernel with clang and W=1.

Link: https://lore.kernel.org/r/20210415220826.29438-11-bvanassche@acm.org
Cc: Hannes Reinecke <hare@kernel.org>
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 3ad0b1da
...@@ -2552,11 +2552,6 @@ static inline void DAC960_LA_ack_hw_mbox_status(void __iomem *base) ...@@ -2552,11 +2552,6 @@ static inline void DAC960_LA_ack_hw_mbox_status(void __iomem *base)
writeb(DAC960_LA_IDB_HWMBOX_ACK_STS, base + DAC960_LA_IDB_OFFSET); writeb(DAC960_LA_IDB_HWMBOX_ACK_STS, base + DAC960_LA_IDB_OFFSET);
} }
static inline void DAC960_LA_gen_intr(void __iomem *base)
{
writeb(DAC960_LA_IDB_GEN_IRQ, base + DAC960_LA_IDB_OFFSET);
}
static inline void DAC960_LA_reset_ctrl(void __iomem *base) static inline void DAC960_LA_reset_ctrl(void __iomem *base)
{ {
writeb(DAC960_LA_IDB_CTRL_RESET, base + DAC960_LA_IDB_OFFSET); writeb(DAC960_LA_IDB_CTRL_RESET, base + DAC960_LA_IDB_OFFSET);
...@@ -2586,11 +2581,6 @@ static inline void DAC960_LA_ack_hw_mbox_intr(void __iomem *base) ...@@ -2586,11 +2581,6 @@ static inline void DAC960_LA_ack_hw_mbox_intr(void __iomem *base)
writeb(DAC960_LA_ODB_HWMBOX_ACK_IRQ, base + DAC960_LA_ODB_OFFSET); writeb(DAC960_LA_ODB_HWMBOX_ACK_IRQ, base + DAC960_LA_ODB_OFFSET);
} }
static inline void DAC960_LA_ack_mem_mbox_intr(void __iomem *base)
{
writeb(DAC960_LA_ODB_MMBOX_ACK_IRQ, base + DAC960_LA_ODB_OFFSET);
}
static inline void DAC960_LA_ack_intr(void __iomem *base) static inline void DAC960_LA_ack_intr(void __iomem *base)
{ {
writeb(DAC960_LA_ODB_HWMBOX_ACK_IRQ | DAC960_LA_ODB_MMBOX_ACK_IRQ, writeb(DAC960_LA_ODB_HWMBOX_ACK_IRQ | DAC960_LA_ODB_MMBOX_ACK_IRQ,
...@@ -2604,13 +2594,6 @@ static inline bool DAC960_LA_hw_mbox_status_available(void __iomem *base) ...@@ -2604,13 +2594,6 @@ static inline bool DAC960_LA_hw_mbox_status_available(void __iomem *base)
return odb & DAC960_LA_ODB_HWMBOX_STS_AVAIL; return odb & DAC960_LA_ODB_HWMBOX_STS_AVAIL;
} }
static inline bool DAC960_LA_mem_mbox_status_available(void __iomem *base)
{
unsigned char odb = readb(base + DAC960_LA_ODB_OFFSET);
return odb & DAC960_LA_ODB_MMBOX_STS_AVAIL;
}
static inline void DAC960_LA_enable_intr(void __iomem *base) static inline void DAC960_LA_enable_intr(void __iomem *base)
{ {
unsigned char odb = 0xFF; unsigned char odb = 0xFF;
...@@ -2627,13 +2610,6 @@ static inline void DAC960_LA_disable_intr(void __iomem *base) ...@@ -2627,13 +2610,6 @@ static inline void DAC960_LA_disable_intr(void __iomem *base)
writeb(odb, base + DAC960_LA_IRQMASK_OFFSET); writeb(odb, base + DAC960_LA_IRQMASK_OFFSET);
} }
static inline bool DAC960_LA_intr_enabled(void __iomem *base)
{
unsigned char imask = readb(base + DAC960_LA_IRQMASK_OFFSET);
return !(imask & DAC960_LA_IRQMASK_DISABLE_IRQ);
}
static inline void DAC960_LA_write_cmd_mbox(union myrb_cmd_mbox *mem_mbox, static inline void DAC960_LA_write_cmd_mbox(union myrb_cmd_mbox *mem_mbox,
union myrb_cmd_mbox *mbox) union myrb_cmd_mbox *mbox)
{ {
...@@ -2656,11 +2632,6 @@ static inline void DAC960_LA_write_hw_mbox(void __iomem *base, ...@@ -2656,11 +2632,6 @@ static inline void DAC960_LA_write_hw_mbox(void __iomem *base,
writeb(mbox->bytes[12], base + DAC960_LA_MBOX12_OFFSET); writeb(mbox->bytes[12], base + DAC960_LA_MBOX12_OFFSET);
} }
static inline unsigned char DAC960_LA_read_status_cmd_ident(void __iomem *base)
{
return readb(base + DAC960_LA_STSID_OFFSET);
}
static inline unsigned short DAC960_LA_read_status(void __iomem *base) static inline unsigned short DAC960_LA_read_status(void __iomem *base)
{ {
return readw(base + DAC960_LA_STS_OFFSET); return readw(base + DAC960_LA_STS_OFFSET);
...@@ -2828,11 +2799,6 @@ static inline void DAC960_PG_ack_hw_mbox_status(void __iomem *base) ...@@ -2828,11 +2799,6 @@ static inline void DAC960_PG_ack_hw_mbox_status(void __iomem *base)
writel(DAC960_PG_IDB_HWMBOX_ACK_STS, base + DAC960_PG_IDB_OFFSET); writel(DAC960_PG_IDB_HWMBOX_ACK_STS, base + DAC960_PG_IDB_OFFSET);
} }
static inline void DAC960_PG_gen_intr(void __iomem *base)
{
writel(DAC960_PG_IDB_GEN_IRQ, base + DAC960_PG_IDB_OFFSET);
}
static inline void DAC960_PG_reset_ctrl(void __iomem *base) static inline void DAC960_PG_reset_ctrl(void __iomem *base)
{ {
writel(DAC960_PG_IDB_CTRL_RESET, base + DAC960_PG_IDB_OFFSET); writel(DAC960_PG_IDB_CTRL_RESET, base + DAC960_PG_IDB_OFFSET);
...@@ -2862,11 +2828,6 @@ static inline void DAC960_PG_ack_hw_mbox_intr(void __iomem *base) ...@@ -2862,11 +2828,6 @@ static inline void DAC960_PG_ack_hw_mbox_intr(void __iomem *base)
writel(DAC960_PG_ODB_HWMBOX_ACK_IRQ, base + DAC960_PG_ODB_OFFSET); writel(DAC960_PG_ODB_HWMBOX_ACK_IRQ, base + DAC960_PG_ODB_OFFSET);
} }
static inline void DAC960_PG_ack_mem_mbox_intr(void __iomem *base)
{
writel(DAC960_PG_ODB_MMBOX_ACK_IRQ, base + DAC960_PG_ODB_OFFSET);
}
static inline void DAC960_PG_ack_intr(void __iomem *base) static inline void DAC960_PG_ack_intr(void __iomem *base)
{ {
writel(DAC960_PG_ODB_HWMBOX_ACK_IRQ | DAC960_PG_ODB_MMBOX_ACK_IRQ, writel(DAC960_PG_ODB_HWMBOX_ACK_IRQ | DAC960_PG_ODB_MMBOX_ACK_IRQ,
...@@ -2880,13 +2841,6 @@ static inline bool DAC960_PG_hw_mbox_status_available(void __iomem *base) ...@@ -2880,13 +2841,6 @@ static inline bool DAC960_PG_hw_mbox_status_available(void __iomem *base)
return odb & DAC960_PG_ODB_HWMBOX_STS_AVAIL; return odb & DAC960_PG_ODB_HWMBOX_STS_AVAIL;
} }
static inline bool DAC960_PG_mem_mbox_status_available(void __iomem *base)
{
unsigned char odb = readl(base + DAC960_PG_ODB_OFFSET);
return odb & DAC960_PG_ODB_MMBOX_STS_AVAIL;
}
static inline void DAC960_PG_enable_intr(void __iomem *base) static inline void DAC960_PG_enable_intr(void __iomem *base)
{ {
unsigned int imask = (unsigned int)-1; unsigned int imask = (unsigned int)-1;
...@@ -2902,13 +2856,6 @@ static inline void DAC960_PG_disable_intr(void __iomem *base) ...@@ -2902,13 +2856,6 @@ static inline void DAC960_PG_disable_intr(void __iomem *base)
writel(imask, base + DAC960_PG_IRQMASK_OFFSET); writel(imask, base + DAC960_PG_IRQMASK_OFFSET);
} }
static inline bool DAC960_PG_intr_enabled(void __iomem *base)
{
unsigned int imask = readl(base + DAC960_PG_IRQMASK_OFFSET);
return !(imask & DAC960_PG_IRQMASK_DISABLE_IRQ);
}
static inline void DAC960_PG_write_cmd_mbox(union myrb_cmd_mbox *mem_mbox, static inline void DAC960_PG_write_cmd_mbox(union myrb_cmd_mbox *mem_mbox,
union myrb_cmd_mbox *mbox) union myrb_cmd_mbox *mbox)
{ {
...@@ -2931,12 +2878,6 @@ static inline void DAC960_PG_write_hw_mbox(void __iomem *base, ...@@ -2931,12 +2878,6 @@ static inline void DAC960_PG_write_hw_mbox(void __iomem *base,
writeb(mbox->bytes[12], base + DAC960_PG_MBOX12_OFFSET); writeb(mbox->bytes[12], base + DAC960_PG_MBOX12_OFFSET);
} }
static inline unsigned char
DAC960_PG_read_status_cmd_ident(void __iomem *base)
{
return readb(base + DAC960_PG_STSID_OFFSET);
}
static inline unsigned short static inline unsigned short
DAC960_PG_read_status(void __iomem *base) DAC960_PG_read_status(void __iomem *base)
{ {
...@@ -3106,11 +3047,6 @@ static inline void DAC960_PD_ack_hw_mbox_status(void __iomem *base) ...@@ -3106,11 +3047,6 @@ static inline void DAC960_PD_ack_hw_mbox_status(void __iomem *base)
writeb(DAC960_PD_IDB_HWMBOX_ACK_STS, base + DAC960_PD_IDB_OFFSET); writeb(DAC960_PD_IDB_HWMBOX_ACK_STS, base + DAC960_PD_IDB_OFFSET);
} }
static inline void DAC960_PD_gen_intr(void __iomem *base)
{
writeb(DAC960_PD_IDB_GEN_IRQ, base + DAC960_PD_IDB_OFFSET);
}
static inline void DAC960_PD_reset_ctrl(void __iomem *base) static inline void DAC960_PD_reset_ctrl(void __iomem *base)
{ {
writeb(DAC960_PD_IDB_CTRL_RESET, base + DAC960_PD_IDB_OFFSET); writeb(DAC960_PD_IDB_CTRL_RESET, base + DAC960_PD_IDB_OFFSET);
...@@ -3152,13 +3088,6 @@ static inline void DAC960_PD_disable_intr(void __iomem *base) ...@@ -3152,13 +3088,6 @@ static inline void DAC960_PD_disable_intr(void __iomem *base)
writeb(0, base + DAC960_PD_IRQEN_OFFSET); writeb(0, base + DAC960_PD_IRQEN_OFFSET);
} }
static inline bool DAC960_PD_intr_enabled(void __iomem *base)
{
unsigned char imask = readb(base + DAC960_PD_IRQEN_OFFSET);
return imask & DAC960_PD_IRQMASK_ENABLE_IRQ;
}
static inline void DAC960_PD_write_cmd_mbox(void __iomem *base, static inline void DAC960_PD_write_cmd_mbox(void __iomem *base,
union myrb_cmd_mbox *mbox) union myrb_cmd_mbox *mbox)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment