Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'xtensa-20181101' of git://github.com/jcmvbkbc/linux-xtensa

Pull Xtensa fixes and cleanups from Max Filippov:

- use ZONE_NORMAL instead of ZONE_DMA

- fix Image.elf build error caused by assignment of incorrect address
to the .note.Linux section

- clean up debug and property sections in the vmlinux.lds.S

* tag 'xtensa-20181101' of git://github.com/jcmvbkbc/linux-xtensa:
xtensa: clean up xtensa-specific property sections
xtensa: use DWARF_DEBUG in the vmlinux.lds.S
xtensa: add NOTES section to the linker script
xtensa: remove ZONE_DMA

+7 -36
-3
arch/xtensa/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - config ZONE_DMA 3 - def_bool y 4 - 5 2 config XTENSA 6 3 def_bool y 7 4 select ARCH_HAS_SG_CHAIN
+1 -1
arch/xtensa/boot/Makefile
··· 33 33 boot-elf boot-redboot: $(addprefix $(obj)/,$(subdir-y)) 34 34 $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS) 35 35 36 - OBJCOPYFLAGS = --strip-all -R .comment -R .note.gnu.build-id -O binary 36 + OBJCOPYFLAGS = --strip-all -R .comment -R .notes -O binary 37 37 38 38 vmlinux.bin: vmlinux FORCE 39 39 $(call if_changed,objcopy)
+5 -31
arch/xtensa/kernel/vmlinux.lds.S
··· 131 131 .fixup : { *(.fixup) } 132 132 133 133 EXCEPTION_TABLE(16) 134 + NOTES 134 135 /* Data section */ 135 136 136 137 _sdata = .; ··· 297 296 298 297 _end = .; 299 298 300 - .xt.lit : { *(.xt.lit) } 301 - .xt.prop : { *(.xt.prop) } 299 + DWARF_DEBUG 302 300 303 - .debug 0 : { *(.debug) } 304 - .line 0 : { *(.line) } 305 - .debug_srcinfo 0 : { *(.debug_srcinfo) } 306 - .debug_sfnames 0 : { *(.debug_sfnames) } 307 - .debug_aranges 0 : { *(.debug_aranges) } 308 - .debug_pubnames 0 : { *(.debug_pubnames) } 309 - .debug_info 0 : { *(.debug_info) } 310 - .debug_abbrev 0 : { *(.debug_abbrev) } 311 - .debug_line 0 : { *(.debug_line) } 312 - .debug_frame 0 : { *(.debug_frame) } 313 - .debug_str 0 : { *(.debug_str) } 314 - .debug_loc 0 : { *(.debug_loc) } 315 - .debug_macinfo 0 : { *(.debug_macinfo) } 316 - .debug_weaknames 0 : { *(.debug_weaknames) } 317 - .debug_funcnames 0 : { *(.debug_funcnames) } 318 - .debug_typenames 0 : { *(.debug_typenames) } 319 - .debug_varnames 0 : { *(.debug_varnames) } 320 - 321 - .xt.insn 0 : 322 - { 323 - *(.xt.insn) 324 - *(.gnu.linkonce.x*) 325 - } 326 - 327 - .xt.lit 0 : 328 - { 329 - *(.xt.lit) 330 - *(.gnu.linkonce.p*) 331 - } 301 + .xt.prop 0 : { KEEP(*(.xt.prop .xt.prop.* .gnu.linkonce.prop.*)) } 302 + .xt.insn 0 : { KEEP(*(.xt.insn .xt.insn.* .gnu.linkonce.x*)) } 303 + .xt.lit 0 : { KEEP(*(.xt.lit .xt.lit.* .gnu.linkonce.p*)) } 332 304 333 305 /* Sections to be discarded */ 334 306 DISCARDS
+1 -1
arch/xtensa/mm/init.c
··· 71 71 { 72 72 /* All pages are DMA-able, so we put them all in the DMA zone. */ 73 73 unsigned long zones_size[MAX_NR_ZONES] = { 74 - [ZONE_DMA] = max_low_pfn - ARCH_PFN_OFFSET, 74 + [ZONE_NORMAL] = max_low_pfn - ARCH_PFN_OFFSET, 75 75 #ifdef CONFIG_HIGHMEM 76 76 [ZONE_HIGHMEM] = max_pfn - max_low_pfn, 77 77 #endif