Skip to content

Commit

Permalink
MIPS: octeon: Remove unused functions
Browse files Browse the repository at this point in the history
cvmx_helper_initialize_packet_io_local() is unused and after removing
it cvmx_pko_initialize_local() is also unused.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
  • Loading branch information
Thomas Bogendoerfer committed Oct 24, 2021
1 parent 169dd5f commit d6c7c37
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 32 deletions.
10 changes: 0 additions & 10 deletions arch/mips/cavium-octeon/executive/cvmx-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1055,16 +1055,6 @@ int cvmx_helper_initialize_packet_io_global(void)
}
EXPORT_SYMBOL_GPL(cvmx_helper_initialize_packet_io_global);

/**
* Does core local initialization for packet io
*
* Returns Zero on success, non-zero on failure
*/
int cvmx_helper_initialize_packet_io_local(void)
{
return cvmx_pko_initialize_local();
}

/**
* Return the link state of an IPD/PKO port as returned by
* auto negotiation. The result of this function may not match
Expand Down
14 changes: 0 additions & 14 deletions arch/mips/cavium-octeon/executive/cvmx-pko.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,20 +229,6 @@ void cvmx_pko_initialize_global(void)
}
}

/*
* This function does per-core initialization required by the PKO routines.
* This must be called on all cores that will do packet output, and must
* be called after the FPA has been initialized and filled with pages.
*
* Returns 0 on success
* !0 on failure
*/
int cvmx_pko_initialize_local(void)
{
/* Nothing to do */
return 0;
}

/*
* Enables the packet output hardware. It must already be
* configured.
Expand Down
7 changes: 0 additions & 7 deletions arch/mips/include/asm/octeon/cvmx-helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,6 @@ extern int cvmx_helper_ipd_and_packet_input_enable(void);
*/
extern int cvmx_helper_initialize_packet_io_global(void);

/**
* Does core local initialization for packet io
*
* Returns Zero on success, non-zero on failure
*/
extern int cvmx_helper_initialize_packet_io_local(void);

/**
* Returns the number of ports on the given interface.
* The interface must be initialized before the port count
Expand Down
1 change: 0 additions & 1 deletion arch/mips/include/asm/octeon/cvmx-pko.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ typedef struct {
* output system.
*/
extern void cvmx_pko_initialize_global(void);
extern int cvmx_pko_initialize_local(void);

/**
* Enables the packet output hardware. It must already be
Expand Down

0 comments on commit d6c7c37

Please sign in to comment.