linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/24] MIPS: OCTEON: cleanups
@ 2018-11-21 22:37 Aaro Koskinen
  2018-11-21 22:37 ` [PATCH 01/24] MIPS: OCTEON: cvmx-l2c: make cvmx_l2c_spinlock static Aaro Koskinen
                   ` (24 more replies)
  0 siblings, 25 replies; 27+ messages in thread
From: Aaro Koskinen @ 2018-11-21 22:37 UTC (permalink / raw)
  To: Ralf Baechle, Paul Burton, James Hogan, linux-mips; +Cc: Aaro Koskinen

Hi,

I noticed some noise from "sparse" when compiling OCTEON platform code,
and started to fix some of the most obvious issues (e.g. adding includes
for missing function declarations, using static where appropriate
etc.). Then I also got around to deleting some of the dead code.
We have some insanely large include files, and two of the biggest ones
should be now closer to normal..

Boot tested on OCTEON+ (EdgeRouter Lite) and OCTEON 2 (EdgeRouter Pro).

Build tested with cavium_octeon_defconfig.

A.

Aaro Koskinen (24):
  MIPS: OCTEON: cvmx-l2c: make cvmx_l2c_spinlock static
  MIPS: OCTEON: setup: make internal functions and data static
  MIPS: OCTEON: setup: include asm/fw/fw.h
  MIPS: OCTEON: setup: include asm/prom.h
  MIPS: OCTEON: cvmx-helper: make
    __cvmx_helper_errata_fix_ipd_ptr_alignment static
  MIPS: OCTEON: delete unused loopback configuration functions
  MIPS: OCTEON: octeon-platform: make octeon_ids static
  MIPS: OCTEON: octeon-platform: fix typing
  MIPS: OCTEON: octeon-irq: make octeon_irq_ciu3_set_affinity() static
  MIPS: OCTEON: csrc-octeon: include linux/sched/clock.h
  MIPS: OCTEON: smp: make internal symbols static
  MIPS: OCTEON: cvmx-helper-util: delete cvmx_helper_dump_packet
  MIPS: OCTEON: cvmx-helper-util: make cvmx_helper_setup_red_queue
    static
  MIPS: OCTEON: make cvmx_bootmem_alloc_range static
  MIPS: OCTEON: cvmx-bootmem: delete unused functions
  MIPS: OCTEON: cvmx-bootmem: move code to avoid forward declarations
  MIPS: OCTEON: cvmx-bootmem: make more functions static
  MIPS: OCTEON: delete cvmx override functions
  MIPS: OCTEON: gmxx-defs.h: delete unused functions and macros
  MIPS: OCTEON: cvmx-gmxx-defs.h: delete unused unions
  MIPS: OCTEON: cvmx-gmxx-defs.h: delete unused union fields
  MIPS: OCTEON: cvmx-gmxx-defs.h: use default register value return when
    possible
  MIPS: OCTEON: cvmx-ciu2-defs.h: delete unused macros
  MIPS: OCTEON: cvmx-ciu2-defs.h: delete unused unions

 arch/mips/cavium-octeon/csrc-octeon.c         |    1 +
 .../cavium-octeon/executive/cvmx-bootmem.c    |  149 +-
 .../executive/cvmx-helper-rgmii.c             |   68 -
 .../executive/cvmx-helper-sgmii.c             |   38 -
 .../executive/cvmx-helper-util.c              |   90 +-
 .../executive/cvmx-helper-xaui.c              |   39 -
 .../cavium-octeon/executive/cvmx-helper.c     |   87 +-
 arch/mips/cavium-octeon/executive/cvmx-l2c.c  |    2 +-
 arch/mips/cavium-octeon/octeon-irq.c          |    4 +-
 arch/mips/cavium-octeon/octeon-platform.c     |    4 +-
 arch/mips/cavium-octeon/setup.c               |    8 +-
 arch/mips/cavium-octeon/smp.c                 |    4 +-
 arch/mips/include/asm/octeon/cvmx-bootmem.h   |   76 -
 arch/mips/include/asm/octeon/cvmx-ciu2-defs.h | 7060 -----------------
 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h | 4940 +-----------
 .../include/asm/octeon/cvmx-helper-rgmii.h    |   17 -
 .../include/asm/octeon/cvmx-helper-sgmii.h    |   17 -
 .../include/asm/octeon/cvmx-helper-util.h     |   23 -
 .../include/asm/octeon/cvmx-helper-xaui.h     |   16 -
 arch/mips/include/asm/octeon/cvmx-helper.h    |   36 -
 20 files changed, 295 insertions(+), 12384 deletions(-)

-- 
2.17.0

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

end of thread, other threads:[~2018-11-21 23:44 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-21 22:37 [PATCH 00/24] MIPS: OCTEON: cleanups Aaro Koskinen
2018-11-21 22:37 ` [PATCH 01/24] MIPS: OCTEON: cvmx-l2c: make cvmx_l2c_spinlock static Aaro Koskinen
2018-11-21 22:37 ` [PATCH 02/24] MIPS: OCTEON: setup: make internal functions and data static Aaro Koskinen
2018-11-21 22:37 ` [PATCH 03/24] MIPS: OCTEON: setup: include asm/fw/fw.h Aaro Koskinen
2018-11-21 22:37 ` [PATCH 04/24] MIPS: OCTEON: setup: include asm/prom.h Aaro Koskinen
2018-11-21 22:37 ` [PATCH 05/24] MIPS: OCTEON: cvmx-helper: make __cvmx_helper_errata_fix_ipd_ptr_alignment static Aaro Koskinen
2018-11-21 22:37 ` [PATCH 06/24] MIPS: OCTEON: delete unused loopback configuration functions Aaro Koskinen
2018-11-21 22:37 ` [PATCH 07/24] MIPS: OCTEON: octeon-platform: make octeon_ids static Aaro Koskinen
2018-11-21 22:37 ` [PATCH 08/24] MIPS: OCTEON: octeon-platform: fix typing Aaro Koskinen
2018-11-21 22:37 ` [PATCH 09/24] MIPS: OCTEON: octeon-irq: make octeon_irq_ciu3_set_affinity() static Aaro Koskinen
2018-11-21 22:37 ` [PATCH 10/24] MIPS: OCTEON: csrc-octeon: include linux/sched/clock.h Aaro Koskinen
2018-11-21 22:37 ` [PATCH 11/24] MIPS: OCTEON: smp: make internal symbols static Aaro Koskinen
2018-11-21 22:37 ` [PATCH 12/24] MIPS: OCTEON: cvmx-helper-util: delete cvmx_helper_dump_packet Aaro Koskinen
2018-11-21 22:37 ` [PATCH 13/24] MIPS: OCTEON: cvmx-helper-util: make cvmx_helper_setup_red_queue static Aaro Koskinen
2018-11-21 22:37 ` [PATCH 14/24] MIPS: OCTEON: make cvmx_bootmem_alloc_range static Aaro Koskinen
2018-11-21 22:37 ` [PATCH 15/24] MIPS: OCTEON: cvmx-bootmem: delete unused functions Aaro Koskinen
2018-11-21 22:37 ` [PATCH 16/24] MIPS: OCTEON: cvmx-bootmem: move code to avoid forward declarations Aaro Koskinen
2018-11-21 22:37 ` [PATCH 17/24] MIPS: OCTEON: cvmx-bootmem: make more functions static Aaro Koskinen
2018-11-21 22:37 ` [PATCH 18/24] MIPS: OCTEON: delete cvmx override functions Aaro Koskinen
2018-11-21 22:37 ` [PATCH 19/24] MIPS: OCTEON: gmxx-defs.h: delete unused functions and macros Aaro Koskinen
2018-11-21 22:37 ` [PATCH 20/24] MIPS: OCTEON: cvmx-gmxx-defs.h: delete unused unions Aaro Koskinen
2018-11-21 22:37 ` [PATCH 21/24] MIPS: OCTEON: cvmx-gmxx-defs.h: delete unused union fields Aaro Koskinen
2018-11-21 22:37 ` [PATCH 22/24] MIPS: OCTEON: cvmx-gmxx-defs.h: use default register value return when possible Aaro Koskinen
2018-11-21 22:37 ` [PATCH 23/24] MIPS: OCTEON: cvmx-ciu2-defs.h: delete unused macros Aaro Koskinen
2018-11-21 22:37 ` [PATCH 24/24] MIPS: OCTEON: cvmx-ciu2-defs.h: delete unused unions Aaro Koskinen
2018-11-21 23:43 ` [PATCH 00/24] MIPS: OCTEON: cleanups Paul Burton
2018-11-21 23:43   ` Paul Burton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).