Subject: LKM in -current slightly broken
To: None <firstname.lastname@example.org>
From: Niklas Hallqvist <email@example.com>
Date: 12/07/1994 19:03:33
In sys/lkm.h there is a macro called DISPATCH which uses the nosys
function as an exceptional value for some macro arguments otherwise
supposed to be functions with a (struct lkm_table, int) signature.
As nosys is prototyped as (struct proc *, void *, register_t *) in
systm.h, expansions of DISPATCH will fail with a "to few arguments to
function" error. The real solution is of course to sacrifice backward
compatibility for LKMs and introduce a lkm_nocmd or something to use
instead of nosys, but in order to be backward compatible, perhaps just
casts should be used to make DISPATCH type-correct? If someone from
core will tell me which way to go, I can submit a patch, unless they
beat me to the punch of course.