public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] ia64 patch breaks ix86 compile
@ 2000-12-06  0:40 Keith Owens
  0 siblings, 0 replies; only message in thread
From: Keith Owens @ 2000-12-06  0:40 UTC (permalink / raw)
  To: linux-ia64

linux-2.4.0-test10-ia64-001115.diff includes this patch which breaks
ix86 compiles from the same source tree, no definition for
pgprot_writecombine.  Anybody care to fix this for ix86?

Index: 0-test11.1/drivers/char/mem.c
--- 0-test11.1/drivers/char/mem.c Wed, 15 Nov 2000 12:00:34 +1100 kaos (linux-2.4/N/b/49_mem.c 1.3.1.5 644)
+++ 0-test11.13(w)/drivers/char/mem.c Mon, 20 Nov 2000 16:50:00 +1100 kaos (linux-2.4/N/b/49_mem.c 1.3.1.6 644)
@@ -198,8 +198,12 @@ static int mmap_mem(struct file * file, 
 	 * through a file pointer that was marked O_SYNC will be
 	 * done non-cached.
 	 */
-	if (noncached_address(offset) || (file->f_flags & O_SYNC))
+	if (noncached_address(offset) || (file->f_flags & O_SYNC)
+	    || vma->vm_flags & VM_NONCACHED)
 		vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
+
+	if (vma->vm_flags & VM_WRITECOMBINED)
+		vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
 
 	/*
 	 * Don't dump addresses that are not real memory to a core file.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-12-06  0:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-06  0:40 [Linux-ia64] ia64 patch breaks ix86 compile Keith Owens

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