diff mbox series

liquidio: remove unused IQ_INSTR_MODE_64B function

Message ID 20230321184811.1827306-1-trix@redhat.com (mailing list archive)
State Accepted
Commit 603c3345589de01e26c93d3a74413af6ca1c93b9
Delegated to: Netdev Maintainers
Headers show
Series liquidio: remove unused IQ_INSTR_MODE_64B function | expand

Checks

Context Check Description
netdev/series_format warning Single patches do not need cover letters; Target tree name not specified in the subject
netdev/tree_selection success Guessed tree name to be net-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 18 this patch: 18
netdev/cc_maintainers success CCed 12 of 12 maintainers
netdev/build_clang success Errors and warnings before: 20 this patch: 18
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 19 this patch: 19
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 15 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 1 now: 0

Commit Message

Tom Rix March 21, 2023, 6:48 p.m. UTC
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>
---
 drivers/net/ethernet/cavium/liquidio/request_manager.c | 9 ---------
 1 file changed, 9 deletions(-)

Comments

Simon Horman March 22, 2023, 4:48 p.m. UTC | #1
On Tue, Mar 21, 2023 at 02:48:11PM -0400, Tom Rix wrote:
> 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>
patchwork-bot+netdevbpf@kernel.org March 23, 2023, 5:10 a.m. UTC | #2
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue, 21 Mar 2023 14:48:11 -0400 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - liquidio: remove unused IQ_INSTR_MODE_64B function
    https://git.kernel.org/netdev/net-next/c/603c3345589d

You are awesome, thank you!
diff mbox series

Patch

diff --git a/drivers/net/ethernet/cavium/liquidio/request_manager.c b/drivers/net/ethernet/cavium/liquidio/request_manager.c
index 8e59c2825533..32f854c0cd79 100644
--- a/drivers/net/ethernet/cavium/liquidio/request_manager.c
+++ b/drivers/net/ethernet/cavium/liquidio/request_manager.c
@@ -40,15 +40,6 @@  static void  __check_db_timeout(struct octeon_device *oct, u64 iq_no);
 
 static void (*reqtype_free_fn[MAX_OCTEON_DEVICES][REQTYPE_LAST + 1]) (void *);
 
-static inline int IQ_INSTR_MODE_64B(struct octeon_device *oct, int iq_no)
-{
-	struct octeon_instr_queue *iq =
-	    (struct octeon_instr_queue *)oct->instr_queue[iq_no];
-	return iq->iqcmd_64B;
-}
-
-#define IQ_INSTR_MODE_32B(oct, iq_no)  (!IQ_INSTR_MODE_64B(oct, iq_no))
-
 /* Define this to return the request status comaptible to old code */
 /*#define OCTEON_USE_OLD_REQ_STATUS*/