mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Nobuhiro Iwamatsu" <iwamatsu@nigauri.org>
To: linux-kernel@vger.kernel.org
Cc: "Al Viro" <viro@zeniv.linux.org.uk>, Linux-sh <linux-sh@vger.kernel.org>
Subject: [PATCH] gdrom: Fix compile error
Date: Mon, 27 Oct 2008 11:32:27 +0900	[thread overview]
Message-ID: <29ab51dc0810261932n7580e87aua85103f8b1dcc5a5@mail.gmail.com> (raw)

Return value and argument of block_device_operations.release of gdrom
was changed.
This patch fix this problem.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsunigauri.org>
---
 drivers/cdrom/gdrom.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c
index 9aaa86b..2eecb77 100644
--- a/drivers/cdrom/gdrom.c
+++ b/drivers/cdrom/gdrom.c
@@ -495,9 +495,10 @@ static int gdrom_bdops_open(struct block_device
*bdev, fmode_t mode)
 	return cdrom_open(gd.cd_info, bdev, mode);
 }

-static int gdrom_bdops_release(struct block_device *bdev, fmode_t mode)
+static int gdrom_bdops_release(struct gendisk *disk, fmode_t mode)
 {
-	return cdrom_release(gd.cd_info, mode);
+	cdrom_release(gd.cd_info, mode);
+	return 0;
 }

 static int gdrom_bdops_mediachanged(struct gendisk *disk)
-- 
1.5.6.5

             reply	other threads:[~2008-10-27  2:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-27  2:32 Nobuhiro Iwamatsu [this message]
2008-10-27  4:08 ` Al Viro
2008-10-28  9:11   ` Paul Mundt

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=29ab51dc0810261932n7580e87aua85103f8b1dcc5a5@mail.gmail.com \
    --to=iwamatsu@nigauri.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /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

all inboxes | Powered by JetHome®