public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/block/rd.c compile error
@ 2002-10-10  6:20 Paul Mackerras
  2002-10-10  7:09 ` Andrew Morton
  2002-10-10 13:25 ` David S. Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Mackerras @ 2002-10-10  6:20 UTC (permalink / raw)
  To: alan; +Cc: linux-kernel

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-10 13:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-10  6:20 drivers/block/rd.c compile error Paul Mackerras
2002-10-10  7:09 ` Andrew Morton
2002-10-10 13:25 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox