Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230324190647.2654293-1-trix@redhat.com

authored by

Tom Rix and committed by
Kalle Valo
21898a40 767d011d

-6
-6
drivers/bcma/driver_mips.c
··· 46 46 dev->id.id == BCMA_CORE_USB20_HOST; 47 47 } 48 48 49 - static inline u32 mips_read32(struct bcma_drv_mips *mcore, 50 - u16 offset) 51 - { 52 - return bcma_read32(mcore->core, offset); 53 - } 54 - 55 49 static u32 bcma_core_mips_irqflag(struct bcma_device *dev) 56 50 { 57 51 u32 flag;