RFC ARM: Add default system.h and uncompress.h
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ARM: include mach headers before common arm headersarch/ | +2 | 0 replies | |
| 2/3 | ARM: add a default mach/uncompress.h headerarch/ | +9 | 0 replies | |
| 3/3 | ARM: add a default mach/system.h headerarch/ arch/ | +17 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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