mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
add-vmcore: add a prefix "VMCOREINFO_" to the vmcoreinfo macros
Add a prefix "VMCOREINFO_" to the vmcoreinfo macros. Old vmcoreinfo macros were defined as generic names SYMBOL/SIZE/OFFSET /LENGTH/CONFIG, and it is impossible to grep for them. So these names should be changed. This discussion is the following: http://www.ussg.iu.edu/hypermail/linux/kernel/0709.1/0415.html Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
00cab92f9e
commit
bcbba6c10e
5 changed files with 55 additions and 55 deletions
|
@ -127,22 +127,22 @@ void vmcoreinfo_append_str(const char *fmt, ...)
|
|||
__attribute__ ((format (printf, 1, 2)));
|
||||
unsigned long paddr_vmcoreinfo_note(void);
|
||||
|
||||
#define SYMBOL(name) \
|
||||
#define VMCOREINFO_SYMBOL(name) \
|
||||
vmcoreinfo_append_str("SYMBOL(%s)=%lx\n", #name, (unsigned long)&name)
|
||||
#define SIZE(name) \
|
||||
#define VMCOREINFO_SIZE(name) \
|
||||
vmcoreinfo_append_str("SIZE(%s)=%lu\n", #name, \
|
||||
(unsigned long)sizeof(struct name))
|
||||
#define TYPEDEF_SIZE(name) \
|
||||
#define VMCOREINFO_TYPEDEF_SIZE(name) \
|
||||
vmcoreinfo_append_str("SIZE(%s)=%lu\n", #name, \
|
||||
(unsigned long)sizeof(name))
|
||||
#define OFFSET(name, field) \
|
||||
#define VMCOREINFO_OFFSET(name, field) \
|
||||
vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \
|
||||
(unsigned long)&(((struct name *)0)->field))
|
||||
#define LENGTH(name, value) \
|
||||
#define VMCOREINFO_LENGTH(name, value) \
|
||||
vmcoreinfo_append_str("LENGTH(%s)=%lu\n", #name, (unsigned long)value)
|
||||
#define NUMBER(name) \
|
||||
#define VMCOREINFO_NUMBER(name) \
|
||||
vmcoreinfo_append_str("NUMBER(%s)=%ld\n", #name, (long)name)
|
||||
#define CONFIG(name) \
|
||||
#define VMCOREINFO_CONFIG(name) \
|
||||
vmcoreinfo_append_str("CONFIG_%s=y\n", #name)
|
||||
|
||||
extern struct kimage *kexec_image;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue