mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: alan@lxorguk.ukuu.org.uk
Cc: linux-kernel@vger.kernel.org
Subject: drivers/block/rd.c compile error
Date: Thu, 10 Oct 2002 16:20:16 +1000 (EST)	[thread overview]
Message-ID: <15781.7200.98489.515226@nanango.paulus.ozlabs.org> (raw)

This change went into drivers/block/rd.c in 2.5 recently:

diff -urN old/drivers/block/rd.c linux-2.5/drivers/block/rd.c
--- old/drivers/block/rd.c	2002-10-10 16:12:54.000000000 +1000
+++ linux-2.5/drivers/block/rd.c	2002-10-10 08:46:28.000000000 +1000
@@ -213,7 +213,7 @@
 		kunmap(vec->bv_page);
 
 		if (rw == READ) {
-			flush_dcache_page(page);
+			flush_dcache_page(sbh->b_page);
 		} else {
 			SetPageDirty(page);
 		}

The trouble with that is that there is no variable called sbh defined
in this function, rd_blkdev_pagecache_IO.  Thus we get a compile error
on PPC.  The problem wouldn't show up on x86 since flush_dcache_page
is a no-op (i.e. do { } while (0)) there.

What was the change trying to achieve?  What was wrong with
flush_dcache_page(page)?

Thanks,
Paul.

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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-10  6:20 Paul Mackerras [this message]
2002-10-10  7:09 ` Andrew Morton
2002-10-10 13:25 ` David S. Miller

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=15781.7200.98489.515226@nanango.paulus.ozlabs.org \
    --to=paulus@samba.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --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

all inboxes | Powered by JetHome®