knfsd and asm/system.h / linux/kernel.h problem [w/patch]

Eugene Crosser (crosser@average.org)
11 Aug 1998 22:29:00 GMT


--=-=-=__cMZu9cMmr7OJuyYYMsVw0qr4V__=-=-=
Content-Type: text/plain; charset=koi8-r

Is anyone working on the kernel nfs server? is linux-nfs-0.4.21.tar.gz
the most recent version? I tried to compile it with the kernel 2.1.112
and 2.1.115 and the tools did not compile because they indirectly include
asm/system.h which has in like 40:

extern void FASTCALL(__switch_to(struct task_struct *prev, ....

FASTCALL is defined in linux/kernel.h, but inside #ifdef __KERNEL__.
NFS tools are (naturally) compiled without this #define. As a result,
there is a syntax error. Moving #define FASTCALL outside of #ifdef
__KERNEL__ helps. I am attaching the diff but I am not sure if it
is right.

knfsd (or kmountd?) works in a weird way anyway... Sometimes it refuses
to satisfy mount request without obvious reason. Locking seems to always
fail...

-- 
Eugene Crosser; 2:5020/230@fidonet; http://www.average.org/~crosser/
--=-=-=__cMZu9cMmr7OJuyYYMsVw0qr4V__=-=-=
Content-Type: text/plain;
Content-Disposition: attachment; filename="xxx"
Content-Transfer-Encoding: base64

LS0tIGluY2x1ZGUvbGludXgva2VybmVsLmgub3JpZwlUdWUgQXByIDE0IDAzOjU3OjEwIDE5OTgK KysrIGluY2x1ZGUvbGludXgva2VybmVsLmgJV2VkIEF1ZyAxMiAwMjoyMTo1MyAxOTk4CkBAIC01 LDYgKzUsMTIgQEAKICAqICdrZXJuZWwuaCcgY29udGFpbnMgc29tZSBvZnRlbi11c2VkIGZ1bmN0 aW9uIHByb3RvdHlwZXMgZXRjCiAgKi8KIAorI2lmZGVmIF9faTM4Nl9fCisjZGVmaW5lIEZBU1RD QUxMKHgpCXggX19hdHRyaWJ1dGVfXygocmVncGFybSgzKSkpCisjZWxzZQorI2RlZmluZSBGQVNU Q0FMTCh4KQl4CisjZW5kaWYKKwogI2lmZGVmIF9fS0VSTkVMX18KIAogI2luY2x1ZGUgPHN0ZGFy Zy5oPgpAQCAtMzIsMTIgKzM4LDYgQEAKICMgZGVmaW5lIE5PUkVUX1RZUEUgICAgLyoqLwogIyBk ZWZpbmUgQVRUUklCX05PUkVUICBfX2F0dHJpYnV0ZV9fKChub3JldHVybikpCiAjIGRlZmluZSBO T1JFVF9BTkQgICAgIG5vcmV0dXJuLAotCi0jaWZkZWYgX19pMzg2X18KLSNkZWZpbmUgRkFTVENB TEwoeCkJeCBfX2F0dHJpYnV0ZV9fKChyZWdwYXJtKDMpKSkKLSNlbHNlCi0jZGVmaW5lIEZBU1RD QUxMKHgpCXgKLSNlbmRpZgogCiBleHRlcm4gdm9pZCBtYXRoX2Vycm9yKHZvaWQpOwogTk9SRVRf VFlQRSB2b2lkIHBhbmljKGNvbnN0IGNoYXIgKiBmbXQsIC4uLikK

--=-=-=__cMZu9cMmr7OJuyYYMsVw0qr4V__=-=-=--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html