public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: Greg KH <gregkh@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [2.6 patch] drivers/base/: proper prototypes
Date: Thu, 19 Jan 2006 04:28:08 +0100	[thread overview]
Message-ID: <20060119032808.GJ19398@stusta.de> (raw)
In-Reply-To: <20060119025146.GA15257@suse.de>

On Wed, Jan 18, 2006 at 06:51:47PM -0800, Greg KH wrote:
> On Thu, Jan 19, 2006 at 02:32:42AM +0100, Adrian Bunk wrote:
> > This patch contains the following changes:
> > - move prototypes to base.h
> > - sys.c should #include "base.h" for getting the prototype of it's
> >   global function system_bus_init()
> > 
> > Note that hidden in this patch there's a bugfix:
> > 
> > Caller and callee disagreed regarding the return type of 
> > sysdev_shutdown().
> > 
> > 
> > Signed-off-by: Adrian Bunk <bunk@stusta.de>
> > 
> > ---
> > 
> >  drivers/base/base.h           |    6 ++++++
> >  drivers/base/power/resume.c   |    3 +--
> >  drivers/base/power/shutdown.c |    2 +-
> >  drivers/base/power/suspend.c  |    3 +--
> >  drivers/base/sys.c            |    2 ++
> >  5 files changed, 11 insertions(+), 5 deletions(-)
> > 
> > --- linux-2.6.16-rc1-mm1-full/drivers/base/base.h.old	2006-01-18 23:17:52.000000000 +0100
> > +++ linux-2.6.16-rc1-mm1-full/drivers/base/base.h	2006-01-18 23:41:33.000000000 +0100
> > @@ -1,6 +1,8 @@
> >  
> >  /* initialisation functions */
> >  
> > +#include <linux/device.h>
> > +
> 
> Why is this extra #include needed?  It shouldn't be.

struct class_device and struct class_device_attribute are needed since 
they are used in base.h .

> thanks,
> 
> greg k-h

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


  reply	other threads:[~2006-01-19  5:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-19  1:32 [2.6 patch] drivers/base/: proper prototypes Adrian Bunk
2006-01-19  2:51 ` Greg KH
2006-01-19  3:28   ` Adrian Bunk [this message]
2006-01-19  3:35     ` Greg KH
2006-01-19  3:40       ` Adrian Bunk
2006-01-19  4:07         ` Greg KH
2006-01-19 16:30           ` Adrian Bunk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060119032808.GJ19398@stusta.de \
    --to=bunk@stusta.de \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox