Re: [PATCH] Fix mmap_kmem (was: [question] What's the difference between /dev/kmem and /dev/mem)

Olaf Hering
2005-08-15T21:50:33Z

On Mon, Aug 15, Jeff Dike wrote:

> On Mon, Aug 15, 2005 at 09:33:07PM +0200, Olaf Hering wrote:
> > ARCH=um doesnt like your version, but mine.
> >
> > drivers/char/mem.c:267: error: invalid operands to binary <<
> >
> > pfn = (__pa((u64)vma->vm_pgoff) << PAGE_SHIFT) >> PAGE_SHIFT;
>
> My page.h was missing some parens. Try the patch below.

compiles ok now, I hope it works.