Re: [Resend Patch] kexec: allow to shrink reserved memory

From: Dan Carpenter
Date: Tue Nov 24 2009 - 02:58:33 EST


On Mon, Nov 23, 2009 at 04:37:02AM -0500, Amerigo Wang wrote:
[snip]
> +size_t crash_get_memory_size(void);
[snip]
> +static ssize_t kexec_crash_size_show(struct kobject *kobj,
> + struct kobj_attribute *attr, char *buf)
> +{
> + return sprintf(buf, "%lu\n", crash_get_memory_size());
> +}

CC kernel/ksysfs.o
kernel/ksysfs.c: In function âkexec_crash_size_showâ:
kernel/ksysfs.c:106: warning: format â%luâ expects type âlong unsigned intâ, but argument 3 has type âsize_tâ

Could we get suppress this gcc warning?

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/