mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fix show_refcnt return value type
@ 2004-10-26 13:26 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2004-10-26 13:26 UTC (permalink / raw)
  To: akpm, rusty; +Cc: linux-kernel

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-26 13:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-26 13:26 [PATCH] fix show_refcnt return value type Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®