* [PATCH] misc: hpilo: remove unused is_device_reset function
@ 2023-03-19 17:04 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2023-03-19 17:04 UTC (permalink / raw)
To: matt.hsiao, arnd, gregkh, nathan, ndesaulniers
Cc: linux-kernel, llvm, Tom Rix
clang with W=1 reports
drivers/misc/hpilo.c:395:19: error: unused function
'is_device_reset' [-Werror,-Wunused-function]
static inline int is_device_reset(struct ilo_hwinfo *hw)
^
This function is not used, so remove it.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/misc/hpilo.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/misc/hpilo.c b/drivers/misc/hpilo.c
index 8d00df9243c4..ba4b00b8bea1 100644
--- a/drivers/misc/hpilo.c
+++ b/drivers/misc/hpilo.c
@@ -392,12 +392,6 @@ static inline int is_db_reset(int db_out)
return db_out & (1 << DB_RESET);
}
-static inline int is_device_reset(struct ilo_hwinfo *hw)
-{
- /* check for global reset condition */
- return is_db_reset(get_device_outbound(hw));
-}
-
static inline void clear_pending_db(struct ilo_hwinfo *hw, int clr)
{
iowrite32(clr, &hw->mmio_vaddr[DB_OUT]);
--
2.27.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-19 17:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-19 17:04 [PATCH] misc: hpilo: remove unused is_device_reset function Tom Rix
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.