Skip to content

Commit 603c334

Browse files
Tom Rixkuba-moo
authored andcommitted
liquidio: remove unused IQ_INSTR_MODE_64B function
clang with W=1 reports drivers/net/ethernet/cavium/liquidio/request_manager.c:43:19: error: unused function 'IQ_INSTR_MODE_64B' [-Werror,-Wunused-function] static inline int IQ_INSTR_MODE_64B(struct octeon_device *oct, int iq_no) ^ This function and its macro wrapper are not used, so remove them. Signed-off-by: Tom Rix <trix@redhat.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Link: https://lore.kernel.org/r/20230321184811.1827306-1-trix@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent e4d264e commit 603c334

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

drivers/net/ethernet/cavium/liquidio/request_manager.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ static void __check_db_timeout(struct octeon_device *oct, u64 iq_no);
4040

4141
static void (*reqtype_free_fn[MAX_OCTEON_DEVICES][REQTYPE_LAST + 1]) (void *);
4242

43-
static inline int IQ_INSTR_MODE_64B(struct octeon_device *oct, int iq_no)
44-
{
45-
struct octeon_instr_queue *iq =
46-
(struct octeon_instr_queue *)oct->instr_queue[iq_no];
47-
return iq->iqcmd_64B;
48-
}
49-
50-
#define IQ_INSTR_MODE_32B(oct, iq_no) (!IQ_INSTR_MODE_64B(oct, iq_no))
51-
5243
/* Define this to return the request status comaptible to old code */
5344
/*#define OCTEON_USE_OLD_REQ_STATUS*/
5445

0 commit comments

Comments
 (0)