]> git.baikalelectronics.ru Git - kernel.git/commit
s390: correct __bootdata / __bootdata_preserved macros
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 26 Oct 2020 09:52:26 +0000 (10:52 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 26 Oct 2020 13:18:01 +0000 (14:18 +0100)
commit057fc6e263e9b86611897d86bce3cc81609e8b4e
treea0cf298bddcbe490bd8da1854bc2739a0443c712
parenta1fe7c755400af92f0070a66f48f00b659aeacac
s390: correct __bootdata / __bootdata_preserved macros

Currently s390 build is broken.

  SECTCMP .boot.data
error: section .boot.data differs between vmlinux and arch/s390/boot/compressed/vmlinux
make[2]: *** [arch/s390/boot/section_cmp.boot.data] Error 1
  SECTCMP .boot.preserved.data
error: section .boot.preserved.data differs between vmlinux and arch/s390/boot/compressed/vmlinux
make[2]: *** [arch/s390/boot/section_cmp.boot.preserved.data] Error 1
make[1]: *** [bzImage] Error 2

Commit 513c7e624a0f ("treewide: Convert macro and uses of __section(foo)
to __section("foo")") converted all __section(foo) to __section("foo").
This is wrong for __bootdata / __bootdata_preserved macros which want
variable names to be a part of intermediate section names .boot.data.<var
name> and .boot.preserved.data.<var name>. Those sections are later
sorted by alignment + name and merged together into final .boot.data
/ .boot.preserved.data sections. Those sections must be identical in
the decompressor and the decompressed kernel (that is checked during
the build).

Fixes: 513c7e624a0f ("treewide: Convert macro and uses of __section(foo) to __section("foo")")
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/sections.h