From: Keir Fraser Date: Fri, 13 Jun 2008 10:21:58 +0000 (+0100) Subject: kexec: Fix the 32-bit build. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14192^2~75 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=be5b11f388fcb30d367634b65e1e5911251f31be;p=xen.git kexec: Fix the 32-bit build. Signed-off-by: Keir Fraser --- diff --git a/xen/include/public/kexec.h b/xen/include/public/kexec.h index ac1743c93d..fc19f2fe50 100644 --- a/xen/include/public/kexec.h +++ b/xen/include/public/kexec.h @@ -170,11 +170,11 @@ void vmcoreinfo_append_str(const char *fmt, ...) #define VMCOREINFO_STRUCT_SIZE(name) \ vmcoreinfo_append_str("SIZE(%s)=%zu\n", #name, sizeof(struct name)) #define VMCOREINFO_OFFSET(name, field) \ - vmcoreinfo_append_str("OFFSET(%s.%s)=%zu\n", #name, #field, \ - offsetof(struct name, field)) + vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \ + (unsigned long)offsetof(struct name, field)) #define VMCOREINFO_OFFSET_ALIAS(name, field, alias) \ - vmcoreinfo_append_str("OFFSET(%s.%s)=%zu\n", #name, #alias, \ - offsetof(struct name, field)) + vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #alias, \ + (unsigned long)offsetof(struct name, field)) #endif /* _XEN_PUBLIC_KEXEC_H */