Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michael Werner <werner@quantum.ece.ucsb.edu>
To: axp-list@redhat.com
Cc: mingo@redhat.com
Subject: 2.3.28 kernels
Date: Sat, 13 Nov 1999 16:40:29 -0800	[thread overview]
Message-ID: <99111316521400.06144@cluster1> (raw)

mm/memory.c has problems on alpha as mentioned earlier.
It appears also that several casts to void * conflict with their declarations.
i.e in include/linux/mm.h  and include/linux/highmem.h
diffs for those appear below:

[werner@feynman linux]$ diff mm.h.orig mm.h
306c306
< 		clear_page((void *)page);
---
> 		clear_page(page);
[werner@feynman linux]$ diff highmem.h highmem.h.orig
38c38
< 	clear_page(kaddr);
---
> 	clear_page((void *)kaddr);
74c74
< 	copy_page(vto, vfrom);
---
> 	copy_page((void *)vto, (void *)vfrom);


----------------------------------------------------------

These small changes remove a  lot of warnings in the 2.3.28 compilation but
more remain. Still working on those...

 make -C  mm
make[1]: Entering directory `/usr/local/werner/linux/mm'
make all_targets
make[2]: Entering directory `/usr/local/werner/linux/mm'
gcc -D__KERNEL__ -I/usr/local/werner/linux/include -Wall -Wstrict-prototypes -O2
 -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8 -mcpu=ev
5 -Wa,-mev6   -c -o memory.o memory.c
/usr/local/werner/linux/include/linux/highmem.h: In function `clear_highpage':
In file included from memory.c:46:
/usr/local/werner/linux/include/linux/highmem.h:37: warning: implicit declaratio
n of function `page_address'
memory.c: In function `copy_cow_page':
memory.c:63: warning: comparison between pointer and integer
memory.c: In function `free_one_pmd':
memory.c:93: warning: implicit declaration of function `pmd_ERROR'
memory.c: In function `free_one_pgd':
memory.c:110: warning: implicit declaration of function `pgd_ERROR'
memory.c: In function `copy_page_range':
memory.c:230: warning: implicit declaration of function `pte_to_swp_entry'
memory.c:230: incompatible type for argument 1 of `swap_duplicate'
memory.c:234: warning: implicit declaration of function `pte_pagenr'
memory.c: In function `free_pte':
memory.c:285: incompatible type for argument 1 of `__swap_free'
memory.c: In function `follow_page':
memory.c:408: warning: return makes pointer from integer without a cast
memory.c: In function `get_page_map':
memory.c:423: warning: comparison between pointer and integermemory.c: In function `put_dirty_page':
memory.c:741: warning: implicit declaration of function `pte_ERROR'
memory.c:746: warning: passing arg 1 of `mk_pte' makes integer from pointer without a cast
memory.c: In function `do_wp_page':
memory.c:825: warning: passing arg 1 of `mk_pte' makes integer from pointer without a cast
memory.c: In function `partial_clear':
memory.c:873: warning: assignment makes pointer from integer without a cast
memory.c: In function `swapin_readahead':
memory.c:952: invalid operands to binary >>
memory.c:953: invalid operands to binary >>
memory.c:972: invalid operands to binary >>
memory.c:972: incompatible type for argument 1 of `read_swap_cache_async'
memory.c: In function `do_swap_page':
memory.c:1004: warning: passing arg 1 of `mk_pte' makes integer from pointer without a cast
memory.c:1010: warning: passing arg 1 of `mk_pte' makes integer from pointer without a cast
memory.c: In function `do_anonymous_page':
memory.c:1034: warning: passing arg 1 of `mk_pte' makes integer from pointer without a cast
memory.c: In function `do_no_page':
memory.c:1088: warning: passing arg 1 of `mk_pte' makes integer from pointer without a cast
memory.c: In function `handle_pte_fault':
memory.c:1128: incompatible type for argument 5 of `do_swap_page'
make[2]: *** [memory.o] Error 1
make[2]: Leaving directory `/usr/local/werner/linux/mm'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/local/werner/linux/mm'
make: *** [_dir_mm] Error 2


             reply	other threads:[~1999-11-14  0:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-14  0:40 Michael Werner [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-11-15  7:27 2.3.28 kernels Waibel Niki
1999-11-18  7:35 Waibel Niki
read-only archive

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