All of lore.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: linux-kernel@vger.kernel.org
Cc: pavel@ucw.cz
Subject: make idedisk_suspend()/idedisk_resume() conditional on CONFIG_SOFTWARE_SUSPEND
Date: Fri, 11 Oct 2002 07:12:18 -0700	[thread overview]
Message-ID: <20021011141218.GP12432@holomorphy.com> (raw)

ide-disk.c gets the following warning:

drivers/ide/ide-disk.c:1614: warning: `idedisk_suspend' defined but not used
drivers/ide/ide-disk.c:1651: warning: `idedisk_resume' defined but not used


--- akpm-2.5.41-3/drivers/ide/ide-disk.c	2002-10-11 06:09:31.000000000 -0700
+++ wli-2.5.41-3/drivers/ide/ide-disk.c	2002-10-11 06:53:58.000000000 -0700
@@ -1610,6 +1610,7 @@
 #endif
 }
 
+#ifdef CONFIG_SOFTWARE_SUSPEND
 static int idedisk_suspend(struct device *dev, u32 state, u32 level)
 {
 	ide_drive_t *drive = dev->driver_data;
@@ -1659,7 +1660,7 @@
 	drive->blocked = 0;
 	return 0;
 }
-
+#endif /* CONFIG_SOFTWARE_SUSPEND */
 
 /* This is just a hook for the overall driver tree.
  */

             reply	other threads:[~2002-10-11 14:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-11 14:12 William Lee Irwin III [this message]
2002-10-11 15:21 ` make idedisk_suspend()/idedisk_resume() conditional on CONFIG_SOFTWARE_SUSPEND Zwane Mwaikambo
     [not found] <20021011182209.GA8046@atrey.karlin.mff.cuni.cz>
     [not found] ` <Pine.LNX.4.44.0210111831060.10081-100000@montezuma.mastecende.com>
2002-10-12 15:28   ` Pavel Machek

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=20021011141218.GP12432@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /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 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.