<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in vmcore_info.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>199da871 - arch, crash: move arch_crash_save_vmcoreinfo() out to file vmcore_info.c</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/arm/kernel/vmcore_info.c#199da871</link>
        <description>arch, crash: move arch_crash_save_vmcoreinfo() out to file vmcore_info.cNathan reported below building error:=====$ curl -LSso .config https://git.alpinelinux.org/aports/plain/community/linux-edge/config-edge.armv7$ make -skj&quot;$(nproc)&quot; ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- olddefconfig all..arm-linux-gnueabi-ld: arch/arm/kernel/machine_kexec.o: in function `arch_crash_save_vmcoreinfo&apos;:machine_kexec.c:(.text+0x488): undefined reference to `vmcoreinfo_append_str&apos;====On architecutres, like arm, s390, ppc, sh, functionarch_crash_save_vmcoreinfo() is located in machine_kexec.c and it canonly be compiled in when CONFIG_KEXEC_CORE=y.That&apos;s not right because arch_crash_save_vmcoreinfo() is used to exportarch specific vmcoreinfo. CONFIG_VMCORE_INFO is supposed to control itscompiling in. However, CONFIG_VMVCORE_INFO could be independent ofCONFIG_KEXEC_CORE, e.g CONFIG_PROC_KCORE=y will select CONFIG_VMVCORE_INFO.Or CONFIG_KEXEC/CONFIG_KEXEC_FILE is set while CONFIG_CRASH_DUMP isnot set, it will report linking error.So, on arm, s390, ppc and sh, move arch_crash_save_vmcoreinfo out toa new file vmcore_info.c. Let CONFIG_VMCORE_INFO decide if compiling inarch_crash_save_vmcoreinfo().[akpm@linux-foundation.org: remove stray newlines at eof]Link: https://lkml.kernel.org/r/20240129135033.157195-3-bhe@redhat.comSigned-off-by: Baoquan He &lt;bhe@redhat.com&gt;Reported-by: Nathan Chancellor &lt;nathan@kernel.org&gt;Closes: https://lore.kernel.org/all/20240126045551.GA126645@dev-arch.thelio-3990X/T/#uCc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;Cc: Eric W. Biederman &lt;ebiederm@xmission.com&gt;Cc: Hari Bathini &lt;hbathini@linux.ibm.com&gt;Cc: Klara Modin &lt;klarasmodin@gmail.com&gt;Cc: Michael Kelley &lt;mhklinux@outlook.com&gt;Cc: Pingfan Liu &lt;piliu@redhat.com&gt;Cc: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;Cc: Yang Li &lt;yang.lee@linux.alibaba.com&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;

            List of files:
            /linux-6.15/arch/arm/kernel/vmcore_info.c</description>
        <pubDate>Mon, 29 Jan 2024 13:50:33 +0000</pubDate>
        <dc:creator>Baoquan He &lt;bhe@redhat.com&gt;</dc:creator>
    </item>
</channel>
</rss>
