kdump-use-vmlinux_build_id-to-simplify.patch removed from -mm tree
The patch titled
Subject: kdump: use vmlinux_build_id to simplify
has been removed from the -mm tree. Its filename was
kdump-use-vmlinux_build_id-to-simplify.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Stephen Boyd <[email protected]>
Subject: kdump: use vmlinux_build_id to simplify
We can use the vmlinux_build_id array here now instead of open coding it. This mostly consolidates code.
Signed-off-by Stephen Boyd <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Alexei Starovoitov <[email protected]>
Cc Jessica Yu <[email protected]>
Cc Evan Green <[email protected]>
Cc Hsin-Yi Wang <[email protected]>
Cc Dave Young <[email protected]>
Cc Baoquan He <[email protected]>
Cc Vivek Goyal <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Konstantin Khlebnikov <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Petr Mladek <[email protected]>
Cc Rasmus Villemoes <[email protected]>
Cc Sasha Levin <[email protected]>
Cc Sergey Senozhatsky <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Will Deacon <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/buildid.h | 2 - include/linux/crash_core.h | 12 ++++---- kernel/crash_core.c | 50 +---------------------------------- lib/buildid.c | 2 - 4 files changed, 10 insertions(+), 56 deletions(-)
include/linux/buildid.h renamed from include/linux/buildid.h~kdump-use-vmlinux_build_id-to-simplify +1 -1
@@ -10,7 +10,7 @@ int build_id_parse(struct vm_area_struct __u32 *size);int build_id_parse_buf (const void *buf,unsigned char *build_id,u32 buf_size); -#if IS_ENABLED (CONFIG_STACKTRACE_BUILD_ID ) +#if IS_ENABLED (CONFIG_STACKTRACE_BUILD_ID ) ||IS_ENABLED (CONFIG_CRASH_CORE )extern unsigned char vmlinux_build_id[BUILD_ID_SIZE_MAX ];void init_vmlinux_build_id (void );#else
include/linux/crash_core.h renamed from include/linux/crash_core.h~kdump-use-vmlinux_build_id-to-simplify +6 -6
@@ -38,8 +38,12 @@ phys_addr_t paddr_vmcoreinfo_note(void);#define VMCOREINFO_OSRELEASE (value) \ vmcoreinfo_append_str("OSRELEASE=%s\n", value) -#define VMCOREINFO_BUILD_ID (value) \ - vmcoreinfo_append_str("BUILD-ID=%s\n", value) +#define VMCOREINFO_BUILD_ID () \ + ({ \ + static_assert(sizeof(vmlinux_build_id) == 20); \ + vmcoreinfo_append_str("BUILD-ID=%20phN\n", vmlinux_build_id); \ + }) +#define VMCOREINFO_PAGESIZE (value) \ vmcoreinfo_append_str("PAGESIZE=%ld\n", value)#define VMCOREINFO_SYMBOL (name) \
@@ -69,10 +73,6 @@ extern unsigned char *vmcoreinfo_data;extern size_t vmcoreinfo_size;extern u32 *vmcoreinfo_note; -/* raw contents of kernel .notes section */ -extern const void __start_notes__weak ; -extern const void __stop_notes__weak ; -Elf_Word *append_elf_note (Elf_Word *buf,char *name,unsigned int type,void *data,size_t data_len);void final_note (Elf_Word *buf);
kernel/crash_core.c renamed from kernel/crash_core.c~kdump-use-vmlinux_build_id-to-simplify +2 -48
68 lines not on this page · raw message
lib/buildid.c renamed from lib/buildid.c~kdump-use-vmlinux_build_id-to-simplify +1 -1
@@ -174,7 +174,7 @@ int build_id_parse_buf(const void *buf,return parse_build_id_buf (build_id,NULL , buf, buf_size); } -#if IS_ENABLED (CONFIG_STACKTRACE_BUILD_ID ) +#if IS_ENABLED (CONFIG_STACKTRACE_BUILD_ID ) ||IS_ENABLED (CONFIG_CRASH_CORE )unsigned char vmlinux_build_id[BUILD_ID_SIZE_MAX ]__ro_after_init ;/**
_
Patches currently in -mm which might be from [email protected] are