On Fri, 9 Mar 2001, Graham Smith wrote:

> Hi,
>
> I was wondering if anyone has been sucessfull in patching the SuSE 7.1 2.2.18
> kernel.
>
> I'm running into a problem with arch/i386/mm/mkivmem.c the structure
> 'page' is missing a member called 'offset'. Ref line 413, pageinfop->offset.
>
> The actual structure for 'page' is defined in include/linux/mm.h at line 160.

The SUSE kernel probably includes the LFS (large file support) patches for
2.2.

You need to replace the pageinfop->offset with
pgoff2loff(pageinfop->index)

The following patch does this.  I have been using Win4Lin for approx 2
weeks with this patch applied without trouble.

--- linux/arch/i386/mm/mkivmem.c.orig   Sat Feb 17 12:28:12 2001
+++ linux/arch/i386/mm/mkivmem.c        Sat Feb 17 12:28:55 2001
@@ -410,7 +410,7 @@

        MKI_ASSERT(pageinfop->inode != NULL);
        MKI_ASSERT(file->f_dentry->d_inode == pageinfop->inode);
-       MKI_ASSERT(pageinfop->offset == offset);
+       MKI_ASSERT(pgoff2loff(pageinfop->index) == offset);

        if ((physpte & (_PAGE_DIRTY | _PAGE_ACCESSED)) == 0) {
                /*



-- 
Richard Fish                      Enhanced Software Technologies, Inc.
Sr. Software Engineer             2920 E Camelback Rd Suite 250
[EMAIL PROTECTED]                    Phoenix, AZ  85016
(602) 470-1115                    http://www.estinc.com

_______________________________________________
Win4Lin-users mailing list
[EMAIL PROTECTED]
https://lists.netraverse.com/mailman/listinfo/win4lin-users

Reply via email to