Skip to contentSkip to conversation

bcma: remove unused mips_read32 function

PATCH In review Tom Rix 3 participants 3 messages Mar 24, 2023 – Mar 31, 2023 Broadcom specific amba driver (bcma)

lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 bcma: remove unused mips_read32 function

clang with W=1 reports drivers/bcma/driver_mips.c:49:19: error: unused function
'mips_read32' [-Werror,-Wunused-function]
static inline u32 mips_read32(struct bcma_drv_mips *mcore,

                  ^

This function is not used so remove it.

---
 drivers/bcma/driver_mips.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/bcma/driver_mips.c +0 -6
index 4f01e6b17bb9..9be0806eb033 100644
@@ -46,12 +46,6 @@ static inline bool bcma_core_mips_bcm5357b0_quirk(struct bcma_device *dev)
 	       dev->id.id == BCMA_CORE_USB20_HOST;
 }
 
-static inline u32 mips_read32(struct bcma_drv_mips *mcore,
-			      u16 offset)
-{
-	return bcma_read32(mcore->core, offset);
-}
-
 static u32 bcma_core_mips_irqflag(struct bcma_device *dev)
 {
 	u32 flag;
Signature · 1 line
2.27.0
#2 lore raw
In reply to Tom Rix
Quoted 9 lines · Tom Rix

clang with W=1 reports drivers/bcma/driver_mips.c:49:19: error: unused function
'mips_read32' [-Werror,-Wunused-function]
static inline u32 mips_read32(struct bcma_drv_mips *mcore,

                  ^

This function is not used so remove it.

Patch applied to wireless-next.git, thanks.

21898a40b2f8 bcma: remove unused mips_read32 function

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches