Skip to content

sparc32: kgdb_32 and STRICT_MM_TYPECHECKS updates

Sam Ravnborg sparclinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5sparc32: drop hardcoding trap_level in kgdb_traparch/sparc/include/asm/head_32.h arch/sparc/include/asm/kgdb.h arch/sparc/kernel/entry.S +1 more+12 -140 replies
2/5sparc32: drop local prototype in kgdb_32arch/sparc/kernel/kgdb_32.c+2 -20 replies
3/5sparc32: use proper prototype for trapbasearch/sparc/kernel/kernel.h arch/sparc/kernel/kgdb_32.c arch/sparc/kernel/setup_32.c+3 -50 replies
4/5sparc32: fix build with STRICT_MM_TYPECHECKSarch/sparc/include/asm/page_32.h arch/sparc/include/asm/pgalloc_32.h arch/sparc/include/asm/pgtable_32.h +2 more+14 -110 replies
5/5sparc32: drop superfluous cast in calls to __nocache_pa()arch/sparc/include/asm/pgalloc_32.h arch/sparc/mm/srmmu.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] sparc32: kgdb_32 and STRICT_MM_TYPECHECKS updates

A few cosmetic pathes for sparc32 follows.
I noticed some inconsistency in kgdb_32 that triggered a few patches. The inconsistency in kgdb_32 turned out to have no functional impact. But I anyway fixed it so kgdb_32 and kgdb_64 became just a tiny bit more alike.

The STRICT_MM_TYPECHECKS patch was triggered by a discussion on linux-arch where Arnd considered removing this cruft.
The resulting benary of srmmu.c (I checked an assembler file) was _smaller_ when I defined STRICT_MM_TYPECHECKS. But due to lack of testing I left it undefined. With the build errors fixed it should be trivial to try out if defining STRICT_MM_TYPECHECKS breaks anything.

Any takers?

As I miss any working sparc32 gear for the moment this has only been build tested - so please consider if it is worth taking the risk to apply the patches.

Sam

Sam Ravnborg (5):
sparc32: drop hardcoding trap_level in kgdb_trap
sparc32: drop local prototype in kgdb_32
sparc32: use proper prototype for trapbase
sparc32: fix build with STRICT_MM_TYPECHECKS
sparc32: drop superfluous cast in calls to __nocache_pa()

 arch/sparc/include/asm/head_32.h    |  8 ++++----
 arch/sparc/include/asm/kgdb.h       |  2 +-
 arch/sparc/include/asm/page_32.h    |  2 --
 arch/sparc/include/asm/pgalloc_32.h |  4 ++--
 arch/sparc/include/asm/pgtable_32.h |  2 +-
 arch/sparc/kernel/entry.S           | 10 ++++------
 arch/sparc/kernel/kernel.h          |  1 +
 arch/sparc/kernel/kgdb_32.c         | 11 +++++------
 arch/sparc/kernel/setup_32.c        |  4 +---
 arch/sparc/mm/io-unit.c             |  4 ++--
 arch/sparc/mm/srmmu.c               | 19 ++++++++++++-------
 11 files changed, 33 insertions(+), 34 deletions(-)