mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] staging: octeon: remove unused cvmx_pko_get_base_queue_per_core() stub
@ 2026-10-31 16:09 Rareș-Mihai Vladu
  2026-10-31 20:30 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 3+ messages in thread
From: Rareș-Mihai Vladu @ 2026-10-31 16:09 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-staging, linux-kernel, 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.

Signed-off-by: Rareș-Mihai Vladu <vladurares@gmail.com>
---
 drivers/staging/octeon/octeon-stubs.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/staging/octeon/octeon-stubs.h b/drivers/staging/octeon/octeon-stubs.h
index 9c1968b7e2d10..ac7a98093398d 100644
--- a/drivers/staging/octeon/octeon-stubs.h
+++ b/drivers/staging/octeon/octeon-stubs.h
@@ -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;
-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] staging: octeon: remove unused cvmx_pko_get_base_queue_per_core() stub
  2026-10-31 16:09 [PATCH] staging: octeon: remove unused cvmx_pko_get_base_queue_per_core() stub Rareș-Mihai Vladu
@ 2026-10-31 20:30 ` Greg Kroah-Hartman
  2026-10-31 21:00   ` Vladu Rares
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Kroah-Hartman @ 2026-10-31 20:30 UTC (permalink / raw)
  To: Rareș-Mihai Vladu; +Cc: linux-staging, linux-kernel

On Sat, Oct 31, 2026 at 04:09:02PM +0000, Rareș-Mihai Vladu wrote:
> 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.
> 
> Signed-off-by: Rareș-Mihai Vladu <vladurares@gmail.com>

How was this found and tested?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] staging: octeon: remove unused cvmx_pko_get_base_queue_per_core() stub
  2026-10-31 20:30 ` Greg Kroah-Hartman
@ 2026-10-31 21:00   ` Vladu Rares
  0 siblings, 0 replies; 3+ messages in thread
From: Vladu Rares @ 2026-10-31 21:00 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-staging, linux-kernel

On Sat, 31 Oct 2026 at 22:31, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
>
> On Sat, Oct 31, 2026 at 04:09:02PM +0000, Rareș-Mihai Vladu wrote:
> > 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.
> >
> > Signed-off-by: Rareș-Mihai Vladu <vladurares@gmail.com>
>
> 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ș

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-31 21:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-31 16:09 [PATCH] staging: octeon: remove unused cvmx_pko_get_base_queue_per_core() stub Rareș-Mihai Vladu
2026-10-31 20:30 ` Greg Kroah-Hartman
2026-10-31 21:00   ` Vladu Rares

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®