]> git.baikalelectronics.ru Git - kernel.git/commit
crash_dump: Make elfcorehdr address/size symbols always visible
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 11 Aug 2021 08:51:00 +0000 (10:51 +0200)
committerRob Herring <robh@kernel.org>
Tue, 24 Aug 2021 22:09:01 +0000 (17:09 -0500)
commit7d8fff04831fbb5b63165a09856bc1185249a380
treecb83aefd99af102d0a14def9507b21e78f381e09
parente3929a8dfdfa4100793a1a804e01c0f2be2e77ae
crash_dump: Make elfcorehdr address/size symbols always visible

Make the forward declarations of elfcorehdr_addr and elfcorehdr_size,
and the definitions of ELFCORE_ADDR_MAX and ELFCORE_ADDR_ERR always
available, like is done for phys_initrd_start and phys_initrd_size.
Code referring to these symbols can then just check for
IS_ENABLED(CONFIG_CRASH_DUMP), instead of requiring conditional
compilation using an #ifdef, thus preparing to increase compile
coverage.

Suggested-by: Rob Herring <robh+dt@kernel.org>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/ba965ca613c0cc82c1ec2fe353ee34fb13b36474.1628670468.git.geert+renesas@glider.be
include/linux/crash_dump.h