Re: WOLK-devel digest, Vol 1 #509 - 13 msgs

Georg Glas <[email protected]> Fri, 9 Apr 2004 12:31:39 +0200
Newsgroups gmane.linux.wolk.devel
Organization Hollomey Consultant
Message-ID <[email protected]>
Am Montag, 5. April 2004 05:07 schrieb 
[email protected]:

> -I/usr/src/WOLK-tools/badMEM/badmem/badmemlib/include  -nostdinc
> -iwithprefix include -DKBUILD_BASENAME=rmap  -c -o rmap.o rmap.c rmap.c: In
> function `page_referenced':
> rmap.c:160: parse error before `*'
> rmap.c:161: `pte' undeclared (first use in this function)
> rmap.c:161: (Each undeclared identifier is reported only once
> rmap.c:161: for each function it appears in.)
> make[3]: *** [rmap.o] Error 1
> make[3]: Leaving directory
> `/usr/src/KERNEL_WOLK/linux-2.4.20-wolk4.12-fullkernel/mm' make[2]: ***
> [first_rule] Error 2
> make[2]: Leaving directory
> `/usr/src/KERNEL_WOLK/linux-2.4.20-wolk4.12-fullkernel/mm' make[1]: ***
> [_dir_mm] Error 2
> make[1]: Leaving directory
> `/usr/src/KERNEL_WOLK/linux-2.4.20-wolk4.12-fullkernel' make: ***
> [stamp-build] Error 2

i guess gcc 2.9x ..

This should do it:

--- mm/rmap.c~  Tue Apr  6 11:28:21 2004
+++ mm/rmap.c   Wed Apr  7 11:32:56 2004
@@ -151,13 +151,14 @@ int page_referenced(struct page * page,
        int referenced = 0, under_rsslimit = 1;
        struct mm_struct * mm;
        struct pte_chain * pc;
-
+       pte_t *pte;
+
        if (PageTestandClearReferenced(page))
                referenced++;

        if (PageDirect(page)) {
                under_rsslimit = 0;
-               pte_t *pte = rmap_ptep_map(page->pte.direct);
+               pte = rmap_ptep_map(page->pte.direct);
                if (pte_young(*pte) && ptep_test_and_clear_young(pte))
                        referenced++;


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
WOLK - Working Overloaded Linux Kernel
[email protected]
https://lists.sourceforge.net/lists/listinfo/wolk-devel