net: liquidio: Remove unused declarations
Subsystems (3)
PATCH 1/1 net: liquidio: Remove unused declarations
Commit da15c78b5664 ("liquidio CN23XX: VF register access") declared cn23xx_dump_vf_initialized_regs() but never implemented it.
octeon_dump_soft_command() is never implemented and used since introduction in commit 35878618c92d ("liquidio: Added delayed work for periodically updating the link statistics.").
And finally, a few other declarations were never implenmented since introduction in commit f21fb3ed364b ("Add support of Cavium Liquidio ethernet adapters").
--- drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.h | 2 -- drivers/net/ethernet/cavium/liquidio/cn66xx_device.h | 1 - drivers/net/ethernet/cavium/liquidio/octeon_device.h | 7 ------- drivers/net/ethernet/cavium/liquidio/octeon_droq.h | 2 -- drivers/net/ethernet/cavium/liquidio/octeon_iq.h | 3 --- 5 files changed, 15 deletions(-)
drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.h +0 -2
@@ -43,6 +43,4 @@ int cn23xx_octeon_pfvf_handshake(struct octeon_device *oct);int cn23xx_setup_octeon_vf_device (struct octeon_device *oct);u32 cn23xx_vf_get_oq_ticks (struct octeon_device *oct,u32 time_intr_in_us); - -void cn23xx_dump_vf_initialized_regs (struct octeon_device *oct);#endif
drivers/net/ethernet/cavium/liquidio/cn66xx_device.h +0 -1
@@ -86,7 +86,6 @@ u32 lio_cn6xxx_update_read_index(struct octeon_instr_queue *iq);void lio_cn6xxx_enable_interrupt (struct octeon_device *oct,u8 unused);void lio_cn6xxx_disable_interrupt (struct octeon_device *oct,u8 unused); -void cn6xxx_get_pcie_qlmport (struct octeon_device *oct);void lio_cn6xxx_setup_reg_address (struct octeon_device *oct,void *chip,struct octeon_reg_list *reg_list);u32 lio_cn6xxx_coprocessor_clock (struct octeon_device *oct);
drivers/net/ethernet/cavium/liquidio/octeon_device.h +0 -7
@@ -804,13 +804,6 @@ int octeon_init_consoles(struct octeon_device *oct);int octeon_add_console (struct octeon_device *oct,u32 console_num,char *dbg_enb); -/** write or read from a console */ -int octeon_console_write (struct octeon_device *oct,u32 console_num, -char *buffer,u32 write_request_size,u32 flags); -int octeon_console_write_avail (struct octeon_device *oct,u32 console_num); - -int octeon_console_read_avail (struct octeon_device *oct,u32 console_num); -/** Removes all attached consoles. */ void octeon_remove_consoles (struct octeon_device *oct);
drivers/net/ethernet/cavium/liquidio/octeon_droq.h +0 -2
@@ -395,8 +395,6 @@ int octeon_register_dispatch_fn(struct octeon_device *oct,void *octeon_get_dispatch_arg (struct octeon_device *oct,u16 opcode,u16 subcode); -void octeon_droq_print_stats (void ); -u32 octeon_droq_check_hw_for_pkts (struct octeon_droq *droq); int octeon_create_droq(struct octeon_device *oct, u32 q_no,
drivers/net/ethernet/cavium/liquidio/octeon_iq.h +0 -3
@@ -378,9 +378,6 @@ int octeon_send_command(struct octeon_device *oct, u32 iq_no, u32 force_db, void *cmd, void *buf, u32 datasize, u32 reqtype); -void octeon_dump_soft_command (struct octeon_device *oct, -struct octeon_soft_command *sc); - void octeon_prepare_soft_command(struct octeon_device *oct, struct octeon_soft_command *sc, u8 opcode, u8 subcode,
Signature · 1 line
2.34.1
Quoted 11 lines · Yue Haibing
Commit
da15c78b5664("liquidio CN23XX: VF register access") declaredcn23xx_dump_vf_initialized_regs()but never implemented it.
octeon_dump_soft_command()is never implemented and used since introduction in commit35878618c92d("liquidio: Added delayed work for periodically updating the link statistics.").And finally, a few other declarations were never implenmented since introduction in commit
f21fb3ed364b("Add support of Cavium Liquidio ethernet adapters").Signed-off-by Yue Haibing <[email protected]>
Thanks, I looked over the git history of this driver and agree with the analysis above.
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Sat, 24 Aug 2024 16:31:07 +0800 you wrote:
Commit
da15c78b5664("liquidio CN23XX: VF register access") declaredcn23xx_dump_vf_initialized_regs()but never implemented it.
octeon_dump_soft_command()is never implemented and used since introduction in commit35878618c92d("liquidio: Added delayed work for periodically updating the link statistics.").[...]
Here is the summary with links:
- [net-next] net: liquidio: Remove unused declarations
https://git.kernel.org/netdev/net-next/c/0eaebf738e6e
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html