Debian 2.6.12

"A T" <[email protected]>
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
Hi All,

I at compiling openmosix 2.6 patch 
http://openmosix.snarc.org/files/releases/2.6/patch-2.6.12-om-r577.bz2  with 
debian 2.6.12, the patch applies without an error but on compiling the 
kernel i get the following error

net/socket.c: At top level:
net/socket.c:463: error: static declaration of 'sock_alloc' follows 
non-static declaration
include/linux/net.h:178: error: previous declaration of 'sock_alloc' was 
here
make[2]: *** [net/socket.o] Error 1
make[1]: *** [net] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.12'
make: *** [stamp-build] Error 2


Line 463 of socket.c reads

/**
*	sock_alloc	-	allocate a socket
*
*	Allocate a new inode and socket object. The two are bound together
*	and initialised. The socket is then returned. If we are out of inodes
*	NULL is returned.
*/

OM_NSTATIC struct socket *sock_alloc(void)
{
	struct inode * inode;
	struct socket * sock;

	inode = new_inode(sock_mnt->mnt_sb);
	if (!inode)
		return NULL;

	sock = SOCKET_I(inode);

	inode->i_mode = S_IFSOCK|S_IRWXUGO;
	inode->i_uid = current->fsuid;
	inode->i_gid = current->fsgid;

	get_cpu_var(sockets_in_use)++;
	put_cpu_var(sockets_in_use);
	return sock;
}

Any help would be appreciated.

Thanks in advance.




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.