public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: Andrew Morton <akpm@digeo.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: 2.5.41-mm3
Date: Fri, 11 Oct 2002 06:38:42 -0700	[thread overview]
Message-ID: <20021011133842.GX10722@holomorphy.com> (raw)
In-Reply-To: <3DA699AA.BBA05716@digeo.com>

On Fri, Oct 11, 2002 at 02:28:10AM -0700, Andrew Morton wrote:
> url: http://www.zip.com.au/~akpm/linux/patches/2.5/2.5.41/2.5.41-mm3/

This paride driver seems to have been missed with all the sector_t
and sector_div() business.

--- akpm-2.5.41-3/drivers/block/paride/pf.c	2002-10-11 06:09:31.000000000 -0700
+++ wli-2.5.41-3/drivers/block/paride/pf.c	2002-10-11 06:38:16.000000000 -0700
@@ -369,11 +369,11 @@
 		return -EINVAL;
 	capacity = get_capacity(pf->disk);
 	if (capacity < PF_FD_MAX) {
-		g.cylinders = capacity / (PF_FD_HDS * PF_FD_SPT);
+		g.cylinders = sector_div(capacity, PF_FD_HDS * PF_FD_SPT);
 		g.heads = PF_FD_HDS;
 		g.sectors = PF_FD_SPT;
 	} else {
-		g.cylinders = capacity / (PF_HD_HDS * PF_HD_SPT);
+		g.cylinders = sector_div(capacity, PF_HD_HDS * PF_HD_SPT);
 		g.heads = PF_HD_HDS;
 		g.sectors = PF_HD_SPT;
 	}

  parent reply	other threads:[~2002-10-11 13:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-11  9:28 2.5.41-mm3 Andrew Morton
2002-10-11 10:58 ` 2.5.41-mm3 Henrik Storner
2002-10-11 13:38 ` William Lee Irwin III [this message]
2002-10-12  2:29 ` 2.5.41-mm3 Daniel Phillips
2002-10-12  2:31   ` 2.5.41-mm3 William Lee Irwin III
2002-10-12  3:26   ` 2.5.41-mm3 Andrew Morton
  -- strict thread matches above, loose matches on Subject: below --
2002-10-11 10:26 2.5.41-mm3 Con Kolivas
2002-10-11 11:40 ` 2.5.41-mm3 Anton Blanchard
     [not found] <3DA683F4.944DFC11@digeo.com>
2002-10-11 12:37 ` 2.5.41-mm3 Ed Tomlinson
2002-10-12 14:21   ` 2.5.41-mm3 Ed Tomlinson

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=20021011133842.GX10722@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=akpm@digeo.com \
    --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