Cast from the specific vop_*_args to vop_generic_args via a (void *)
pointer to eliminate the hundreds of warnings that we have in tree at the moment. # Chances are good that all the struct vop_*_args should have, as its # first element, the struct vop_generic_args, and when necessary to # reference it, we just take its address rather than going through # this double case.
This commit is contained in:
parent
44b7a63175
commit
6d4f366de6
@ -324,7 +324,7 @@ while ((getline < srcfile) > 0) {
|
||||
printh("\t\tif (vop->"name" != NULL)")
|
||||
printh("\t\t\trc = vop->"name"(&a);")
|
||||
printh("\t\telse")
|
||||
printh("\t\t\trc = vop->vop_bypass((struct vop_generic_args *)&a);")
|
||||
printh("\t\t\trc = vop->vop_bypass((struct vop_generic_args *)(void *)&a);")
|
||||
printh("\t}")
|
||||
printh(ctrstr);
|
||||
printh("if (rc == 0) {");
|
||||
|
Loading…
Reference in New Issue
Block a user