compilation problem with 2.6.16
"Matt Dew" <[email protected]>
| Newsgroups | gmane.linux.cluster.openmosix.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, all,
I think I've found a bug in the OpenMOSIX 2.6.16 code from Tab's git repository. When attempting to compile the kernel, I get the following error:
CC hpc/copyuser.o
hpc/copyuser.c: In function `deputy_strncpy_from_user':
hpc/copyuser.c:64: error: `n' undeclared (first use in this function)
hpc/copyuser.c:64: error: (Each undeclared identifier is reported only once
hpc/copyuser.c:64: error: for each function it appears in.)
hpc/copyuser.c: In function `remote_copy_user':
hpc/copyuser.c:259: warning: ignoring return value of `copy_from_user', declared with attribute warn_unused_result
hpc/copyuser.c:270: warning: ignoring return value of `copy_to_user', declared with attribute warn_unused_result
hpc/copyuser.c: In function `remote_strncpy_from_user':
hpc/copyuser.c:295: warning: ignoring return value of `strncpy_from_user', declared with attribute warn_unused_result
make[1]: *** [hpc/copyuser.o] Error 1
make: *** [hpc] Error 2
Upon examining the hpc/copyuser.c file around line 64, I find the following:
unsigned long deputy_strncpy_from_user(char *dst, const char __user *src, long count)
{
struct omp_usercopy_req u;
int error;
if (in_atomic())
return n;
...
}
It does appear that the variable "n" is not defined - I certainly can't locate it. If I switch the "n" to a "0" the code compiles and the kernel runs fine. I'm experiencing some instability, though, which is to be expected because of the state in which the OM code is, but I'm not sure what portions of that instability may be caused by my putting an incorrect value on this line. I'm not familiar with the OM code, so I figured I'd submit this and let those who know the code take a look at it.
Thanks, Nick (via Matt)
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642