Re: compilation problem with 2.6.16
Ansgar Esztermann <[email protected]>
| Newsgroups | gmane.linux.cluster.openmosix.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Apr 04, 2006 at 09:12:10AM -0600, Matt Dew wrote: > 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) [...] > 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. There seems to be an incompatibility between a patch I introduced and a change from elsewhere. The parameter names of deputy_strncpy_from_user() have changed, so the return statement should read return count; A. -- Ansgar Esztermann Researcher & Sysadmin http://www2.thphy.uni-duesseldorf.de/~ansgar
signature.asc
(application/pgp-signature, 191 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEMo/DwAkt8h1/xRgRAm5+AJwNnsvX5Hx2yr72ygi8UMD2OvSpogCdFg8S Mwvkbe1JX+sxoBeHdXMkjHM= =4xJF -----END PGP SIGNATURE-----