projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89bde7b
)
m68k: dio - Kill resource_size_t format warnings
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Tue, 30 Dec 2008 13:22:01 +0000
(14:22 +0100)
committer
Geert Uytterhoeven
<geert@linux-m68k.org>
Mon, 12 Jan 2009 19:56:42 +0000
(20:56 +0100)
warning: format '%08lx' expects type 'long unsigned int', but argument 3 has
type 'resource_size_t'
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/dio/dio-sysfs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dio/dio-sysfs.c
b/drivers/dio/dio-sysfs.c
index 91d5f4da8769d4597978f0e0d0006be851728a3f..ee1a3b59bd4e0a76b48a34f32a8973ba767eb058 100644
(file)
--- 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);