aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kexec.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kexec.h')
-rw-r--r--include/linux/kexec.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/kexec.h b/include/linux/kexec.h
index db15a94769b3..ad4b82ce84af 100644
--- a/include/linux/kexec.h
+++ b/include/linux/kexec.h
@@ -127,22 +127,22 @@ void vmcoreinfo_append_str(const char *fmt, ...)
127 __attribute__ ((format (printf, 1, 2))); 127 __attribute__ ((format (printf, 1, 2)));
128unsigned long paddr_vmcoreinfo_note(void); 128unsigned long paddr_vmcoreinfo_note(void);
129 129
130#define SYMBOL(name) \ 130#define VMCOREINFO_SYMBOL(name) \
131 vmcoreinfo_append_str("SYMBOL(%s)=%lx\n", #name, (unsigned long)&name) 131 vmcoreinfo_append_str("SYMBOL(%s)=%lx\n", #name, (unsigned long)&name)
132#define SIZE(name) \ 132#define VMCOREINFO_SIZE(name) \
133 vmcoreinfo_append_str("SIZE(%s)=%lu\n", #name, \ 133 vmcoreinfo_append_str("SIZE(%s)=%lu\n", #name, \
134 (unsigned long)sizeof(struct name)) 134 (unsigned long)sizeof(struct name))
135#define TYPEDEF_SIZE(name) \ 135#define VMCOREINFO_TYPEDEF_SIZE(name) \
136 vmcoreinfo_append_str("SIZE(%s)=%lu\n", #name, \ 136 vmcoreinfo_append_str("SIZE(%s)=%lu\n", #name, \
137 (unsigned long)sizeof(name)) 137 (unsigned long)sizeof(name))
138#define OFFSET(name, field) \ 138#define VMCOREINFO_OFFSET(name, field) \
139 vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \ 139 vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \
140 (unsigned long)&(((struct name *)0)->field)) 140 (unsigned long)&(((struct name *)0)->field))
141#define LENGTH(name, value) \ 141#define VMCOREINFO_LENGTH(name, value) \
142 vmcoreinfo_append_str("LENGTH(%s)=%lu\n", #name, (unsigned long)value) 142 vmcoreinfo_append_str("LENGTH(%s)=%lu\n", #name, (unsigned long)value)
143#define NUMBER(name) \ 143#define VMCOREINFO_NUMBER(name) \
144 vmcoreinfo_append_str("NUMBER(%s)=%ld\n", #name, (long)name) 144 vmcoreinfo_append_str("NUMBER(%s)=%ld\n", #name, (long)name)
145#define CONFIG(name) \ 145#define VMCOREINFO_CONFIG(name) \
146 vmcoreinfo_append_str("CONFIG_%s=y\n", #name) 146 vmcoreinfo_append_str("CONFIG_%s=y\n", #name)
147 147
148extern struct kimage *kexec_image; 148extern struct kimage *kexec_image;