Skip to contentSkip to conversation

fix show_refcnt return value type

PATCH New Christoph Hellwig 1 participant 1 message Oct 26, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix show_refcnt return value type

module_attribute.show is defined to return ssize_t

kernel/module.c +1 -1
@@ -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);