All of lore.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] fix devres_release_all() return value
@ 2007-06-17 23:42 Adrian Bunk
  2007-06-18  5:55 ` Tejun Heo
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2007-06-17 23:42 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Jeff Garzik, linux-kernel

Every file should include the headers containing the prototypes for
it's global functions.

Since the GNU C compiler is now able to detect that the function 
prototype of devres_release_all() in the header and the actual function 
disagree regarding the return value, this patch also fixes this bug.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 drivers/base/base.h   |    2 +-
 drivers/base/devres.c |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

--- linux-2.6.22-rc4-mm2/drivers/base/base.h.old	2007-06-17 15:37:21.000000000 +0200
+++ linux-2.6.22-rc4-mm2/drivers/base/base.h	2007-06-17 15:37:34.000000000 +0200
@@ -44,6 +44,6 @@
 
 extern char *make_class_name(const char *name, struct kobject *kobj);
 
-extern void devres_release_all(struct device *dev);
+extern int devres_release_all(struct device *dev);
 
 extern struct kset devices_subsys;
--- linux-2.6.22-rc4-mm2/drivers/base/devres.c.old	2007-06-17 15:30:48.000000000 +0200
+++ linux-2.6.22-rc4-mm2/drivers/base/devres.c	2007-06-17 15:31:03.000000000 +0200
@@ -10,6 +10,8 @@
 #include <linux/device.h>
 #include <linux/module.h>
 
+#include "base.h"
+
 struct devres_node {
 	struct list_head		entry;
 	dr_release_t			release;


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [2.6 patch] fix devres_release_all() return value
  2007-06-17 23:42 [2.6 patch] fix devres_release_all() return value Adrian Bunk
@ 2007-06-18  5:55 ` Tejun Heo
  2007-06-25  7:53   ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Tejun Heo @ 2007-06-18  5:55 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Jeff Garzik, linux-kernel, Greg KH

Adrian Bunk wrote:
> Every file should include the headers containing the prototypes for
> it's global functions.
> 
> Since the GNU C compiler is now able to detect that the function 
> prototype of devres_release_all() in the header and the actual function 
> disagree regarding the return value, this patch also fixes this bug.
> 
> Signed-off-by: Adrian Bunk <bunk@stusta.de>

Acked-by: Tejun Heo <htejun@gmail.com>

This should go through Greg.

  http://article.gmane.org/gmane.linux.kernel/544290/raw

-- 
tejun

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [2.6 patch] fix devres_release_all() return value
  2007-06-18  5:55 ` Tejun Heo
@ 2007-06-25  7:53   ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2007-06-25  7:53 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Adrian Bunk, Jeff Garzik, linux-kernel, Greg KH

On Mon, Jun 18, 2007 at 02:55:30PM +0900, Tejun Heo wrote:
> Adrian Bunk wrote:
> > Every file should include the headers containing the prototypes for
> > it's global functions.
> > 
> > Since the GNU C compiler is now able to detect that the function 
> > prototype of devres_release_all() in the header and the actual function 
> > disagree regarding the return value, this patch also fixes this bug.
> > 
> > Signed-off-by: Adrian Bunk <bunk@stusta.de>
> 
> Acked-by: Tejun Heo <htejun@gmail.com>
> 
> This should go through Greg.
> 
>   http://article.gmane.org/gmane.linux.kernel/544290/raw

Thanks, I've picked it up now.

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-06-25  8:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-17 23:42 [2.6 patch] fix devres_release_all() return value Adrian Bunk
2007-06-18  5:55 ` Tejun Heo
2007-06-25  7:53   ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.