Get rid of the VDESC() macro while the pot is boiling anyway, it is

only used from generate files now, so we might as well generate the
right stuff from the start.
This commit is contained in:
phk 2005-01-13 08:05:20 +00:00
parent 4d9781b3db
commit 06c7142d57
2 changed files with 2 additions and 3 deletions

View File

@ -525,7 +525,6 @@ void vop_unlock_pre(void *a);
* This call works for vnodes in the kernel.
*/
#define VCALL(c) ((c)->a_desc->vdesc_call(c))
#define VDESC(OP) (& __CONCAT(OP,_desc))
/*
* VMIO support inline

View File

@ -315,7 +315,7 @@ while ((getline < srcfile) > 0) {
printh("{");
printh("\tstruct " name "_args a;");
printh("");
printh("\ta.a_gen.a_desc = VDESC(" name ");");
printh("\ta.a_gen.a_desc = &" name "_desc;");
for (i = 0; i < numargs; ++i)
printh("\ta.a_" args[i] " = " args[i] ";");
printh("\treturn (" uname "_AP(&a));");
@ -354,7 +354,7 @@ while ((getline < srcfile) > 0) {
printc("\tstruct vnode *vp = a->a_" args[0]";");
printc("\tstruct vop_vector *vop = vp->v_op;");
printc("");
printc("\tKASSERT(a->a_gen.a_desc == VDESC(" name "),");
printc("\tKASSERT(a->a_gen.a_desc == &" name "_desc,");
printc("\t (\"Wrong a_desc in " name "(%p, %p)\", vp, a));");
printc("\twhile(vop != NULL && \\");
printc("\t vop->"name" == NULL && vop->vop_bypass == NULL)")