[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230319170447.1707655-1-trix@redhat.com>
Date: Sun, 19 Mar 2023 13:04:47 -0400
From: Tom Rix <trix@...hat.com>
To: matt.hsiao@....com, arnd@...db.de, gregkh@...uxfoundation.org,
nathan@...nel.org, ndesaulniers@...gle.com
Cc: linux-kernel@...r.kernel.org, llvm@...ts.linux.dev,
Tom Rix <trix@...hat.com>
Subject: [PATCH] misc: hpilo: remove unused is_device_reset function
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@...hat.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
Powered by blists - more mailing lists