aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/crash_core.h
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2020-10-12 13:01:37 +0200
committerPetr Mladek <pmladek@suse.com>2020-10-12 13:01:37 +0200
commit70333f4ff9c16dd82a2667080c3ae48fe30a3cb4 (patch)
treedf9a785cca8bd73c1a1962c2cc66b1702d9a4ebd /include/linux/crash_core.h
parentprintk: Use fallthrough pseudo-keyword (diff)
parentprintk: reduce setup_text_buf size to LOG_LINE_MAX (diff)
downloadwireguard-linux-70333f4ff9c16dd82a2667080c3ae48fe30a3cb4.tar.xz
wireguard-linux-70333f4ff9c16dd82a2667080c3ae48fe30a3cb4.zip
Merge branch 'printk-rework' into for-linus
Diffstat (limited to 'include/linux/crash_core.h')
-rw-r--r--include/linux/crash_core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/crash_core.h b/include/linux/crash_core.h
index 525510a9f965..43b51c9df571 100644
--- a/include/linux/crash_core.h
+++ b/include/linux/crash_core.h
@@ -53,6 +53,9 @@ phys_addr_t paddr_vmcoreinfo_note(void);
#define VMCOREINFO_OFFSET(name, field) \
vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \
(unsigned long)offsetof(struct name, field))
+#define VMCOREINFO_TYPE_OFFSET(name, field) \
+ vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \
+ (unsigned long)offsetof(name, field))
#define VMCOREINFO_LENGTH(name, value) \
vmcoreinfo_append_str("LENGTH(%s)=%lu\n", #name, (unsigned long)value)
#define VMCOREINFO_NUMBER(name) \