* [PATCH -next] block: genhd errors when CONFIG_PROC_FS=n
@ 2008-05-23 16:44 Randy Dunlap
2008-05-28 5:20 ` Andrew Morton
0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2008-05-23 16:44 UTC (permalink / raw)
To: linux-next, lkml; +Cc: jens.axboe, akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
block/genhd.c has build errors when CONFIG_PROC_FS=n, so omit some of
its functions in that case.
/local/linsrc/linux-next-20080523/block/genhd.c: In function 'diskstats_start':
/local/linsrc/linux-next-20080523/block/genhd.c:555: error: 'find_start' undeclared (first use in this function)
/local/linsrc/linux-next-20080523/block/genhd.c:555: error: (Each undeclared identifier is reported only once
/local/linsrc/linux-next-20080523/block/genhd.c:555: error: for each function it appears in.)
make[2]: *** [block/genhd.o] Error 1
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
block/genhd.c | 2 ++
1 file changed, 2 insertions(+)
--- linux-next-20080523.orig/block/genhd.c
+++ linux-next-20080523/block/genhd.c
@@ -539,6 +539,7 @@ static struct device_type disk_type = {
.release = disk_release,
};
+#ifdef CONFIG_PROC_FS
/*
* aggregate disk stat collector. Uses the same stats that the sysfs
* entries do, above, but makes them available through one seq_file.
@@ -644,6 +645,7 @@ const struct seq_operations diskstats_op
.stop = diskstats_stop,
.show = diskstats_show
};
+#endif /* CONFIG_PROC_FS */
static void media_change_notify_thread(struct work_struct *work)
{
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -next] block: genhd errors when CONFIG_PROC_FS=n
2008-05-23 16:44 [PATCH -next] block: genhd errors when CONFIG_PROC_FS=n Randy Dunlap
@ 2008-05-28 5:20 ` Andrew Morton
2008-05-28 5:26 ` Greg KH
2008-05-28 6:01 ` Stephen Rothwell
0 siblings, 2 replies; 4+ messages in thread
From: Andrew Morton @ 2008-05-28 5:20 UTC (permalink / raw)
To: Randy Dunlap; +Cc: linux-next, lkml, jens.axboe, Greg KH, Kay Sievers
On Fri, 23 May 2008 09:44:11 -0700 Randy Dunlap <randy.dunlap@oracle.com> wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> block/genhd.c has build errors when CONFIG_PROC_FS=n, so omit some of
> its functions in that case.
>
> /local/linsrc/linux-next-20080523/block/genhd.c: In function 'diskstats_start':
> /local/linsrc/linux-next-20080523/block/genhd.c:555: error: 'find_start' undeclared (first use in this function)
> /local/linsrc/linux-next-20080523/block/genhd.c:555: error: (Each undeclared identifier is reported only once
> /local/linsrc/linux-next-20080523/block/genhd.c:555: error: for each function it appears in.)
> make[2]: *** [block/genhd.o] Error 1
>
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> ---
> block/genhd.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> --- linux-next-20080523.orig/block/genhd.c
> +++ linux-next-20080523/block/genhd.c
> @@ -539,6 +539,7 @@ static struct device_type disk_type = {
> .release = disk_release,
> };
>
> +#ifdef CONFIG_PROC_FS
> /*
> * aggregate disk stat collector. Uses the same stats that the sysfs
> * entries do, above, but makes them available through one seq_file.
> @@ -644,6 +645,7 @@ const struct seq_operations diskstats_op
> .stop = diskstats_stop,
> .show = diskstats_show
> };
> +#endif /* CONFIG_PROC_FS */
>
> static void media_change_notify_thread(struct work_struct *work)
> {
This is a fix against
commit ce8568d9535b4756ea304a97ea803314ce895d3c
Author: Greg Kroah-Hartman <gregkh@suse.de>
Date: Thu May 22 17:21:08 2008 -0400
block: make proc files seq_start use the class_find_device()
Use the proper class iterator function instead of mucking around in the
internals of the class structures.
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -next] block: genhd errors when CONFIG_PROC_FS=n
2008-05-28 5:20 ` Andrew Morton
@ 2008-05-28 5:26 ` Greg KH
2008-05-28 6:01 ` Stephen Rothwell
1 sibling, 0 replies; 4+ messages in thread
From: Greg KH @ 2008-05-28 5:26 UTC (permalink / raw)
To: Andrew Morton; +Cc: Randy Dunlap, linux-next, lkml, jens.axboe, Kay Sievers
On Tue, May 27, 2008 at 10:20:36PM -0700, Andrew Morton wrote:
> On Fri, 23 May 2008 09:44:11 -0700 Randy Dunlap <randy.dunlap@oracle.com> wrote:
>
> > From: Randy Dunlap <randy.dunlap@oracle.com>
> >
> > block/genhd.c has build errors when CONFIG_PROC_FS=n, so omit some of
> > its functions in that case.
> >
> > /local/linsrc/linux-next-20080523/block/genhd.c: In function 'diskstats_start':
> > /local/linsrc/linux-next-20080523/block/genhd.c:555: error: 'find_start' undeclared (first use in this function)
> > /local/linsrc/linux-next-20080523/block/genhd.c:555: error: (Each undeclared identifier is reported only once
> > /local/linsrc/linux-next-20080523/block/genhd.c:555: error: for each function it appears in.)
> > make[2]: *** [block/genhd.o] Error 1
> >
> > Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> > ---
> > block/genhd.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > --- linux-next-20080523.orig/block/genhd.c
> > +++ linux-next-20080523/block/genhd.c
> > @@ -539,6 +539,7 @@ static struct device_type disk_type = {
> > .release = disk_release,
> > };
> >
> > +#ifdef CONFIG_PROC_FS
> > /*
> > * aggregate disk stat collector. Uses the same stats that the sysfs
> > * entries do, above, but makes them available through one seq_file.
> > @@ -644,6 +645,7 @@ const struct seq_operations diskstats_op
> > .stop = diskstats_stop,
> > .show = diskstats_show
> > };
> > +#endif /* CONFIG_PROC_FS */
> >
> > static void media_change_notify_thread(struct work_struct *work)
> > {
>
> This is a fix against
>
> commit ce8568d9535b4756ea304a97ea803314ce895d3c
> Author: Greg Kroah-Hartman <gregkh@suse.de>
> Date: Thu May 22 17:21:08 2008 -0400
>
> block: make proc files seq_start use the class_find_device()
>
> Use the proper class iterator function instead of mucking around in the
> internals of the class structures.
>
> Cc: Kay Sievers <kay.sievers@vrfy.org>
> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Yeah, sorry, missed that first time around, just added it to my tree
about an hour ago and sent out a response to Randy about it :)
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -next] block: genhd errors when CONFIG_PROC_FS=n
2008-05-28 5:20 ` Andrew Morton
2008-05-28 5:26 ` Greg KH
@ 2008-05-28 6:01 ` Stephen Rothwell
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2008-05-28 6:01 UTC (permalink / raw)
To: Andrew Morton
Cc: Randy Dunlap, linux-next, lkml, jens.axboe, Greg KH, Kay Sievers
[-- Attachment #1: Type: text/plain, Size: 478 bytes --]
On Tue, 27 May 2008 22:20:36 -0700 Andrew Morton <akpm@linux-foundation.org> wrote:
>
> This is a fix against
>
> commit ce8568d9535b4756ea304a97ea803314ce895d3c
> Author: Greg Kroah-Hartman <gregkh@suse.de>
> Date: Thu May 22 17:21:08 2008 -0400
Yeah, Greg has added it to his series for tomorrow and I have added it
to the end of linux-next for today.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-28 6:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-23 16:44 [PATCH -next] block: genhd errors when CONFIG_PROC_FS=n Randy Dunlap
2008-05-28 5:20 ` Andrew Morton
2008-05-28 5:26 ` Greg KH
2008-05-28 6:01 ` Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).