linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Make arm64 headers self-contained
@ 2016-12-01 10:44 Marc Zyngier
  2016-12-01 10:44 ` [PATCH 1/2] arm64: Get rid of asm/opcodes.h Marc Zyngier
  2016-12-01 10:44 ` [PATCH 2/2] arm64: xen: Split architecture-specific headers from 32bit ARM Marc Zyngier
  0 siblings, 2 replies; 7+ messages in thread
From: Marc Zyngier @ 2016-12-01 10:44 UTC (permalink / raw)
  To: linux-arm-kernel

Wookey recently reported that the arm64 headers are not
self-contained, making it impossible to build external kernel modules
using DKMS and a distribution kernel-headers package. I do not condone
the use of out of tree modules, but there is no reason to be more
awkward than strictly necessary, and having standalone headers seems
to be a reasonable requirement.

The offenders are asm/opcodes.h, which drags its 32bit counterpart
despite only requiring a handful of macros, and a bunch of Xen files
that directly include their 32bit equivalent.

This series solves the issue in two ways:

- asm/opcodes.h is killed, and the few required macros moved added at
  the required locations

- asm/xen/* are brutally copied oved. It'd be better if they were
  placed in a common location (include/xen/ ?), but at least that
  solves it for now

Patches on top of -rc6.

Marc Zyngier (2):
  arm64: Get rid of asm/opcodes.h
  arm64: xen: Split architecture-specific headers from 32bit ARM

 arch/arm64/include/asm/opcodes.h           |   5 --
 arch/arm64/include/asm/sysreg.h            |  16 ++--
 arch/arm64/include/asm/xen/hypercall.h     |  88 ++++++++++++++++++++-
 arch/arm64/include/asm/xen/hypervisor.h    |  40 +++++++++-
 arch/arm64/include/asm/xen/interface.h     |  86 +++++++++++++++++++-
 arch/arm64/include/asm/xen/page-coherent.h |  99 ++++++++++++++++++++++-
 arch/arm64/include/asm/xen/page.h          | 123 ++++++++++++++++++++++++++++-
 arch/arm64/kernel/armv8_deprecated.c       |   5 +-
 arch/arm64/kernel/insn.c                   |   1 -
 9 files changed, 445 insertions(+), 18 deletions(-)
 delete mode 100644 arch/arm64/include/asm/opcodes.h

-- 
2.1.4

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

end of thread, other threads:[~2016-12-02 18:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-01 10:44 [PATCH 0/2] Make arm64 headers self-contained Marc Zyngier
2016-12-01 10:44 ` [PATCH 1/2] arm64: Get rid of asm/opcodes.h Marc Zyngier
2016-12-02 10:58   ` Catalin Marinas
2016-12-02 18:56     ` Stefano Stabellini
2016-12-01 10:44 ` [PATCH 2/2] arm64: xen: Split architecture-specific headers from 32bit ARM Marc Zyngier
2016-12-01 22:17   ` Stefano Stabellini
2016-12-02  9:09     ` Marc Zyngier

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).