diff options
author | Christoph Hellwig <hch@lst.de> | 2004-10-27 18:33:30 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-27 18:33:30 -0700 |
commit | c5391e19762b4c88ac3e81b5dc0389bed60461ab (patch) | |
tree | e8a2e158d47f4dd3cf09fb29739df502b11d216f /kernel | |
parent | b76557d9a3af84b43d2a0185c9e8fd332cd825b5 (diff) | |
download | history-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.c | 2 |
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); |