MIPS: OCTEON: cvmx-helper-util: make cvmx_helper_setup_red_queue static
authorAaro Koskinen <aaro.koskinen@iki.fi>
Wed, 21 Nov 2018 22:37:34 +0000 (00:37 +0200)
committerPaul Burton <paul.burton@mips.com>
Wed, 21 Nov 2018 23:36:46 +0000 (15:36 -0800)
Make cvmx_helper_setup_red_queue static, it's not used outside this file.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/21194/
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@linux-mips.org
arch/mips/cavium-octeon/executive/cvmx-helper-util.c
arch/mips/include/asm/octeon/cvmx-helper-util.h

index 5e353a91138ee86c36d37f11552038296b1883ef..53b912745dbdb3b05517d0c67ae1aa590698852b 100644 (file)
@@ -92,7 +92,8 @@ const char *cvmx_helper_interface_mode_to_string(cvmx_helper_interface_mode_t
  *              than this many free packet buffers in FPA 0.
  * Returns Zero on success. Negative on failure
  */
  *              than this many free packet buffers in FPA 0.
  * Returns Zero on success. Negative on failure
  */
-int cvmx_helper_setup_red_queue(int queue, int pass_thresh, int drop_thresh)
+static int cvmx_helper_setup_red_queue(int queue, int pass_thresh,
+                                      int drop_thresh)
 {
        union cvmx_ipd_qosx_red_marks red_marks;
        union cvmx_ipd_red_quex_param red_param;
 {
        union cvmx_ipd_qosx_red_marks red_marks;
        union cvmx_ipd_red_quex_param red_param;
index d88e3abb16c19f7c5d8c21f2c80ec48faf292e87..e9a97e7ee6042b64d6e134cca592ab7c633955d2 100644 (file)
 extern const char
     *cvmx_helper_interface_mode_to_string(cvmx_helper_interface_mode_t mode);
 
 extern const char
     *cvmx_helper_interface_mode_to_string(cvmx_helper_interface_mode_t mode);
 
-/**
- * Setup Random Early Drop on a specific input queue
- *
- * @queue:  Input queue to setup RED on (0-7)
- * @pass_thresh:
- *              Packets will begin slowly dropping when there are less than
- *              this many packet buffers free in FPA 0.
- * @drop_thresh:
- *              All incoming packets will be dropped when there are less
- *              than this many free packet buffers in FPA 0.
- * Returns Zero on success. Negative on failure
- */
-extern int cvmx_helper_setup_red_queue(int queue, int pass_thresh,
-                                      int drop_thresh);
-
 /**
  * Setup Random Early Drop to automatically begin dropping packets.
  *
 /**
  * Setup Random Early Drop to automatically begin dropping packets.
  *