From: Christoph Hellwig module_attribute.show is defined to return ssize_t Signed-off-by: Andrew Morton --- 25-akpm/kernel/module.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN kernel/module.c~fix-show_refcnt-return-value-type kernel/module.c --- 25/kernel/module.c~fix-show_refcnt-return-value-type 2004-10-26 18:56:05.950660888 -0700 +++ 25-akpm/kernel/module.c 2004-10-26 18:56:05.955660128 -0700 @@ -649,7 +649,7 @@ void symbol_put_addr(void *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 */ return sprintf(buffer, "%u\n", module_refcount(mod)-1); _