Skip to contentSkip to conversation

staging: octeon: remove unused cvmx_pko_get_base_queue_per_core() stub

PATCH In review Rareș-Mihai Vladu 2 participants 3 messages Oct 31 Staging

lore
Share & tools
lore
#0 lore raw

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
index 9c1968b7e2d10..ac7a98093398d 100644
@@ -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
#2 lore raw
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 for COMPILE_TEST builds is never called. Remove it.

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ș