staging: octeon: remove unused cvmx_pko_get_base_queue_per_core() stub
PATCH 1/1 staging: octeon: remove unused cvmx_pko_get_base_queue_per_core() stub
cvmx_pko_get_base_queue_per_core() is not used by the driver, so its stub for COMPILE_TEST builds is never called. Remove it.
--- drivers/staging/octeon/octeon-stubs.h | 5 ----- 1 file changed, 5 deletions(-)
drivers/staging/octeon/octeon-stubs.h +0 -5
@@ -1323,11 +1323,6 @@ static inline void cvmx_pko_disable(void)static inline void cvmx_pko_shutdown (void ) { } -static inline int cvmx_pko_get_base_queue_per_core (int port,int core) -{ -return port; -} -static inline int cvmx_pko_get_base_queue (int port) {return port;
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerQuoted 4 lines · Rareș-Mihai Vladu
cvmx_pko_get_base_queue_per_core()is not used by the driver, so its stub forCOMPILE_TESTbuilds is never called. Remove it.Signed-off-by Rareș-Mihai Vladu <[email protected]>
How was this found and tested?
Quoted 8 lines · Greg Kroah-Hartman
Quoted 4 lines · Rareș-Mihai Vladu
cvmx_pko_get_base_queue_per_core()is not used by the driver, so its stub forCOMPILE_TESTbuilds is never called. Remove it.Signed-off-by Rareș-Mihai Vladu <[email protected]>How was this found and tested?
I found it by checking every function and macro defined in octeon-stubs.h against the rest of the driver with grep. This was the only stub with no user. The real cvmx_pko_get_base_queue_per_core() in arch/mips is still used there and is not touched.
octeon-stubs.h is only included from octeon-ethernet.h when CONFIG_CAVIUM_OCTEON_SOC is not set, so the change only affects COMPILE_TEST builds. I built the driver with COMPILE_TEST on x86_64 and it builds without warnings.
I can send a v2 with this in the changelog if you want.
Thanks,
Rareș