problem with include/linux/highmen.h ?
John Tyner
jtyner at cs.ucr.edu
Tue Sep 25 02:58:31 EST 2001
We're trying to build for i386 and PPC machines under the same tree, but
one section of code is giving us some problems...
linuxppc_2_4_devel/include/linux/highmem.h
-----------------
/*
#ifndef __HAVE_ARCH_USER_PAGE
static inline void clear_user_page(struct page *page, unsigned long vaddr)
{
void *addr = kmap_atomic(page, KM_USER0);
clear_page(addr, vaddr);
kunmap_atomic(addr, KM_USER0);
}
static inline void copy_user_page(struct page *to, struct page *from,
unsigned long vaddr)
{
char *vfrom, *vto;
vfrom = kmap_atomic(from, KM_USER0);
vto = kmap_atomic(to, KM_USER1);
copy_user_page(vto, vfrom, vaddr);
kunmap_atomic(vfrom, KM_USER0);
kunmap_atomic(vto, KM_USER1);
}
#endif
*/
------------------
As you can see, we've commented it out, which causes the kernel to build
correctly for both arch's, but the clear_page macro only takes one
parameter from what I can see and we get _all_ kinds of parse errors
starting with the line immediately following the #ifndef.
Any ideas?
--
John Tyner
jtyner at cs.ucr.edu
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list