From: Geert Uytterhoeven Date: Tue, 30 Dec 2008 13:22:01 +0000 (+0100) Subject: m68k: dio - Kill resource_size_t format warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fae3306ac0c74be0e1ab32e1c77120e792ab2a33;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git m68k: dio - Kill resource_size_t format warnings warning: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'resource_size_t' Signed-off-by: Geert Uytterhoeven --- diff --git a/drivers/dio/dio-sysfs.c b/drivers/dio/dio-sysfs.c index 91d5f4da8769..ee1a3b59bd4e 100644 --- a/drivers/dio/dio-sysfs.c +++ b/drivers/dio/dio-sysfs.c @@ -58,7 +58,8 @@ static ssize_t dio_show_resource(struct device *dev, struct device_attribute *at struct dio_dev *d = to_dio_dev(dev); return sprintf(buf, "0x%08lx 0x%08lx 0x%08lx\n", - dio_resource_start(d), dio_resource_end(d), + (unsigned long)dio_resource_start(d), + (unsigned long)dio_resource_end(d), dio_resource_flags(d)); } static DEVICE_ATTR(resource, S_IRUGO, dio_show_resource, NULL);