archive mirror
 help / color / mirror / Atom feed
From: Randy Dunlap <>
To:, lkml <>
Cc:, akpm <>
Subject: [PATCH -next] block: genhd errors when CONFIG_PROC_FS=n
Date: Fri, 23 May 2008 09:44:11 -0700	[thread overview]
Message-ID: <> (raw)

From: Randy Dunlap <>

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 <>
 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,
  * 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)

             reply	other threads:[~2008-05-23 16:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-23 16:44 Randy Dunlap [this message]
2008-05-28  5:20 ` [PATCH -next] block: genhd errors when CONFIG_PROC_FS=n Andrew Morton
2008-05-28  5:26   ` Greg KH
2008-05-28  6:01   ` Stephen Rothwell

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:

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

  git send-email \ \ \ \ \ \ \

* 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;
as well as URLs for NNTP newsgroup(s).