Skip to content

Commit

Permalink
vmcoreinfo: use the existing offsetof() for VMCOREINFO_OFFSET()
Browse files Browse the repository at this point in the history
It is better that the existing offsetof() is used for VMCOREINFO_OFFSET().

This discussion is the following:
http://www.ussg.iu.edu/hypermail/linux/kernel/0709.3/0584.html

Signed-off-by: Ken'ichi Ohmichi <[email protected]>
Acked-by: Simon Horman <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Ken'ichi Ohmichi authored and Linus Torvalds committed Feb 7, 2008
1 parent c76f860 commit 1e4f295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/kexec.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ unsigned long paddr_vmcoreinfo_note(void);
(unsigned long)sizeof(struct name))
#define VMCOREINFO_OFFSET(name, field) \
vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \
(unsigned long)&(((struct name *)0)->field))
(unsigned long)offsetof(struct name, field))
#define VMCOREINFO_LENGTH(name, value) \
vmcoreinfo_append_str("LENGTH(%s)=%lu\n", #name, (unsigned long)value)
#define VMCOREINFO_NUMBER(name) \
Expand Down

0 comments on commit 1e4f295

Please sign in to comment.