Messages in this thread Patch in this message | | | From | Rasmus Villemoes <> | Subject | [PATCH 09/10] arm64: select DYNAMIC_DEBUG_RELATIVE_POINTERS | Date | Tue, 9 Apr 2019 23:25:16 +0200 |
| |
Similar to GENERIC_BUG_RELATIVE_POINTERS, one can now relativize the four const char* members of struct _ddebug, thus saving 16 bytes per instance (one for each pr_debug(), dev_debug() etc. in a CONFIG_DYNAMIC_DEBUG kernel). The asm-generic implementation seems to work out-of-the-box, though this is only compile-tested.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/Kbuild | 1 + 2 files changed, 2 insertions(+)
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7e34b9eba5de..d0871d523d5d 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -83,6 +83,7 @@ config ARM64 select CRC32 select DCACHE_WORD_ACCESS select DMA_DIRECT_REMAP + select DYNAMIC_DEBUG_RELATIVE_POINTERS select EDAC_SUPPORT select FRAME_POINTER select GENERIC_ALLOCATOR diff --git a/arch/arm64/include/asm/Kbuild b/arch/arm64/include/asm/Kbuild index 1e17ea5c372b..1ead0d645686 100644 --- a/arch/arm64/include/asm/Kbuild +++ b/arch/arm64/include/asm/Kbuild @@ -3,6 +3,7 @@ generic-y += delay.h generic-y += div64.h generic-y += dma.h generic-y += dma-contiguous.h +generic-y += dynamic_debug.h generic-y += early_ioremap.h generic-y += emergency-restart.h generic-y += hw_irq.h -- 2.20.1
| |