Skip to content

RFC ARM: Add default system.h and uncompress.h

Rob Herring linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ARM: include mach headers before common arm headersarch/arm/Makefile+2 -20 replies
2/3ARM: add a default mach/uncompress.h headerarch/arm/include/mach/uncompress.h+9 -00 replies
3/3ARM: add a default mach/system.h headerarch/arm/include/mach/system.h arch/arm/kernel/process.c+17 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/3] ARM: Add default system.h and uncompress.h

From: Rob Herring <[email protected]>

This is a relatively simple way to remove the platform requirement for some header files without making changes in every existing platform. It's perhaps not a solution for the difficult cases, but can get the simple cases out of the way making it clear what remains to be fixed. I've done this for system.h and uncompress.h so far. timex.h and io.h may be additional candidates.

One downside is you lose print capability in the decompressor. However, I don't think the complexity that adds is worth the 1 line print. Perhaps the include path ordering could be conditionalized on a config setting for multi-platform kernels such that the platform's headers are used on single machine kernels. There's already such a limitation on LL_DEBUG.

Rob

Rob Herring (3):
ARM: include mach headers before common arm headers
ARM: add a default mach/uncompress.h header
ARM: add a default mach/system.h header

 arch/arm/Makefile                  |    4 ++--
 arch/arm/include/mach/system.h     |   13 +++++++++++++
 arch/arm/include/mach/uncompress.h |    9 +++++++++
 arch/arm/kernel/process.c          |    5 ++++-
 4 files changed, 28 insertions(+), 3 deletions(-)
 create mode 100644 arch/arm/include/mach/system.h
 create mode 100644 arch/arm/include/mach/uncompress.h
Signature · 1 line
1.7.4.1