Commit c5391e19 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] fix show_refcnt return value type

module_attribute.show is defined to return ssize_t
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b76557d9
...@@ -649,7 +649,7 @@ void symbol_put_addr(void *addr) ...@@ -649,7 +649,7 @@ void symbol_put_addr(void *addr)
} }
EXPORT_SYMBOL_GPL(symbol_put_addr); EXPORT_SYMBOL_GPL(symbol_put_addr);
static int show_refcnt(struct module *mod, char *buffer) static ssize_t show_refcnt(struct module *mod, char *buffer)
{ {
/* sysfs holds a reference */ /* sysfs holds a reference */
return sprintf(buffer, "%u\n", module_refcount(mod)-1); return sprintf(buffer, "%u\n", module_refcount(mod)-1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment