aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2004-10-27 18:33:30 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-27 18:33:30 -0700
commitc5391e19762b4c88ac3e81b5dc0389bed60461ab (patch)
treee8a2e158d47f4dd3cf09fb29739df502b11d216f /kernel
parentb76557d9a3af84b43d2a0185c9e8fd332cd825b5 (diff)
downloadhistory-c5391e19762b4c88ac3e81b5dc0389bed60461ab.tar.gz
[PATCH] fix show_refcnt return value type
module_attribute.show is defined to return ssize_t Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c
index f58f5e16862492..07cb91d8f76197 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -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);