[PATCH] fix show_refcnt return value type

From: Christoph Hellwig
Date: Tue Oct 26 2004 - 08:29:54 EST


module_attribute.show is defined to return ssize_t


--- 1.123/kernel/module.c 2004-10-25 22:06:46 +02:00
+++ edited/kernel/module.c 2004-10-26 12:59:13 +02:00
@@ -649,7 +649,7 @@
}
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 */
return sprintf(buffer, "%u\n", module_refcount(mod)-1);
-
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/